@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Zen+Old+Mincho:wght@600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #06111f;
  --bg-alt: #09192c;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --text: #f4f7fb;
  --muted: #9cacbf;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #9fc9ff;
  --accent-strong: #d6e9ff;
  --font-body: "Zen Kaku Gothic New", "Noto Sans TC", system-ui, sans-serif;
  --font-display: "Zen Old Mincho", "Noto Serif TC", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --max-width: 1160px;
  --radius: 24px;
}

html[lang="zh-TW"] {
  --font-body: "Noto Sans TC", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-display: "Noto Serif TC", "Zen Old Mincho", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(66, 131, 202, 0.18), transparent 29rem),
    linear-gradient(180deg, #071426 0%, var(--bg) 55%, #040b14 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.78;
  letter-spacing: 0.018em;
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

.eyebrow,
.section-number,
.company,
.education-year,
.work-kicker,
.work-status,
.credit-number,
.case-label,
.case-detail h4,
.project-label,
.brand-mark,
.language-switcher,
.button,
.store-link,
.credit-link {
  font-family: var(--font-mono);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: white;
  color: #081523;
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  background: rgba(6, 17, 31, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: fit-content;
  font-weight: 600;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

.desktop-nav a,
.language-switcher button {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus,
.language-switcher button:hover,
.language-switcher button:focus,
.language-switcher button.active {
  color: var(--text);
}

.language-switcher {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #576b82;
  white-space: nowrap;
}

.language-switcher button {
  border: 0;
  padding: 4px;
  background: transparent;
  cursor: pointer;
}

main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 72px;
  padding: 72px 0 92px;
}

.eyebrow,
.section-number,
.company,
.education-year {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 4px;
  max-width: 760px;
  font-size: clamp(3.6rem, 9vw, 7.7rem);
  line-height: 0.93;
  font-family: var(--font-display);
  letter-spacing: 0.005em;
  font-weight: 700;
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: var(--accent-strong);
}

.hero-description {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: #071426;
  border-color: var(--text);
}

.button-secondary {
  background: transparent;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.portrait-frame {
  width: min(100%, 330px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 170px 170px 30px 30px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 15, 28, 0.24));
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 72% center;
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 58px;
}

h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: 86px;
}

.about-copy {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.work-section {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
}

.work-heading {
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.work-heading .section-number {
  margin-bottom: 18px;
}

.work-intro {
  width: min(100%, 430px);
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.work-group {
  display: grid;
}

.work-subheading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.5fr);
  align-items: end;
  column-gap: 72px;
  margin-bottom: 34px;
}

.work-kicker {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-subheading h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.04;
  font-family: var(--font-display);
  letter-spacing: 0.015em;
  font-weight: 700;
}

.work-subheading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.personal-project-card {
  padding: clamp(24px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 7vw, 82px);
  border: 1px solid rgba(159, 201, 255, 0.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 24%, rgba(104, 86, 255, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(159, 201, 255, 0.11), rgba(255, 255, 255, 0.025));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.personal-project-list {
  display: grid;
  gap: 18px;
}

.personal-project-card-pattern {
  border-color: rgba(255, 147, 106, 0.32);
  background:
    radial-gradient(circle at 18% 26%, rgba(241, 80, 81, 0.2), transparent 25rem),
    linear-gradient(135deg, rgba(77, 162, 240, 0.13), rgba(255, 255, 255, 0.025));
}

.personal-project-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: #020712;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.personal-project-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.personal-project-copy .work-card-topline {
  justify-content: flex-end;
  margin-bottom: 44px;
}

.personal-status {
  border-color: rgba(165, 232, 191, 0.28);
  color: #b7f2ca;
}

.personal-project-copy h3 {
  margin: 8px 0 20px;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  line-height: 0.96;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  font-weight: 700;
}

.personal-project-copy h3 span {
  display: block;
  margin-top: 16px;
  color: var(--accent-strong);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  font-weight: 500;
}

.personal-project-copy > p:not(.company) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.personal-tags {
  margin-top: 28px !important;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.store-link {
  min-width: 150px;
  min-height: 48px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.store-link:hover,
.store-link:focus {
  transform: translateY(-2px);
  border-color: rgba(159, 201, 255, 0.48);
  background: rgba(159, 201, 255, 0.1);
}

.store-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
}

.store-link .store-icon {
  margin-right: -14px;
}

.credit-link .store-icon {
  width: 14px;
  height: 14px;
}

.personal-work {
  margin-top: 100px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(159, 201, 255, 0.07), transparent 50%),
    var(--surface);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(173, 173, 255, 0.5);
  background-color: var(--surface-strong);
  box-shadow: 0 16px 36px rgba(2, 9, 20, 0.2);
}

.work-card-featured {
  grid-column: 1 / -1;
  padding: clamp(28px, 4.5vw, 48px);
  background:
    radial-gradient(circle at 88% 12%, rgba(125, 126, 255, 0.16), transparent 22rem),
    radial-gradient(circle at 16% 86%, rgba(75, 159, 241, 0.1), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.case-study-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 72px);
  isolation: isolate;
}

.case-study-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(214, 233, 255, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 233, 255, 0.9) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 30%, black 100%);
}

.case-study-card::after {
  content: "{ }";
  position: absolute;
  right: clamp(22px, 4vw, 54px);
  bottom: -0.18em;
  z-index: -1;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  letter-spacing: 0.04em;
  opacity: 0.04;
  pointer-events: none;
}

.case-study-primary,
.case-study-details {
  min-width: 0;
}

.case-study-primary {
  display: flex;
  flex-direction: column;
}

.work-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.work-status {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.credit-number {
  color: rgba(214, 233, 255, 0.45);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.work-card h3 {
  margin: 7px 0 18px;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  line-height: 1.12;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.work-card-featured h3 {
  margin: 10px 0 24px;
  font-size: clamp(2.25rem, 4.2vw, 3.8rem);
  line-height: 0.96;
}

.professional-card h3 span {
  display: block;
  margin-top: 0.25em;
  font-size: 0.58em;
  line-height: 1.25;
  letter-spacing: 0.015em;
}

.work-card > p:last-child,
.work-card > .credit-description,
.case-detail li {
  color: #b7c4d4;
}

.case-role {
  display: grid;
  gap: 5px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case-role strong {
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 580;
}

.case-label,
.case-detail h4 {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-study-primary .credit-links {
  margin-top: auto;
  padding-top: 32px;
}

.case-study-details {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.75fr);
  gap: 24px 34px;
}

.case-detail {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.case-detail-responsibilities {
  grid-row: span 2;
}

.case-detail h4 {
  margin: 0 0 12px;
}

.case-detail ul:not(.work-tags) {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.1rem;
}

.case-detail li::marker {
  color: rgba(159, 201, 255, 0.62);
}

.professional-card {
  min-width: 0;
}

.professional-card-blue {
  background: linear-gradient(145deg, rgba(80, 139, 202, 0.09), transparent 58%), var(--surface);
}

.professional-card-violet {
  background: linear-gradient(145deg, rgba(128, 111, 184, 0.09), transparent 58%), var(--surface);
}

.professional-card-slate {
  background: linear-gradient(145deg, rgba(118, 145, 163, 0.08), transparent 58%), var(--surface);
}

.credit-description {
  margin: 0;
  color: #b5c2d2;
}

.credit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease, background-color 200ms ease;
}

.credit-link:hover,
.credit-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  background: rgba(159, 201, 255, 0.06);
}

.credit-link > span:last-child,
.store-link > span:last-child {
  display: inline-block;
  transition: transform 200ms ease;
}

.credit-link:hover > span:last-child,
.credit-link:focus-visible > span:last-child,
.store-link:hover > span:last-child,
.store-link:focus-visible > span:last-child {
  transform: translateX(3px);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.work-tags li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(159, 201, 255, 0.09);
  color: var(--accent-strong);
  font-size: 0.82rem;
  transition: background-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.work-card:hover .work-tags li,
.work-card:focus-within .work-tags li {
  background: rgba(159, 201, 255, 0.14);
  color: #e6f2ff;
  box-shadow: 0 0 18px rgba(116, 161, 255, 0.1);
}

.compact-tags {
  margin-top: 22px;
}

.compact-tags li {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.js .work-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .work-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms ease, transform 280ms ease;
}

.profile-facts {
  display: grid;
  align-content: start;
}

.profile-facts div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.profile-facts div:last-child {
  border-bottom: 1px solid var(--line);
}

.profile-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 5px;
}

.profile-facts strong {
  font-weight: 580;
}

.timeline {
  display: grid;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 54px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline-content h3,
.education-card h3 {
  margin: 6px 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-family: var(--font-display);
  letter-spacing: 0.015em;
  font-weight: 700;
}

.timeline-content > p:last-of-type {
  color: var(--muted);
  max-width: 760px;
}

.experience-highlights {
  display: grid;
  gap: 7px;
  max-width: 760px;
  margin: 22px 0 0;
  padding-left: 1.2rem;
  color: var(--accent-strong);
}

.experience-highlights li::marker {
  color: var(--accent);
}

.project-label {
  color: var(--accent-strong) !important;
  margin-bottom: 14px;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.project-list li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.education-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.education-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  margin: 70px auto;
  padding: clamp(36px, 7vw, 74px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  border-radius: 34px;
  background: #f1f6fc;
  color: #071426;
}

.contact-section h2 {
  margin-top: 18px;
}

.contact-section p:not(.section-number) {
  max-width: 650px;
  color: #536274;
}

.contact-section .section-number {
  color: #325f91;
}

.button-light {
  flex: 0 0 auto;
  background: #071426;
  color: white;
  border-color: #071426;
}

footer {
  min-height: 120px;
  padding: 26px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
    padding-top: 82px;
  }

  .hero-visual {
    justify-content: start;
  }

  .portrait-frame {
    width: min(76vw, 320px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

  .work-subheading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .personal-project-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 38px;
  }

  .work-card-featured {
    grid-column: auto;
  }

  .case-study-card {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .case-study-primary .credit-links {
    margin-top: 0;
  }

  .case-study-details {
    grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.85fr);
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    padding: 14px 0;
  }

  .brand-name {
    display: none;
  }

  .language-switcher {
    gap: 4px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 66px 0 78px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .section {
    padding: 82px 0;
  }

  .work-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .work-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

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

  .personal-project-card {
    grid-template-columns: 1fr;
    gap: 34px;
    border-radius: 26px;
  }

  .personal-project-video {
    width: 100%;
  }

  .personal-project-copy .work-card-topline {
    margin-bottom: 30px;
  }

  .personal-work {
    margin-top: 70px;
    padding-top: 54px;
  }

  .work-grid .work-card:not(.work-card-featured):last-child {
    grid-column: auto;
  }

  .work-card,
  .work-card-featured {
    padding: 26px;
  }

  .case-study-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-card-featured h3 {
    font-size: clamp(2.1rem, 10vw, 3.35rem);
  }

  .professional-card h3 {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
  }

  .case-detail-responsibilities {
    grid-row: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }

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

  .education-card {
    padding: 26px;
  }

  .contact-section {
    margin: 42px auto;
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .js .work-reveal,
  .js .work-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .work-card:hover,
  .work-card:focus-within,
  .credit-link:hover,
  .credit-link:focus-visible,
  .credit-link:hover > span:last-child,
  .credit-link:focus-visible > span:last-child,
  .store-link:hover > span:last-child,
  .store-link:focus-visible > span:last-child {
    transform: none;
  }
}
