:root {
  --paper: #fafaf7;
  --surface: #fff;
  --soft: #eeefeb;
  --ink: #202625;
  --muted: #66706b;
  --line: #d9ddd6;
  --accent: #8b3046;
  --accent-soft: #eee2e5;
  --sans:
    Inter, "Helvetica Neue", Arial, "Noto Sans TC", "Microsoft JhengHei",
    sans-serif;
  --mono: Consolas, "SFMono-Regular", monospace;
  --width: 1180px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #171c1a;
  --surface: #1e2521;
  --soft: #252d27;
  --ink: #eff1e9;
  --muted: #adb5ab;
  --line: #394139;
  --accent: #e5a3b0;
  --accent-soft: #3c2d32;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
a {
  touch-action: manipulation;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
}
h1,
h2 {
  letter-spacing: -0.055em;
}
h3 {
  letter-spacing: -0.025em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent-soft);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.container {
  width: min(var(--width), calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 500 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow > span {
  color: var(--accent);
}
.small-label {
  display: block;
  color: var(--muted);
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 550;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.section-heading .eyebrow,
.about-grid .eyebrow,
.contact-grid .eyebrow {
  margin-bottom: 20px;
}
.section-note {
  font: 11px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.wordmark {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.05em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-dot {
  color: var(--accent);
}
.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.desktop-nav a,
.mobile-nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}
.desktop-nav a:hover,
.desktop-nav a[aria-current] {
  color: var(--ink);
}
.desktop-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-actions button {
  min-width: 40px;
  min-height: 44px;
  border: 0;
  background: none;
  font-size: 12px;
}
.theme-switch svg {
  width: 18px;
  height: 18px;
  display: block;
}
.menu-toggle {
  display: none;
  gap: 12px;
  align-items: center;
}
.mobile-nav {
  padding: 8px 24px 24px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.hero {
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  column-gap: 68px;
  align-items: center;
}
.hero-copy {
  padding: 16px 0 30px;
}
.name-chinese {
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin: 28px 0 12px;
}
h1 {
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 620;
  line-height: 0.96;
}
h1 > span {
  color: var(--accent);
}
.hero-intro {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 460px;
  margin: 28px 0;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.primary-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero-portrait {
  align-self: end;
}
.portrait-stage {
  height: 480px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: var(--soft);
  border-radius: 180px 180px 0 0;
}
.portrait-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}
.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 13px;
}
.hero-foot {
  grid-column: 1/-1;
  margin-top: 44px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}
.hero-foot p {
  font-size: 13px;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.hero-foot a {
  text-decoration: none;
}
.hero-foot a:hover {
  color: var(--accent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 80px;
}
.about-location {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}
.bio-copy p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 22px;
}
.bio-copy p:first-child {
  font-size: 22px;
  color: var(--ink);
  line-height: 1.7;
}
.text-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.filters button {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 10px 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  min-height: 44px;
}
.filters button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px 36px;
}
.project {
  min-width: 0;
}
.project--lead {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 54px;
  align-items: center;
  padding-bottom: 12px;
}
.project-visual {
  background: var(--soft);
  overflow: hidden;
}
.project-visual .photo-button {
  width: 100%;
  aspect-ratio: 16/10;
}
.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.project-visual:hover img {
  transform: scale(1.025);
}
.photo-button {
  position: relative;
  display: block;
  border: 0;
  background: var(--soft);
  padding: 0;
  overflow: hidden;
  text-align: initial;
}
.photo-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  border: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.15s;
}
.photo-button:hover .photo-zoom,
.photo-button:focus-visible .photo-zoom {
  opacity: 1;
}
.project-copy {
  padding-top: 24px;
}
.project--lead .project-copy {
  padding-top: 0;
}
.project-number {
  font: 11px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.project h3 {
  font-size: 27px;
  margin-bottom: 16px;
  font-weight: 550;
}
.project--lead h3 {
  font-size: 40px;
}
.project-copy > p:not(.project-number) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--muted);
  font: 10px/1.8 var(--mono);
  margin-top: 20px;
}
.project-links {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}
.project-wordmark {
  aspect-ratio: 16/10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
}
.project-wordmark span {
  font: 600 clamp(36px, 5vw, 68px) var(--mono);
  letter-spacing: -0.06em;
}
.project-wordmark p {
  font: 11px var(--mono);
  margin-top: 12px;
}
.section-experience {
  background: var(--soft);
}
.record-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font: 10px var(--mono);
  margin-bottom: 9px;
}
.pin-label {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--accent);
  font: 10px var(--sans);
}
.pin-label svg {
  width: 13px;
  height: 13px;
}
.empty-state {
  padding: 30px 0;
  color: var(--muted);
}
.section-life {
  background: var(--surface);
}
.life-intro {
  max-width: 680px;
  margin-bottom: 42px;
}
.life-intro p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}
.moments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.moments .photo-button {
  width: 100%;
  aspect-ratio: 4/5;
}
.moments img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.moments figcaption {
  font-size: 11px;
  color: var(--muted);
  padding-top: 12px;
  line-height: 1.6;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 80px;
}
.email-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: clamp(17px, 2.5vw, 27px);
  text-decoration: none;
  letter-spacing: -0.025em;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.email-link:hover {
  color: var(--accent);
}
.contact-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.contact-links > div a {
  text-decoration: none;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
}
.site-footer a {
  text-decoration: none;
}
.image-dialog {
  max-width: min(94vw, 1100px);
  max-height: 92dvh;
  border: 0;
  padding: 46px 24px 20px;
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
}
.image-dialog::backdrop {
  background: rgb(12 17 14 / 0.87);
}
.image-dialog img {
  max-height: 76dvh;
  max-width: 100%;
  width: auto;
  margin: auto;
  object-fit: contain;
}
.image-dialog figcaption {
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
}
.dialog-close {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  font-size: 30px;
  font-weight: 300;
}
.image-open {
  overflow: hidden;
}
.image-error {
  padding: 36px;
  font-size: 14px;
}
.image-failed {
  visibility: hidden;
}
.preview-notice {
  padding: 10px 24px;
  background: #f1e7be;
  color: #423c24;
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.preview-notice a {
  font-weight: 600;
}
@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}
@media (max-width: 1050px) {
  .container {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 38px;
  }
  .portrait-stage {
    height: 430px;
  }
  .desktop-nav {
    gap: 20px;
  }
  .about-grid,
  .contact-grid {
    gap: 50px;
  }
  .project--lead {
    gap: 35px;
  }
}
@media (max-width: 899px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: flex !important;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
  }
  .hero-intro {
    font-size: 18px;
  }
  .portrait-stage {
    height: 365px;
  }
  .hero-foot {
    gap: 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-location {
    display: none;
  }
  .bio-copy p:first-child {
    font-size: 21px;
  }
  .section {
    padding: 76px 0;
  }
  .section-heading {
    align-items: start;
  }
  .section-note {
    margin-top: 10px;
  }
  .moments {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project--lead h3 {
    font-size: 32px;
  }
}
@media (max-width: 600px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    height: 64px;
    gap: 10px;
  }
  .wordmark {
    font-size: 17px;
  }
  .header-actions {
    gap: 0;
  }
  .hero {
    padding-top: 38px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 22px 12px;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > .eyebrow {
    grid-column: 1/-1;
    font-size: 10px;
  }
  .name-chinese {
    grid-column: 1/-1;
    margin: 0;
    font-size: 13px;
  }
  .hero h1 {
    grid-column: 1;
    font-size: clamp(36px, 10.8vw, 66px);
    align-self: center;
  }
  .hero-portrait {
    grid-column: 2;
    grid-row: 3;
    margin-left: 7px;
    align-self: center;
  }
  .portrait-stage {
    height: auto;
    aspect-ratio: 0.82;
    border-radius: 100px 100px 0 0;
  }
  .hero-portrait figcaption {
    font-size: 8px;
    padding-top: 9px;
    gap: 4px;
  }
  .hero-portrait figcaption span:last-child {
    display: none;
  }
  .hero-intro {
    grid-column: 1/-1;
    font-size: 17px;
    max-width: 100%;
    margin: 0;
    line-height: 1.7;
  }
  .hero .primary-link {
    grid-column: 1/-1;
    justify-self: start;
    padding: 13px 18px;
  }
  .hero-foot {
    margin-top: 12px;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 24px;
  }
  .hero-foot p {
    font-size: 12px;
  }
  .hero-foot .small-label {
    font-size: 10px;
  }
  .section {
    padding: 60px 0;
  }
  .section-heading {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
  }
  .section-heading .eyebrow {
    margin-bottom: 16px;
  }
  h2 {
    font-size: 32px;
    letter-spacing: -0.045em;
  }
  .bio-copy p:first-child {
    font-size: 19px;
  }
  .bio-copy p {
    font-size: 15px;
  }
  .filters {
    gap: 18px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .project--lead {
    display: block;
  }
  .project--lead .project-copy {
    padding-top: 22px;
  }
  .project h3,
  .project--lead h3 {
    font-size: 27px;
  }
  .project-copy > p:not(.project-number) {
    font-size: 14px;
  }
  .record-meta {
    gap: 12px;
    font-size: 9px;
  }
  .section-note {
    margin-top: 0;
  }
  .life-intro p {
    font-size: 16px;
  }
  .moments {
    gap: 16px;
  }
  .moments figcaption {
    font-size: 10px;
  }
  .contact-links > div {
    font-size: 11px;
  }
  .email-link {
    font-size: 21px;
  }
  .site-footer {
    font-size: 9px;
    flex-wrap: wrap;
    row-gap: 14px;
  }
  .site-footer > span:nth-child(2) {
    display: none;
  }
  .image-dialog {
    padding: 44px 12px 16px;
    max-width: 96vw;
  }
  .image-dialog figcaption {
    font-size: 11px;
  }
  .preview-notice {
    font-size: 11px;
    gap: 10px;
    padding: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .site-header,
  .filters,
  .header-actions,
  .primary-link,
  .photo-zoom,
  .site-footer a {
    display: none;
  }
  .container {
    width: 100%;
  }
  .section {
    padding: 25px 0;
  }
  .hero {
    padding: 0;
  }
  .hero h1 {
    font-size: 50px;
  }
  .portrait-stage {
    height: 230px;
  }
  .projects-grid {
    gap: 20px;
  }
  .project {
    break-inside: avoid;
  }
  .image-dialog {
    display: none;
  }
  body {
    font-size: 11pt;
    background: white;
    color: black;
  }
}

.image-original {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 12px;
}

/* Motion follows interaction; the portrait is never hidden behind a loader. */
.reading-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--read, 0));
  transform-origin: left;
  pointer-events: none;
}
@keyframes name-arrive {
  from {
    opacity: 0.65;
    transform: translateY(14px);
    letter-spacing: -0.075em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.055em;
  }
}
@keyframes intro-arrive {
  from {
    opacity: 0.7;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero h1 {
  animation: name-arrive 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-intro {
  animation: intro-arrive 0.65s 0.12s ease-out both;
}
.portrait-stage {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s;
}
.portrait-stage:hover {
  box-shadow: 0 18px 36px -28px rgb(32 38 37 / 0.4);
}
.primary-link span,
.text-link span {
  transition: transform 0.25s ease;
}
.primary-link:hover span {
  transform: translate(3px, 3px);
}
.text-link:hover span {
  transform: translate(3px, -3px);
}
.moments .photo-button img {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.moments .photo-button:hover img {
  transform: scale(1.045);
}
.motion-ready {
  opacity: 0.72;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease var(--enter-delay, 0ms),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--enter-delay, 0ms);
}
.motion-ready.motion-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready {
    opacity: 1;
    transform: none;
  }
  .portrait-stage {
    transform: none;
  }
}
@media print {
  .motion-ready {
    opacity: 1;
    transform: none;
  }
  .reading-progress {
    display: none;
  }
}

/* Complete timelines and certificates stay visible without opening panels. */
.skills-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
  padding: 30px 32px;
  background: var(--soft);
}
.skills-strip h3 {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.skills-strip p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.timeline-intro {
  max-width: 760px;
  margin-bottom: 60px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}
.timeline-list {
  scroll-margin-top: 108px;
}
.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding: 0 0 68px 32px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}
.timeline-entry:last-child {
  padding-bottom: 0;
}
.timeline-entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--soft);
  outline: 1px solid var(--accent);
}
.timeline-heading {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 550;
}
.timeline-body > p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 760px;
}
.timeline-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  margin-top: 28px;
}
.timeline-photos .photo-button {
  width: 100%;
  aspect-ratio: 4/3;
}
.timeline-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.timeline-photos .photo-button:hover img {
  transform: scale(1.04);
}
.timeline-photos figcaption {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.certificate-filters {
  margin: -10px 0 38px;
  gap: 28px;
}
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
}
.certificate-card {
  min-width: 0;
}
.certificate-image,
.certificate-text-mark {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--soft);
  padding: 18px;
}
.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.certificate-image:hover img {
  transform: scale(1.035);
}
.certificate-text-mark {
  display: grid;
  place-items: center;
  font: 32px var(--mono);
  color: var(--muted);
}
.certificate-copy {
  padding: 22px 2px 0;
}
.certificate-copy .record-meta {
  margin-bottom: 12px;
}
.certificate-copy h3 {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 550;
  letter-spacing: -0.015em;
}
.certificate-copy > p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 899px) {
  .timeline-entry {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    padding-left: 24px;
  }
  .timeline-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
  .skills-strip {
    gap: 24px;
    padding: 26px;
  }
}
@media (max-width: 600px) {
  .skills-strip {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 36px;
    padding: 24px;
  }
  .skills-strip h3 {
    margin-bottom: 10px;
  }
  .timeline-intro {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 0 44px 22px;
  }
  .timeline-heading {
    font-size: 18px;
  }
  .timeline-body > p {
    font-size: 15px;
  }
  .timeline-photos {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 22px;
  }
  .timeline-photos figcaption {
    font-size: 11px;
    margin-top: 10px;
  }
  .certificate-filters {
    margin: -4px 0 30px;
    gap: 12px 24px;
  }
  .certificate-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .certificate-image,
  .certificate-text-mark {
    aspect-ratio: 4/3;
    padding: 18px;
  }
  .certificate-copy {
    padding-top: 20px;
  }
  .certificate-copy h3 {
    font-size: 16px;
  }
}
@media print {
  .timeline-entry,
  .certificate-card {
    break-inside: avoid;
  }
  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.archive-intro{max-width:740px;margin:-8px 0 48px;font-size:14px;line-height:1.9;color:var(--muted)}
.project-copy .project-status{font:11px/1.7 var(--mono)!important;color:var(--accent)!important;margin:0 0 12px;letter-spacing:.015em}
.project-copy .project-note{font-size:12px!important;line-height:1.8!important;margin-top:12px;border-left:2px solid var(--line);padding-left:12px}
.illustration-label{font:10px/1.7 var(--mono);color:var(--muted);padding:9px 12px;margin:0;background:var(--paper)}
.project-visual:has(.illustration-label) img{object-fit:contain}.project-links{flex-wrap:wrap}.project h3{line-height:1.3}
@media(max-width:650px){.archive-intro{margin-bottom:30px}.filters{gap:10px 20px;flex-wrap:wrap}}
