:root {
  --bg: #f8f9f6;
  --surface: #fff;
  --text: #252c28;
  --muted: #606960;
  --line: #dce0d8;
  --accent: #285e4b;
  --soft: #eef2ea;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
html[data-theme="dark"],
html[data-theme="system"][data-resolved-theme="dark"] {
  --bg: #171c19;
  --surface: #202722;
  --text: #e7ece5;
  --muted: #adb7ad;
  --line: #364139;
  --accent: #a5c9ad;
  --soft: #252f28;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  color: var(--text);
}
button {
  font: inherit;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    color 0.18s,
    background 0.18s,
    transform 0.18s;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
}
svg {
  width: 20px;
  height: 20px;
}
img {
  display: block;
  max-width: 100%;
}
.rail {
  max-width: 1120px;
  width: calc(100% - 96px);
  margin: auto;
  border-inline: 1px solid var(--line);
}
.section {
  border-bottom: 1px solid var(--line);
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  width: 48px;
  height: 32px;
  display: block;
  text-decoration: none;
}
.brand img {
  width: 48px;
  height: 32px;
  object-fit: contain;
}
nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
}
nav a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
}
nav a.active {
  color: var(--accent);
}
nav a.active:after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  left: 50%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.contact-nav {
  font-size: 12px;
  text-decoration: none;
}
.contact-nav span {
  margin-left: 10px;
}
.theme-toggle {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
}
.theme-icon {
  display: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle[data-theme-choice="system"] .theme-system,
.theme-toggle[data-theme-choice="light"] .theme-light,
.theme-toggle[data-theme-choice="dark"] .theme-dark {
  display: block;
}
.hero-inner {
  padding: 66px 48px 56px;
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 57px;
}
.portrait-frame {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.portrait-frame img {
  width: 100%;
  height: 274px;
  object-fit: cover;
  object-position: center 27%;
  filter: saturate(0.65);
}
.photo-corner {
  position: absolute;
  bottom: 17px;
  left: 18px;
  background: #f7f8f1e8;
  padding: 2px 7px;
  color: #424e44;
  font: 9px monospace;
  letter-spacing: 1px;
}
.location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
.location-dot {
  width: 6px;
  height: 6px;
  background: #6f936d;
  border-radius: 50%;
}
.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}
.social-links a {
  height: 33px;
  width: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--muted);
}
.social-links a:hover {
  background: var(--soft);
  transform: translateY(-2px);
}
.social-links svg {
  width: 16px;
  height: 16px;
}
.wordpress-icon {
  font: 17px Georgia;
  border: 1px solid currentColor;
  border-radius: 50%;
  height: 21px;
  width: 21px;
  display: grid;
  place-items: center;
}
.eyebrow {
  font: 9px/1.5 monospace;
  letter-spacing: 1.1px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow > span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
h1 {
  font-size: 53px;
  line-height: 1.12;
  letter-spacing: -2px;
  margin-bottom: 19px;
}
h1 > span {
  color: var(--accent);
}
.intro {
  font-size: 22px;
  line-height: 1.5;
  color: var(--text) !important;
  font-family: var(--serif);
  margin-bottom: 21px !important;
}
.intro em {
  color: var(--accent);
}
.hero-copy > p:not(.eyebrow):not(.intro) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 13px;
}
.hero-copy strong {
  color: var(--text);
  font-weight: 500;
}
.hero-copy p a {
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 25px;
}
.button {
  padding: 10px 17px;
  display: inline-flex;
  gap: 30px;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid var(--accent);
  border-radius: 3px;
}
.primary {
  background: var(--accent);
  color: var(--bg);
}
.primary:hover {
  background: var(--text);
  color: var(--bg);
}
.resume-link {
  font-size: 12px;
  text-decoration: none;
}
.resume-link span {
  margin-left: 10px;
}
.quick-facts {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr;
  padding: 24px 48px;
  background: var(--soft);
}
.quick-facts > div + div {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.fact-label {
  display: block;
  font: 9px monospace;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.quick-facts strong {
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.small-arrow {
  color: var(--muted);
}
.small-w {
  font: 13px Georgia;
  border: 1px solid var(--muted);
  border-radius: 50%;
  height: 18px;
  width: 18px;
  display: grid;
  place-items: center;
}
.section-inner {
  padding: 44px 48px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-number {
  font: 9px/1.5 monospace;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 11px;
}
h2 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.8px;
}
.section-heading > p {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 4px;
}
.text-link {
  font-size: 11px;
  text-decoration: none;
}
.experience-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 27px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.experience-row:last-child {
  padding-bottom: 0;
}
.timeline-meta p {
  font-size: 12px;
  color: var(--text);
}
.timeline-meta > span:not(.current-badge) {
  font-size: 11px;
  color: var(--muted);
}
.current-badge {
  font: 8px monospace;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--soft);
  padding: 4px 7px;
  border: 1px solid var(--line);
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 2px;
}
.role-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.level {
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  margin-left: 8px;
  white-space: nowrap;
}
.company {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.company > span {
  margin-left: 8px;
}
.experience-body p,
.experience-body ul {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
}
.experience-body ul {
  padding-left: 17px;
  margin: 10px 0 15px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tags > span {
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}
.filters button {
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
}
.filters button.selected {
  background: var(--soft);
  border-color: var(--line);
  color: var(--accent);
}
.filters button > span {
  font: 9px monospace;
  margin-left: 7px;
  opacity: 0.6;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.project-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}
.project-card[hidden] {
  display: none;
}
.project-visual {
  height: 224px;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding: 25px 25px 0;
  background: #e9ece3;
}
.project-visual img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border: 1px solid #cbd2c6;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 6px 18px #26392713;
  transition: transform 0.4s;
}
.project-visual:hover img {
  transform: translateY(-4px);
}
.clipboard-visual {
  background: #e9eaf2;
  padding-inline: 42px;
}
.clipboard-visual img {
  object-fit: cover;
  object-position: top;
}
.owl-visual {
  background: #ebe9e1;
}
.mint-visual {
  background: #efedf7;
  text-decoration: none;
  color: #38304f;
  padding: 17px 50px;
}
.mint-logo {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 13px;
}
.mint-logo > span {
  background: #8066d3;
  color: white;
  font-size: 23px;
  width: 29px;
  height: 29px;
  line-height: 25px;
  text-align: center;
  border-radius: 7px;
}
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow > span {
  font-size: 10px;
  background: white;
  border: 1px solid #ddd8ed;
  border-radius: 5px;
  padding: 7px 13px;
  width: 100%;
  max-width: 205px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 2px 4px #00000004;
}
.flow i {
  font-style: normal;
  color: #9176c9;
}
.flow > b {
  font-size: 14px;
  line-height: 21px;
  color: #a294bb;
  font-weight: 400;
}
.flow-last {
  opacity: 0.75;
}
.project-content {
  padding: 22px;
}
.project-category {
  font: 8px/1.6 monospace;
  letter-spacing: 0.8px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.project-content h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  margin-bottom: 9px;
}
.project-content h3 a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-content h3 a > span {
  font-family: Arial;
  font-size: 17px;
  color: var(--muted);
}
.project-content p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.project-tech {
  font-size: 9px;
  color: var(--muted);
}
.project-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.project-bottom > a {
  font-size: 10px;
  text-decoration: none;
}
.compact-project {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
.compact-project .project-content {
  flex: 1;
  padding-inline: 0;
}
.compact-project p {
  margin-bottom: 8px;
}
.funnel-mark {
  width: 72px;
  height: 72px;
  background: #eeebfa;
  color: #7257bd;
  border-radius: 16px;
  font: bold italic 27px Georgia;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.open-source-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 45px;
}
.wp-badge {
  display: flex;
  align-items: center;
  gap: 17px;
  align-self: start;
  padding: 22px 18px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.wp-badge > span {
  font: 42px Georgia;
  border: 2px solid var(--accent);
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.wp-badge h3 {
  font-size: 12px;
}
.wp-badge p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.open-source-grid > div > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.github-accounts {
  display: flex;
  gap: 23px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
}
.github-accounts a {
  font-size: 10px;
  text-decoration: none;
}
.awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 35px;
}
.awards article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.award-icon {
  font-size: 27px;
  color: var(--accent);
  width: 30px;
  text-align: center;
}
.awards h3 {
  font-size: 12px;
  font-weight: 500;
}
.awards p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.award-year {
  margin-left: auto;
  font: 9px monospace;
  color: var(--muted);
}
.beyond-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 65px;
}
.beyond-grid h2 {
  font-size: 28px;
}
.beyond-grid p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.beyond-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  text-decoration: none;
  font-size: 12px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.beyond-links a:first-child {
  padding-top: 0;
}
.beyond-links small {
  display: block;
  font: 8px monospace;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 7px;
}
.contact-inner {
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  padding-block: 48px;
}
.contact-inner h2 {
  font-size: 34px;
}
.contact-inner h2 em {
  color: var(--accent);
}
.contact-inner p {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 20px;
}
.email-link {
  font-size: 16px;
  text-decoration: none;
}
.email-link > span {
  margin-left: 20px;
}
.copy-email {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  border-radius: 3px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  white-space: nowrap;
}
.copy-email svg {
  width: 15px;
  height: 15px;
}
.footer-inner {
  padding: 23px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}
.footer-inner a {
  text-decoration: none;
  color: var(--muted);
}
.footer-dot {
  font-size: 7px;
  color: var(--accent);
  margin-left: 5px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 16px;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1450px) {
  .hero-inner {
    padding-block: 80px;
  }
  .hero-copy > p:not(.eyebrow):not(.intro) {
    font-size: 14px;
  }
}
@media (max-width: 1000px) {
  .rail {
    width: calc(100% - 40px);
  }
  .header-inner {
    padding-inline: 28px;
    gap: 22px;
  }
  nav {
    gap: 16px;
  }
  .header-actions {
    gap: 15px;
  }
  .hero-inner {
    padding: 45px 32px;
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }
  h1 {
    font-size: 43px;
  }
  .portrait-frame img {
    height: 250px;
  }
  .section-inner {
    padding: 36px 32px;
  }
  .quick-facts {
    padding: 22px 32px;
  }
  .quick-facts > div + div {
    padding-left: 18px;
  }
  .quick-facts strong {
    font-size: 10px;
  }
  .experience-row {
    grid-template-columns: 165px 1fr;
  }
  .project-visual {
    height: 200px;
  }
  .open-source-grid {
    gap: 25px;
  }
  .wp-badge {
    padding: 18px 12px;
  }
  .wp-badge > span {
    width: 45px;
    height: 45px;
    font-size: 32px;
  }
}
@media (max-width: 760px) {
  .rail {
    width: calc(100% - 24px);
  }
  .header-inner {
    padding: 12px 22px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 30px;
  }
  .header-actions {
    margin-left: auto;
  }
  nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0 7px;
  }
  nav a {
    font-size: 10px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 34px 24px;
    gap: 27px;
  }
  .portrait-column {
    display: grid;
    grid-template-columns: 115px 1fr;
    column-gap: 24px;
    align-items: center;
  }
  .portrait-frame {
    grid-row: 1/3;
    padding: 5px;
  }
  .portrait-frame img {
    height: 124px;
  }
  .photo-corner {
    display: none;
  }
  .location {
    margin: 0;
    justify-content: flex-start;
    align-self: end;
    padding-bottom: 12px;
  }
  .social-links {
    margin: 0;
    justify-content: flex-start;
    align-self: start;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  h1 {
    font-size: 43px;
  }
  .intro {
    font-size: 22px;
  }
  .hero-copy > p:not(.eyebrow):not(.intro) {
    font-size: 13px;
  }
  .quick-facts {
    grid-template-columns: 1fr 1fr;
    padding: 20px 24px;
    gap: 18px;
  }
  .quick-facts > div:last-child {
    grid-column: 1/-1;
    border: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
  }
  .fact-label {
    font-size: 8px;
  }
  .section-inner {
    padding: 32px 24px;
  }
  .section-heading {
    align-items: start;
    gap: 16px;
  }
  .section-heading > p {
    display: none;
  }
  h2 {
    font-size: 28px;
  }
  .section-heading > .text-link {
    font-size: 10px;
    max-width: 88px;
    text-align: right;
  }
  .experience-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 23px 0;
  }
  .timeline-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .timeline-meta > span:not(.current-badge) {
    display: none;
  }
  .current-badge {
    margin-bottom: 0;
  }
  .timeline-meta p {
    font-size: 10px;
  }
  .role-heading {
    align-items: start;
  }
  .role-heading h3 {
    font-size: 14px;
  }
  .level {
    font-size: 9px;
  }
  .company {
    font-size: 10px;
  }
  .project-grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }
  .project-visual {
    height: 235px;
  }
  .compact-project {
    padding-inline: 18px;
    gap: 15px;
  }
  .funnel-mark {
    width: 45px;
    height: 45px;
    font-size: 20px;
    border-radius: 10px;
  }
  .project-content {
    padding: 20px;
  }
  .open-source-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .wp-badge {
    width: 100%;
    padding: 18px;
  }
  .awards {
    grid-template-columns: 1fr;
  }
  .beyond-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-inner {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .contact-inner h2 {
    font-size: 31px;
  }
  .contact-inner p {
    margin-bottom: 15px;
  }
  .email-link {
    font-size: 14px;
  }
  .copy-email {
    padding: 8px 12px;
  }
  .footer-inner {
    padding: 20px 24px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .footer-inner > span:nth-child(2) {
    display: none;
  }
}

/* Refined media and contribution layouts. */
.project-visual.amal-visual,
.project-visual.mint-visual,
.project-visual.funnel-visual {
  padding: 0;
  background: var(--soft);
}
.project-visual.amal-visual img,
.project-visual.mint-visual img,
.project-visual.funnel-visual img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}
.project-visual.amal-visual img {
  object-position: center top;
}
.project-visual.mint-visual img,
.project-visual.funnel-visual img {
  object-fit: contain;
  background: #fff;
}
.compact-project {
  padding: 0;
}
.compact-project .project-content {
  padding: 22px;
}

/* Portfolio companion: a grounded tabby with independent joints. */
.portfolio-guide {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 148px;
  height: 112px;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(
    var(--guide-x, calc(100vw - 166px)),
    var(--guide-y, calc(100dvh - 128px)),
    0
  );
  contain: layout style;
}
.js .portfolio-guide {
  display: block;
}
.portfolio-guide.is-ready {
  opacity: 1;
}
.guide-avatar {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}
.guide-avatar:hover {
  background: transparent;
}
.guide-avatar:focus-visible {
  outline-offset: 0;
}
.guide-cat {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cat-facing {
  transform-origin: 120px 86px;
  transform: scaleX(var(--cat-facing, 1));
}
.cat-pose {
  transform-origin: 112px 153px;
}
.cat-torso {
  transform-origin: 114px 118px;
  animation: cat-breathe 5.8s ease-in-out infinite;
}
.cat-head {
  transform-origin: 68px 87px;
  animation: cat-attention 11s ease-in-out infinite;
}
.cat-tail {
  transform-origin: 169px 101px;
  animation: cat-tail-rest 5s ease-in-out infinite;
}
.cat-ear {
  transform-origin: 52px 54px;
  animation: cat-listen 13s ease-in-out infinite;
}
.cat-ear-far {
  transform-origin: 77px 54px;
  animation-delay: -4s;
}
.cat-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: cat-slow-blink 7.3s ease-in-out infinite;
}
.cat-eye-far {
  animation-delay: 0.025s;
}
.cat-leg-front-near {
  --hip: 70px 104px;
  --knee: 73px 125px;
  --step: 0s;
}
.cat-leg-front-far {
  --hip: 82px 103px;
  --knee: 82px 123px;
  --step: -0.38s;
}
.cat-leg-rear-near {
  --hip: 157px 104px;
  --knee: 154px 131px;
  --step: -0.19s;
}
.cat-leg-rear-far {
  --hip: 148px 104px;
  --knee: 146px 132px;
  --step: -0.57s;
}
.cat-leg {
  transform-origin: var(--hip);
}
.cat-shin {
  transform-origin: var(--knee);
}
.portfolio-guide[data-motion="walk"] .cat-leg {
  animation: cat-stride 0.76s linear var(--step) infinite;
}
.portfolio-guide[data-motion="walk"] .cat-shin {
  animation: cat-footfall 0.76s linear var(--step) infinite;
}
.portfolio-guide[data-motion="walk"] .cat-pose {
  animation: cat-walk-body 0.38s ease-in-out infinite;
}
.portfolio-guide[data-motion="walk"] .cat-head {
  animation: none;
  transform: rotate(-3deg);
}
.portfolio-guide[data-motion="crouch"] .cat-pose {
  animation: cat-crouch 0.2s ease-out both;
}
.portfolio-guide[data-motion="jump"] .cat-pose {
  animation: cat-flight 0.68s ease-in-out both;
}
.portfolio-guide[data-motion="jump"] .cat-leg-front-near,
.portfolio-guide[data-motion="jump"] .cat-leg-front-far {
  animation: cat-reach 0.68s ease-in-out both;
}
.portfolio-guide[data-motion="jump"] .cat-leg-rear-near,
.portfolio-guide[data-motion="jump"] .cat-leg-rear-far {
  animation: cat-tuck 0.68s ease-in-out both;
}
.portfolio-guide[data-motion="jump"] .cat-tail {
  animation: none;
  transform: rotate(16deg);
}
.portfolio-guide[data-motion="jump"] .cat-shadow {
  opacity: 0.1;
}
.portfolio-guide[data-motion="land"] .cat-pose {
  animation: cat-landing 0.26s ease-out both;
}
.guide-perch {
  position: absolute;
  left: 30px;
  right: 22px;
  bottom: 9px;
  height: 1px;
  background: var(--muted);
  opacity: 0.25;
  transition: opacity 0.2s;
}
.portfolio-guide.is-travelling .guide-perch,
.portfolio-guide.is-dragging .guide-perch {
  opacity: 0;
}
.guide-bubble {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 6px);
  width: min(304px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 20px 20px 12px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  background: var(--surface);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--text) 10%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(
    var(--bubble-shift-x, 0px),
    calc(var(--bubble-shift, 0px) + 5px)
  );
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
}
.portfolio-guide.is-open .guide-bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(var(--bubble-shift-x, 0px), var(--bubble-shift, 0px));
}
.guide-minimize {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.guide-minimize:hover,
.guide-minimize:focus-visible {
  background: var(--soft);
  color: var(--text);
}
.guide-minimize svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.guide-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.guide-label > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.guide-message {
  margin: 12px 0 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}
.guide-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.guide-action::after {
  content: "↗";
  font-size: 15px;
  font-weight: 400;
}
.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.guide-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.guide-reset {
  padding: 4px 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-reset[hidden] {
  display: none;
}
.portfolio-guide.is-placed .guide-footer > span {
  display: none;
}
.guide-feeling {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
  background: var(--surface);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) scale(0.95);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.portfolio-guide.is-petted .guide-feeling {
  opacity: 1;
  transform: translateX(-50%);
}
.portfolio-guide.is-petted .cat-head {
  animation: cat-nuzzle 2.2s ease-in-out both;
}
.portfolio-guide.is-petted .cat-eye {
  animation: cat-contented 2.2s ease-in-out both;
}
.portfolio-guide.is-petted .cat-tail {
  animation: cat-happy-tail 1.6s ease-in-out infinite;
}
.portfolio-guide.is-petted .cat-ear {
  animation: none;
  transform: rotate(-4deg);
}
.portfolio-guide.is-dragging .guide-avatar {
  cursor: grabbing;
}
.portfolio-guide.is-dragging .cat-pose {
  animation: none;
  transform: translateY(-3px) rotate(var(--cat-drag-lean, 0deg));
  transition: transform 0.12s ease-out;
}
.portfolio-guide.is-dragging .cat-leg {
  animation: none;
  transform: rotate(12deg);
}
.portfolio-guide.is-dragging .cat-leg-rear-near,
.portfolio-guide.is-dragging .cat-leg-rear-far {
  transform: rotate(-10deg);
}
.portfolio-guide.is-dragging .cat-head {
  animation: none;
  transform: rotate(-4deg);
}
.portfolio-guide.is-dragging .cat-tail {
  animation: cat-carried-tail 1.8s ease-in-out infinite;
}
.portfolio-guide.is-dragging .cat-shadow {
  opacity: 0.15;
}
.portfolio-guide.is-settling .cat-pose {
  animation: cat-settle 0.42s ease-out both;
}
.guide-motion {
  flex-shrink: 0;
  min-height: 32px;
  padding: 4px 0 4px 4px;
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-motion:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}
.guide-notification {
  position: absolute;
  top: 23px;
  right: 32px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.portfolio-guide.has-message:not(.is-open) .guide-notification {
  opacity: 1;
}
.portfolio-guide.is-paused *,
.portfolio-guide.is-interacting.is-travelling * {
  animation-play-state: paused !important;
}
@keyframes cat-breathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.008);
  }
}
@keyframes cat-attention {
  0%,
  28%,
  65%,
  100% {
    transform: rotate(0);
  }
  35%,
  48% {
    transform: rotate(-3deg) translateY(-0.5px);
  }
  78%,
  86% {
    transform: rotate(2deg);
  }
}
@keyframes cat-tail-rest {
  0%,
  24%,
  100% {
    transform: rotate(0);
  }
  42%,
  58% {
    transform: rotate(-10deg);
  }
  77% {
    transform: rotate(6deg);
  }
}
@keyframes cat-listen {
  0%,
  76%,
  85%,
  100% {
    transform: rotate(0);
  }
  79% {
    transform: rotate(-8deg);
  }
  82% {
    transform: rotate(3deg);
  }
}
@keyframes cat-slow-blink {
  0%,
  38%,
  44%,
  76%,
  81%,
  100% {
    transform: scaleY(1);
  }
  40%,
  42%,
  78% {
    transform: scaleY(0.07);
  }
}
@keyframes cat-stride {
  0%,
  100% {
    transform: rotate(-13deg);
  }
  50% {
    transform: rotate(13deg);
  }
  76% {
    transform: rotate(0) translateY(-2px);
  }
}
@keyframes cat-footfall {
  0%,
  50%,
  100% {
    transform: rotate(0);
  }
  72% {
    transform: rotate(-14deg);
  }
}
@keyframes cat-walk-body {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.2px);
  }
}
@keyframes cat-crouch {
  to {
    transform: translateY(4px) scaleY(0.93);
  }
}
@keyframes cat-flight {
  0% {
    transform: scaleX(1.025) scaleY(0.95) rotate(5deg);
  }
  35% {
    transform: scaleX(1.035) rotate(8deg);
  }
  75% {
    transform: scaleX(1.02) rotate(-5deg);
  }
  100% {
    transform: rotate(0);
  }
}
@keyframes cat-reach {
  0% {
    transform: rotate(22deg);
  }
  45% {
    transform: rotate(40deg);
  }
  100% {
    transform: rotate(-6deg);
  }
}
@keyframes cat-tuck {
  0% {
    transform: rotate(-25deg);
  }
  50% {
    transform: rotate(28deg);
  }
  100% {
    transform: rotate(0);
  }
}
@keyframes cat-landing {
  0% {
    transform: translateY(3px) scaleY(0.95);
  }
  45% {
    transform: translateY(5px) scaleY(0.92);
  }
  100% {
    transform: none;
  }
}
@keyframes cat-nuzzle {
  0%,
  100% {
    transform: rotate(0);
  }
  25%,
  65% {
    transform: translate(-1px, -1px) rotate(-7deg);
  }
  45% {
    transform: translate(-2px, -2px) rotate(-10deg);
  }
}
@keyframes cat-contented {
  0%,
  100% {
    transform: scaleY(1);
  }
  22%,
  78% {
    transform: scaleY(0.14);
  }
  48% {
    transform: scaleY(0.25);
  }
}
@keyframes cat-happy-tail {
  0%,
  100% {
    transform: rotate(0);
  }
  35% {
    transform: rotate(-16deg);
  }
  70% {
    transform: rotate(10deg);
  }
}
@keyframes cat-carried-tail {
  0%,
  100% {
    transform: rotate(9deg);
  }
  50% {
    transform: rotate(-8deg);
  }
}
@keyframes cat-settle {
  0% {
    transform: translateY(-2px) scaleY(1.02);
  }
  35% {
    transform: translateY(2px) scaleY(0.95);
  }
  70% {
    transform: translateY(-0.5px) scaleY(1.005);
  }
  100% {
    transform: none;
  }
}
@media (max-width: 600px) {
  .portfolio-guide {
    width: 116px;
    height: 88px;
  }
  .guide-bubble {
    right: 0;
  }
  .guide-perch {
    left: 23px;
    right: 18px;
    bottom: 7px;
  }
  .guide-notification {
    top: 18px;
    right: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-guide *,
  .portfolio-guide *::after {
    animation: none !important;
    transition: none !important;
  }
}

.theme-picker {
  position: relative;
}
.theme-menu[hidden] {
  display: none;
}
.theme-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: 224px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 45px color-mix(in srgb, var(--text) 14%, transparent);
}
.theme-menu button {
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.theme-menu button:hover,
.theme-menu button:focus-visible {
  background: var(--soft);
}
.theme-menu button > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-menu button strong,
.theme-menu button small {
  display: block;
}
.theme-menu button strong {
  font-size: 12px;
  font-weight: 600;
}
.theme-menu button small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}
.theme-check {
  color: var(--accent);
  opacity: 0;
  font-size: 12px;
}
.theme-menu button[aria-checked="true"] .theme-check {
  opacity: 1;
}
.platform-icon {
  width: 18px;
  height: 18px;
}
.small-w {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
}
.contributor-mark {
  min-height: 230px;
  padding: 26px;
  justify-content: space-between;
}
.contributor-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}
.contributor-heading > img {
  width: 56px;
  height: 56px;
}
.contributor-heading p {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}
.contributor-heading p strong {
  color: var(--accent);
  font-weight: 400;
}
.eyebrow-label {
  color: var(--muted);
  font: 9px monospace;
  letter-spacing: 1.2px;
}
.release-list {
  width: 100%;
  gap: 10px;
}
.release-list span {
  min-width: 0;
  flex: 1;
  padding: 10px 8px;
  color: var(--text);
  font-size: 13px;
}
.release-list small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font: 8px monospace;
  letter-spacing: 0.8px;
}
.contributor-note {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 760px) {
  .theme-menu {
    position: fixed;
    top: 70px;
    right: 12px;
  }
  .contributor-mark {
    min-height: 220px;
  }
}
.contributor-mark {
  min-height: 210px;
  padding: 8px 0;
  border-block: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}
.contributor-mark > svg {
  width: 52px;
  height: 52px;
  color: var(--accent);
}
.contributor-mark > p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}
.contributor-mark > p strong {
  color: var(--text);
  font-weight: 400;
}
.release-list {
  display: flex;
  gap: 8px;
}
.release-list span {
  min-width: 45px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 11px monospace;
  text-align: center;
}
.awards {
  gap: 28px;
}
.awards article {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
}
.awards article > img {
  width: 108px;
  height: 112px;
  object-fit: cover;
  border-right: 1px solid var(--line);
}
.awards article:first-child > img {
  object-position: center 30%;
}
.award-copy {
  padding-block: 12px;
}
.award-year {
  padding-right: 15px;
}
.quick-facts strong a {
  color: var(--text);
  text-decoration: none;
}
.company {
  text-decoration: none;
}
@media (max-width: 760px) {
  .brand,
  .brand img {
    width: 44px;
    height: 30px;
  }
  .contributor-mark {
    min-height: 0;
    padding-block: 24px;
  }
  .awards article {
    grid-template-columns: 92px minmax(0, 1fr) auto;
  }
  .awards article > img {
    width: 92px;
    height: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}
@media print {
  .header,
  .filters,
  .copy-email,
  .hero-actions,
  footer {
    display: none;
  }
  .rail {
    width: 100%;
    border: 0;
  }
  .section {
    break-inside: avoid;
  }
  .project-card[hidden] {
    display: block;
  }
  body {
    font-size: 12px;
  }
}
/* Readable text, comfortable controls, and stable artwork on small screens. */
body {
  font-size: 16px;
}
.hero-copy > p:not(.eyebrow):not(.intro),
.experience-body p,
.experience-body ul,
.project-content p,
.open-source-grid > div > p,
.beyond-grid p,
.contact-inner p {
  font-size: 14px;
}
.project-category,
.section-number,
.fact-label {
  font-size: 10px;
}
.project-tech,
.tags > span,
.text-link,
.github-accounts a,
.timeline-meta p {
  font-size: 12px;
}
.theme-toggle,
.social-links a {
  min-width: 44px;
  min-height: 44px;
}
nav a,
.contact-nav,
.resume-link,
.footer-inner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.filters button {
  min-height: 44px;
  font-size: 12px;
}
.filters {
  flex-wrap: wrap;
}
.copy-email {
  min-height: 44px;
  font-size: 12px;
}
.project-bottom > a {
  font-size: 12px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}
.amal-visual {
  background: #e5eee4;
  color: #25543d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
}
.amal-title {
  font-size: 34px;
  line-height: 1.3;
}
.amal-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  margin: 8px 0 12px;
}
.amal-days {
  font: 14px/2 monospace;
  letter-spacing: 3px;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
  margin: 0;
}
.skills-grid dt {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.skills-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.languages {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.languages strong {
  color: var(--text);
  margin-right: 12px;
}
.offline-status {
  padding: 12px 24px;
  background: var(--soft);
  border-block: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}
.offline-status[hidden] {
  display: none;
}
.project-grid {
  align-items: start;
}
.compact-project {
  grid-column: auto;
  display: block;
  padding: 0 22px;
}
.compact-project .funnel-mark {
  margin-top: 22px;
}
.role-heading {
  flex-wrap: wrap;
}
.hero-copy {
  min-width: 0;
}
h1 {
  font-size: clamp(36px, 3.7vw, 51px);
}
@media (max-width: 760px) {
  .header-inner {
    row-gap: 0;
  }
  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 16px;
    padding: 0;
  }
  nav a {
    font-size: 12px;
  }
  nav a.active:after {
    bottom: 3px;
  }
  .social-links {
    gap: 4px;
    flex-wrap: wrap;
  }
  .portrait-column {
    column-gap: 16px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .project-visual {
    height: 220px;
  }
  .quick-facts strong {
    font-size: 12px;
  }
  .quick-facts {
    grid-template-columns: 1fr;
  }
  .quick-facts > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }
  .level {
    margin-left: 0;
  }
  .section-heading > .text-link {
    font-size: 12px;
  }
  .footer-inner {
    font-size: 12px;
  }
  html {
    scroll-padding-top: 150px;
  }
}

/* Keep the refined project cards after the base responsive rules above. */
.compact-project {
  padding: 0;
}
.compact-project .project-content {
  padding: 22px;
}
