:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #17191c;
  --text: #f2f0ec;
  --muted: #92969d;
  --secondary: #92969d;
  --reading-size: 14px;
  --line: #f2f0ec1a;
  --accent: #c7ab78;
  --gold: #c7ab78;
  --font: 'DM Sans', sans-serif;
  --display: 'Manrope', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: 40px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 90% 10%, #17191c20, transparent 45%);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
}
::selection {
  background: #f2f0ec;
  color: #17191c;
}
/* PAGE SHELL, NAVIGATION, AND HERO COPY */
.shell {
  width: min(1264px, calc(100% - 112px));
  margin-inline: auto;
}
.header {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font: 800 34px var(--display);
  letter-spacing: -0.03em;
}

.header nav {
  display: flex;
  gap: 34px;
  color: #92969d;
  font-size: 13px;
}
.header nav a:hover,
.header-contact:hover {
  color: var(--accent);
}
.header-contact {
  font-size: 13px;
}
.header-contact span {
  margin-left: 22px;
  color: var(--accent);
}
.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 70px;
  padding-block: 60px 50px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #92969d;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 10px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(45px, 4.65vw, 68px);
  line-height: 1.13;
  margin-top: 30px;
  text-wrap: balance;
}
.title-period {
  color: var(--accent);
}
.intro {
  font-size: 15px;
  line-height: 1.8;
  color: #92969d;
  margin-top: 28px;
}
.primary-link {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #92969d;
  padding-bottom: 11px;
}
.primary-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.hero .primary-link {
  margin-top: 30px;
}
.primary-link span {
  color: var(--accent);
}

/* HERO: a glass-framed view of a real project. */
.tiny-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--secondary);
  font-weight: 500;
}
.hero-feature {
  min-width: 0;
  border: 1px solid #92969d77;
  border-radius: 14px;
  background: linear-gradient(145deg, #17191c44, #17191c77);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.hero-feature[hidden] {
  display: none;
}
.feature-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 26px 0;
}
.feature-heading h2 {
  font: 500 25px var(--display);
  letter-spacing: -0.03em;
}
.feature-art {
  height: 225px;
  position: relative;
  margin-top: 15px;
}

.feature-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 18px;
}
.feature-bottom p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.7;
  max-width: 36ch;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}
/* SHARED SECTION HEADINGS */
.section {
  padding-top: 108px;
  scroll-margin-top: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-top: 0;
}
.subtle-period {
  color: #92969d;
}
.section-heading > p {
  color: var(--secondary);
  font-size: var(--reading-size);
  line-height: 1.8;
  max-width: 270px;
  margin-bottom: 3px;
}

/* 01. EXPERIENCE AND EXPANDABLE JOB PROJECTS */
.experience {
  border-top: 1px solid var(--line);
}
.experience:last-child {
  border-bottom: 1px solid var(--line);
}
.experience summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding-block: 30px;
  gap: 26px;
}
.experience summary::-webkit-details-marker {
  display: none;
}

.experience-main {
  flex: 1;
}
.experience-main h3 {
  font: 500 22px var(--display);
  letter-spacing: -0.03em;
}
.experience-main > span {
  display: block;
  color: var(--secondary);
  font-size: 12px;
  margin-top: 10px;
}
.experience-main i {
  font-style: normal;
  margin-inline: 9px;
  color: #92969d;
}
.experience-date {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--secondary);
  margin-right: 34px;
}
.expand-icon {
  border: 1px solid #17191c;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 400;
  color: #92969d;
  transition: transform 0.2s;
}
.experience[open] .expand-icon {
  transform: rotate(45deg);
  background: #92969d15;
}
.experience summary:hover h3 {
  color: var(--accent);
}
.experience-body {
  padding: 0 58px 32px 46px;
}
.experience-body > p {
  color: #92969d;
  font-size: var(--reading-size);
  line-height: 1.9;
  max-width: 700px;
}
.job-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 24px;
}
.job-projects article {
  background: linear-gradient(130deg, #17191c88, #17191c88);
  border: 1px solid #17191c;
  border-radius: 8px;
  padding: 24px;
}
.job-projects h4 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 0;
}
.job-projects p {
  font-size: var(--reading-size);
  line-height: 1.8;
  color: var(--secondary);
  margin-top: 12px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.job-projects .tags {
  margin-top: 22px;
}
.tag {
  font-size: 12px;
  color: #92969d;
  border: 1px solid #17191c;
  background: #17191c55;
  border-radius: 4px;
  padding: 5px 8px;
  line-height: 1.2;
}
/* 02. PROJECT FILTERS, CARDS, AND DECORATIVE PREVIEWS */
.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}
.filters {
  display: flex;
  gap: 4px;
  background: #17191c;
  border: 1px solid #17191c;
  padding: 4px;
  border-radius: 7px;
}
.filters button {
  font-size: 12px;
  color: #92969d;
  padding: 8px 14px;
  border-radius: 4px;
  transition:
    background 0.2s,
    color 0.2s;
}
.filters button[aria-pressed='true'] {
  background: #17191c;
  color: #f2f0ec;
  box-shadow: 0 2px 6px #08090a33;
}
.filters button span {
  margin-left: 10px;
  font-size: 12px;
  color: #92969d;
}
.filters button:hover {
  color: var(--accent);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Each project is one surface, with explicit actions inside its footer. */
.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #17191c;
  border-radius: 12px;
  background: linear-gradient(145deg, #17191c66, #17191c);
  box-shadow:
    inset 0 1px #f2f0ec05,
    0 12px 35px #08090a22;
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    translate 0.3s;
}
.project-card:hover,
.project-card:focus-within {
  border-color: #92969d;
  box-shadow:
    0 15px 45px #08090a55,
    0 0 30px #92969d10;
  translate: 0 -5px;
}
.project-art {
  height: 245px;
  border-bottom: 1px solid #17191c;
  background: #17191c;
  position: relative;
  overflow: hidden;
}
.project-art-label {
  position: absolute;
  bottom: 14px;
  left: 20px;
  right: 16px;
  font-size: 7px;
  letter-spacing: 1.2px;
  color: #92969d;
}
.project-body {
  padding: 23px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #92969d;
}
.project-meta span + span {
  font-size: 12px;
  letter-spacing: 1px;
  color: #92969d;
}
.project-card h3 {
  font: 500 23px var(--display);
  letter-spacing: -0.03em;
  margin-top: 15px;
}
.project-card p {
  font-size: var(--reading-size);
  color: #92969d;
  line-height: 1.75;
  margin-top: 11px;
}
.project-body > .tags {
  margin-top: 20px;
  margin-bottom: 26px;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  border-top: 1px solid #17191c;
  padding-top: 20px;
}
.project-open {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border: 1px solid #92969d66;
  border-radius: 5px;
  background: #92969d20;
  color: #f2f0ec;
  padding: 11px 13px;
  font-size: 12px;
  text-align: left;
  transition: background 0.2s;
}
.project-open:hover {
  background: #92969d36;
}
.project-open span {
  transition: translate 0.2s;
}
.project-open:hover span {
  translate: 2px -2px;
}
.project-repository {
  font-size: 12px;
  color: #92969d;
  padding-block: 10px;
}
.project-repository:hover {
  color: var(--accent);
}
/* 03. PERSONAL INTERESTS AND LOGO ILLUSTRATIONS */
.personal-section {
  padding-bottom: 110px;
}
.personal-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  background: linear-gradient(115deg, #17191c80, #17191c30);
  border: 1px solid #17191c;
  border-radius: 10px;
  padding: 48px;
}

.interest-shelf {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.interest {
  padding: 0;
  text-align: left;
  min-width: 0;
  flex: 1;
  max-width: 190px;
}
.interest-art {
  height: 158px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 40%, #92969d44, transparent 70%);
  position: relative;
  transition: transform 0.35s;
}

.interest:hover .interest-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 8px;
  align-items: center;
}
.interest-label > span {
  color: #92969d;
}
.interest > small {
  display: block;
  font-size: 12px;
  color: #92969d;
  margin-top: 8px;
}

.interest:hover 
/* CONTACT AND FOOTER */
.contact {
  padding: 72px 0 55px;
  border-top: 1px solid var(--line);
}
.contact h2 {
  font-size: clamp(45px, 6.8vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-top: 30px;
}
.contact h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #92969d;
  letter-spacing: -0.03em;
}
.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 24px;
}
.contact-bottom p {
  font-size: var(--reading-size);
  color: #92969d;
  line-height: 1.9;
}
.contact-button {
  background: #f2f0ec;
  color: #17191c;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 68px;
  padding: 17px 22px;
  font-size: 13px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.contact-button:hover {
  background: #f2f0ec;
  transform: translateY(-2px);
}
.contact-button span {
  font-size: 19px;
}
.footer {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 105px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--secondary);
}
.footer .wordmark {
  font-size: 26px;
  margin-right: 10px;
  color: #92969d;
}
.footer > span:nth-of-type(2) {
  margin-left: auto;
}
.footer > a:last-child {
  margin-left: auto;
  color: #92969d;
}
.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  background: var(--accent);
  color: #17191c;
  padding: 12px;
  z-index: 50;
}
.skip:focus {
  top: 20px;
}
.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;
}
.modal-open {
  overflow: hidden;
}
/* DETAIL DIALOGS AND PERSONAL WIDGETS */
dialog {
  width: min(600px, calc(100% - 32px));
  max-height: 85vh;
  padding: 30px;
  border: 1px solid #92969d77;
  border-radius: 14px;
  background: linear-gradient(135deg, #17191ced, #17191cee);
  color: var(--text);
  box-shadow: 0 40px 150px #08090abb;
  backdrop-filter: blur(30px);
}
dialog::backdrop {
  background: #08090abb;
  backdrop-filter: blur(10px);
}
dialog[open] {
  animation: dialog-in 0.25s ease-out;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 12px;
}
.dialog-top .eyebrow {
  font-size: 12px;
  line-height: 1.6;
}
.close-button {
  width: 44px;
  height: 44px;
  border: 1px solid #92969d66;
  border-radius: 50%;
  color: #92969d;
  flex-shrink: 0;
}
dialog h2 {
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.dialog-description {
  font-size: 14px;
  line-height: 1.9;
  color: #92969d;
  margin-block: 22px;
}
.widget-note {
  padding: 15px;
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.8;
  color: #92969d;
  background: #92969d08;
  border: 1px solid #92969d33;
  border-radius: 6px;
}

.royale-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
  padding: 22px 0;
  border-block: 1px solid #92969d22;
}
.royale-stats .tiny-label {
  display: block;
}
.royale-stats strong {
  display: block;
  font: 500 35px var(--display);
  margin-top: 12px;
  color: #f2f0ec;
}
.royale-stats strong.player-tag {
  font-size: 17px;
}
.deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.deck-card {
  aspect-ratio: 0.8;
  border: 1px solid #92969d33;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #92969d22, #17191c);
  font-size: 12px;
  padding: 8px;
  text-align: center;
  overflow-wrap: anywhere;
}

/* MOTION */

@keyframes dialog-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.project-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* SKILLS: every item comes from skillGroups in content.js. */
.skills-showcase {
  padding-block: 37px 30px;
  border-block: 1px solid var(--line);
}
.skills-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.skills-heading h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin-top: 11px;
}
.motion-control {
  font-size: 12px;
  color: #92969d;
  border: 1px solid #92969d55;
  border-radius: 20px;
  padding: 10px 15px;
  white-space: nowrap;
}
.motion-control:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.skill-lanes {
  display: grid;
  gap: 12px;
}
.skill-lane {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 25px;
}
.skill-lane h3 {
  font-size: 12px;
  font-weight: 500;
  color: #92969d;
}
.skill-window {
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 30px,
    black calc(100% - 30px),
    transparent
  );
}
.skill-track {
  display: flex;
  width: max-content;
  animation: skills-drift var(--lane-duration) linear infinite;
}
.skill-lane:nth-child(even) .skill-track {
  animation-direction: reverse;
}
.skill-batch {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  list-style: none;
  padding: 0 10px 0 0;
  margin: 0;
}
.skill-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #92969d55;
  border-radius: 6px;
  padding: 13px 17px;
  font-size: 12px;
  color: #92969d;
  background: linear-gradient(125deg, #92969d27, #17191c);
  white-space: nowrap;
}
.skill-chip:before {
  content: '';
  width: 4px;
  height: 4px;
  background: #92969d;
  border-radius: 50%;
  box-shadow: 0 0 8px #92969d33;
}
.skill-window:hover .skill-track,
.skills-showcase.is-paused .skill-track {
  animation-play-state: paused;
}
.skills-showcase.is-paused .skill-window {
  overflow: visible;
  mask-image: none;
}
.skills-showcase.is-paused .skill-track {
  animation: none;
  width: auto;
}
.skills-showcase.is-paused .skill-batch[aria-hidden] {
  display: none;
}
.skills-showcase.is-paused .skill-batch {
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  padding: 0;
}
.motion-paused *,
.motion-paused *:before,
.motion-paused *:after {
  animation-play-state: paused !important;
}
@keyframes skills-drift {
  to {
    transform: translateX(-33.333333%);
  }
}

/* Motion preferences for the continuously animated skill lanes. */

@media (hover: none) {
  .skill-window:hover .skill-track {
    animation-play-state: running;
  }
  .skills-showcase.is-paused .skill-track {
    animation-play-state: paused;
  }
}
@media (max-width: 760px) {
  .skills-heading {
    align-items: flex-start;
  }
  .skills-heading h2 {
    font-size: 21px;
    max-width: 230px;
  }

  .motion-control {
    padding: 9px 11px;
    font-size: 12px;
  }
  .skill-lane {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .skill-lane h3 {
    font-size: 12px;
  }
  .skill-lanes {
    gap: 20px;
  }
  .skill-chip {
    padding: 11px 14px;
    font-size: 12px;
  }
  .project-body {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skill-window {
    overflow: visible;
    mask-image: none;
  }
  .skill-track {
    width: auto;
  }
  .skill-batch {
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    padding: 0;
  }
  .skill-batch[aria-hidden] {
    display: none;
  }
}

/* RESPONSIVE LAYOUT: LARGE SCREENS */
@media (min-width: 1500px) {
  .hero {
    min-height: 630px;
  }

  .hero h1 {
    font-size: 70px;
  }
}
/* RESPONSIVE LAYOUT: TABLETS AND SMALL LAPTOPS */
@media (max-width: 1100px) {
  .shell {
    width: calc(100% - 72px);
  }
  .hero {
    gap: 40px;
    min-height: 540px;
  }

  .project-grid {
    gap: 18px;
  }
  .project-art {
    height: 210px;
  }
  .project-card h3 {
    font-size: 18px;
  }

  .personal-layout {
    padding: 35px;
    gap: 25px;
  }
  .interest-shelf {
    gap: 20px;
  }

  .project-toolbar > .tiny-label {
    font-size: 12px;
  }
  .experience-date {
    margin-right: 15px;
  }
}
/* RESPONSIVE LAYOUT: PHONES */
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }
  .header {
    height: 82px;
  }
  .header nav {
    gap: 20px;
    font-size: 12px;
  }
  .header-contact {
    display: none;
  }
  .wordmark {
    font-size: 30px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 55px;
    padding-bottom: 65px;
  }
  .hero h1 {
    font-size: clamp(43px, 8.7vw, 66px);
    letter-spacing: -0.03em;
    margin-top: 25px;
  }

  .intro {
    font-size: 14px;
    margin-top: 22px;
  }

  .section {
    padding-top: 75px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading h2 {
    font-size: 34px;
    letter-spacing: -0.03em;
    margin-top: 16px;
  }
  .section-heading > p {
    margin-top: 20px;
    font-size: var(--reading-size);
  }

  .experience summary {
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 25px;
  }

  .experience-main h3 {
    font-size: 20px;
  }
  .experience-main > span {
    font-size: 12px;
    line-height: 1.6;
  }
  .experience-main i {
    margin-inline: 6px;
  }
  .experience-date {
    order: 4;
    margin-left: 28px;
    margin-top: -5px;
    width: calc(100% - 28px);
  }
  .expand-icon {
    width: 28px;
    height: 28px;
  }
  .experience-body {
    padding: 0 0 25px 28px;
  }
  .job-projects {
    grid-template-columns: 1fr;
  }
  .job-projects article {
    padding: 20px;
  }
  .project-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .filters {
    width: 100%;
    justify-content: space-between;
  }
  .filters button {
    padding: 9px 13px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .project-art {
    height: 270px;
  }

  .project-card h3 {
    font-size: 23px;
  }
  .project-card p {
    font-size: var(--reading-size);
    min-height: 0;
    max-width: 420px;
  }
  .project-meta {
    margin-top: 20px;
  }
  .personal-layout {
    grid-template-columns: 1fr;
    padding: 27px;
    gap: 25px;
  }

  .interest-shelf {
    gap: 20px;
  }
  .interest-art {
    height: 140px;
  }
  .interest-label {
    font-size: 12px;
  }
  .interest > small {
    font-size: 12px;
    line-height: 1.7;
  }

  .personal-section {
    padding-bottom: 75px;
  }
  .contact {
    padding-top: 50px;
  }
  .contact h2 {
    font-size: 53px;
    letter-spacing: -0.03em;
  }
  .contact h2 em {
    letter-spacing: -0.03em;
  }
  .contact-bottom {
    align-items: start;
    flex-direction: column;
    gap: 25px;
  }
  .contact-bottom p {
    font-size: var(--reading-size);
  }
  .contact-button {
    width: 100%;
    justify-content: space-between;
  }
  .footer {
    gap: 15px;
    flex-wrap: wrap;
    padding-block: 25px;
    min-height: 120px;
    font-size: 12px;
  }
  .footer .wordmark {
    margin-right: 0;
  }
  .footer > span:nth-of-type(2) {
    margin-left: auto;
  }
  .footer > a:last-child {
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
  .deck {
    gap: 8px;
  }
  dialog {
    padding: 24px;
  }
  dialog h2 {
    font-size: 30px;
  }
  .dialog-description {
    font-size: 13px;
  }
}
/* Evidence stays visible before expanding a role. */
.experience-main {
  min-width: 0;
}
.experience-main > span {
  line-height: 1.7;
}
.experience-highlight {
  color: var(--accent);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.experience-date {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.7;
}
.experience-body {
  padding-left: 0;
}
.job-projects article {
  border-radius: 12px;
}
.job-projects h4 {
  margin-top: 0;
}
.project-status {
  font-size: 12px;
  color: var(--accent);
  line-height: 1.6;
}
.project-detail-section {
  margin-block: 24px;
}
.project-detail-section h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 9px;
}
.project-detail-section p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--secondary);
  max-width: 68ch;
}
.interest-empty {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.8;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.deck-title {
  font-size: 16px;
  margin-top: 24px;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.contact-secondary {
  display: flex;
  align-items: center;
  gap: 24px;
}
.contact-secondary .primary-link {
  font-size: 14px;
  min-height: 44px;
}
.header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.filters button {
  min-height: 44px;
}
.motion-control {
  min-height: 44px;
}
.skills-showcase {
  margin-top: 88px;
}
a {
  text-underline-offset: 0.22em;
}
@media (max-width: 760px) {
  .header nav {
    gap: 14px;
  }
  .hero {
    gap: 32px;
  }
  .feature-heading {
    padding: 22px 22px 0;
  }
  .feature-art {
    height: 185px;
  }

  .feature-bottom {
    padding: 20px 22px;
  }
  .experience-highlight {
    font-size: 13px;
  }
  .experience-date {
    width: 100%;
    margin-left: 0;
  }
  .experience-body {
    padding-left: 0;
    padding-right: 0;
  }
  .skills-showcase {
    margin-top: 60px;
  }
  .contact-actions {
    width: 100%;
    gap: 20px;
  }
  .contact-actions > .contact-button {
    width: 100%;
    justify-content: space-between;
  }
  .contact-secondary {
    width: 100%;
  }
}

/* ACCESSIBILITY: HONOR THE DEVICE'S REDUCED-MOTION PREFERENCE */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
