/* ============================================================
   Yanlai Wu · Personal Archive
   Design: neo-brutalist × Life-is-Strange scrapbook
   ============================================================ */

:root {
  --paper: #efe7d6;
  --paper-2: #e7ddc7;
  --paper-3: #ded2b7;
  --cream: #fbf5e6;
  --ink: #1a1614;
  --ink-2: #3a312a;
  --muted: #6e6356;
  --teal: #3f8d87;
  --teal-2: #55a8a1;
  --orange: #e47b3a;
  --red: #cf4236;
  --yellow: #f3cf3f;
  --yellow-2: #f5d648;
  --purple: #8878a8;
  --line: #1a1614;

  --border: 2.5px solid var(--ink);
  --border-thin: 1.8px solid var(--ink);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --shadow-hard-lg: 9px 9px 0 var(--ink);

  --display: "Archivo Black", Impact, Haettenschweiler, "Arial Black", sans-serif;
  --sans: "Space Grotesk", system-ui, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Kalam", cursive;
  --hand-2: "Kalam", "Caveat", cursive;
  --mono: "JetBrains Mono", ui-monospace, Menlo, "Courier New", monospace;

  --cjk-display: "ZCOOL QingKe HuangYou", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --cjk-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --cjk-hand: "Ma Shan Zheng", "STXingkai", "Kaiti SC", "KaiTi", cursive;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---------------- reset-ish ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(247, 212, 140, 0.35), transparent 70%),
    radial-gradient(900px 500px at -10% 60%, rgba(63, 141, 135, 0.10), transparent 75%),
    radial-gradient(900px 700px at 120% 110%, rgba(136, 120, 168, 0.10), transparent 80%);
}

/* defs svg only holds symbols */
svg.defs-only { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--yellow); color: var(--ink); }

/* ---------------- film-grain overlay ---------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0 0.05 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: grain-shift 8s steps(6) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3px, 2px); }
  40%  { transform: translate(4px,-1px); }
  60%  { transform: translate(-2px,-3px); }
  80%  { transform: translate(3px, 3px); }
  100% { transform: translate(0,0); }
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(26, 22, 20, 0.18) 100%),
    radial-gradient(80% 60% at 50% 0%, rgba(255, 231, 188, 0.24), transparent 60%);
}

/* ---------------- custom cursor ---------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  transform: translate3d(-100px,-100px,0);
  mix-blend-mode: difference;
}
.cursor__core {
  position: absolute;
  left: -3px; top: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}
.cursor__ring {
  position: absolute;
  left: -14px; top: -14px;
  width: 28px; height: 28px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  transition: transform .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.cursor__label {
  position: absolute;
  left: 18px; top: 6px;
  font: 500 11px/1 var(--mono);
  color: #fff;
  letter-spacing: 0.02em;
  padding: 4px 6px;
  background: #1a1614;
  mix-blend-mode: normal;
  border: 1.5px solid #fff;
  transform: translateY(2px);
  opacity: 0;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring { transform: scale(1.7); }
.cursor.is-hover .cursor__label { opacity: 1; transform: translateY(0); }
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------------- rewind wipe on load ---------------- */
.rewind-wipe {
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform .85s var(--ease);
}
.rewind-wipe__bar {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 6px,
      rgba(255,255,255,0.04) 6px 7px
    );
  opacity: .8;
  animation: vhs-scan 1.2s linear infinite;
}
@keyframes vhs-scan {
  0%   { background-position: 0 0; }
  100% { background-position: 0 60px; }
}
.rewind-wipe__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 2px solid var(--cream);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255,255,255,.03);
  position: relative;
  z-index: 2;
}
.rewind-wipe__label .rew-ico { width: 16px; height: 16px; }
.rewind-wipe.is-gone {
  transform: translateY(-102%);
}

/* ---------------- butterfly ---------------- */
.butterfly {
  position: fixed;
  width: 44px;
  height: 36px;
  top: 20%;
  left: -80px;
  z-index: 9996;
  pointer-events: none;
  color: var(--teal);
  filter: drop-shadow(0 4px 0 rgba(26, 22, 20, 0.15));
  opacity: 0;
  transform: translate3d(0,0,0) rotate(-8deg);
  transition: opacity .4s var(--ease);
}
.butterfly.is-flying {
  animation: bfly-path 18s linear infinite, bfly-bob 0.6s ease-in-out infinite alternate;
  opacity: 1;
}
.butterfly .bfly-wing {
  transform-origin: 40px 32px;
  animation: bfly-flap .18s ease-in-out infinite alternate;
}
.butterfly .bfly-wing--l { transform-origin: 40px 32px; }
.butterfly .bfly-wing--r { transform-origin: 40px 32px; }
.butterfly .bfly-wing--l2 { transform-origin: 40px 38px; animation-duration: .22s; }
.butterfly .bfly-wing--r2 { transform-origin: 40px 38px; animation-duration: .22s; }
@keyframes bfly-flap {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0.62); }
}
@keyframes bfly-bob {
  0%   { transform: translate(0, -6px) rotate(-6deg); }
  100% { transform: translate(0,  4px) rotate(8deg); }
}
@keyframes bfly-path {
  0%   { left: -80px; top: 22%; }
  25%  { left: 30vw;  top: 10%; }
  50%  { left: 60vw;  top: 35%; }
  75%  { left: 85vw;  top: 18%; }
  100% { left: 110vw; top: 30%; }
}

/* ---------------- navigation ---------------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(calc(var(--container) + 80px), calc(100% - 24px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 12px;
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: 2px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: var(--border);
  background: var(--red);
  color: var(--cream);
  font: 700 13px/1 var(--display);
  letter-spacing: 0.01em;
  transform: rotate(-3deg);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.nav__brand:hover .nav__brand-mark {
  transform: rotate(3deg);
  background: var(--ink);
}
.nav__brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__brand-name {
  font: 800 15px/1 var(--sans);
  letter-spacing: -0.01em;
}
.nav__brand-sub {
  font: 500 10px/1 var(--mono);
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.nav__links li a {
  display: inline-flex;
  padding: 7px 12px;
  font: 600 13px/1 var(--mono);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.nav__links li a:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--cream);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.04em;
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  text-transform: uppercase;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav__cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.nav__cta .icon { width: 12px; height: 12px; }

/* language toggle */
.nav__tail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: var(--border);
  background: var(--cream);
  color: var(--ink);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-hard-sm);
  border-radius: 2px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  cursor: pointer;
}
.lang-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.lang-toggle__opt {
  display: inline-block;
  padding: 2px 4px;
  transition: background .2s var(--ease), color .2s var(--ease);
  border-radius: 2px;
  line-height: 1;
}
.lang-toggle__sep { color: rgba(26, 22, 20, 0.35); }
.lang-toggle__opt--zh { font-size: 13px; }

html[lang="en"] .lang-toggle__opt--en,
html:not([lang="zh-CN"]) .lang-toggle__opt--en {
  background: var(--ink);
  color: var(--cream);
}
html[lang="zh-CN"] .lang-toggle__opt--zh {
  background: var(--ink);
  color: var(--cream);
}

@media (max-width: 820px) {
  .nav { grid-template-columns: auto 1fr; grid-template-rows: auto auto; padding: 8px 10px; }
  .nav__brand { grid-column: 1; }
  .nav__tail  { grid-column: 2; justify-self: end; gap: 6px; }
  .nav__links {
    grid-column: 1 / -1;
    overflow-x: auto;
    white-space: nowrap;
    padding: 2px 2px 4px;
    margin: 2px -4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links li a { padding: 8px 10px; }
  .nav__brand-sub { display: none; }
  .lang-toggle { padding: 6px 8px; font-size: 11px; }
  .nav__cta { padding: 7px 10px; font-size: 11px; }
}

/* ---------------- shared tags / chips ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font: 700 10.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: 2px;
  background: var(--cream);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tag:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.tag--red    { background: var(--red);    color: var(--cream); }
.tag--teal   { background: var(--teal);   color: var(--cream); }
.tag--yellow { background: var(--yellow); color: var(--ink); }
.tag--paper  { background: var(--paper);  color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font: 600 10.5px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  white-space: nowrap;
}
.chip--dark { background: var(--ink); color: var(--cream); }
.chip--pad {
  padding: 6px 10px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---------------- section scaffolding ---------------- */
.section {
  position: relative;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 10px;
}

.section__head {
  max-width: 880px;
  margin: 0 0 56px;
}
.section__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: var(--border);
  margin-bottom: 16px;
}
.section__title {
  font: 700 clamp(34px, 5.4vw, 62px)/1.02 var(--display);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  text-transform: none;
}
.section__title > span {
  display: inline-block;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.section__underline {
  width: 160px;
  height: 12px;
  color: var(--red);
  display: block;
}

/* word-level "lift" on hover */
[data-hover-lift] {
  display: inline-block;
  transition: transform .3s var(--ease), color .3s var(--ease);
  cursor: default;
}
[data-hover-lift]:hover {
  transform: translateY(-4px) rotate(-1.2deg);
  color: var(--red);
}

.outline-word {
  -webkit-text-stroke: 1.4px var(--ink);
  color: transparent;
  text-shadow: 3px 3px 0 rgba(26, 22, 20, 0.18);
}

.highlight-wash {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.highlight-wash::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 6%;
  height: 42%;
  background: var(--yellow);
  transform: skewX(-6deg) rotate(-0.8deg);
  z-index: -1;
  filter: url(#rough);
}

.hand { font-family: var(--hand); font-size: 1.22em; letter-spacing: 0.01em; line-height: 1.1; }
.hand--2 { font-family: var(--hand-2); font-weight: 700; }

.marker {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  z-index: 0;
}
.marker::before {
  content: "";
  position: absolute;
  inset: 6% -2px 8% -2px;
  background: var(--yellow);
  z-index: -1;
  filter: url(#rough);
  opacity: .9;
}

.pulse-dot {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(207, 66, 54, 0.2);
  animation: pulse 1.6s ease-out infinite;
  vertical-align: middle;
}
.pulse-dot--teal { background: var(--teal); box-shadow: 0 0 0 3px rgba(63, 141, 135, 0.22); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(207, 66, 54, 0.45); }
  80%  { box-shadow: 0 0 0 10px rgba(207, 66, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 66, 54, 0); }
}

/* ---------------- reveal on scroll ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  width: 100%;
  padding-top: 140px;
  padding-bottom: 0;
  overflow: hidden;
}

.hero__grid {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.28fr 0.9fr;
  gap: 54px;
  align-items: end;
  padding-bottom: 60px;
}

.hero__left .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 12vw, 170px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  text-transform: uppercase;
}
.hero__name-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.hero__name-row--offset {
  padding-left: clamp(40px, 8vw, 120px);
  margin-top: 4px;
}
.hero__name-word {
  display: inline-block;
  transition: transform .35s var(--ease), color .35s var(--ease), text-shadow .35s var(--ease);
}
.hero__name-word:hover {
  transform: translateY(-6px) rotate(-1.5deg);
  color: var(--red);
  text-shadow: 6px 6px 0 rgba(26, 22, 20, 0.18);
}
.hero__name-word--outline {
  -webkit-text-stroke: 2.2px var(--ink);
  color: transparent;
  text-shadow: 6px 6px 0 rgba(26, 22, 20, 0.12);
}
.hero__name-cursor {
  display: inline-block;
  color: var(--red);
  transform: translateY(-8%);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero__kicker {
  max-width: 58ch;
  font-size: 18.5px;
  line-height: 1.5;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero__kicker .hand {
  font-size: 1.35em;
  color: var(--ink-2);
  vertical-align: -0.08em;
  margin-right: 2px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-bottom: 30px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  padding: 9px 11px;
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  min-height: 60px;
  justify-content: space-between;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.meta-item:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.meta-item__label {
  font: 700 9.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.meta-item__value {
  font: 600 12.5px/1.25 var(--sans);
  color: var(--ink);
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: var(--border);
  box-shadow: var(--shadow-hard);
  background: var(--cream);
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  border-radius: 2px;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: translateX(-101%);
  transition: transform .35s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover {
  transform: translate(-3px,-3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.btn:hover::before { transform: translateX(0); }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary::before { background: var(--red); }
.btn--primary:hover { color: var(--cream); }
.btn__arrow svg { width: 16px; height: 16px; }

/* ---------------- polaroid ---------------- */
.hero__right {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 30px;
}

.polaroid {
  --tilt: -3.5deg;
  position: relative;
  width: 320px;
  max-width: 100%;
  margin: 0;
  background: var(--cream);
  border: var(--border);
  padding: 14px 14px 0;
  box-shadow: var(--shadow-hard-lg);
  transform: rotate(var(--tilt));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.polaroid:hover {
  --tilt: -0.8deg;
  transform: rotate(var(--tilt)) translateY(-6px);
  box-shadow: 12px 12px 0 var(--ink);
}
.polaroid__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: var(--border-thin);
  background: var(--paper-3);
}
.polaroid__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}
.polaroid__grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(255, 231, 188, 0.08), rgba(63, 141, 135, 0.10)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0 0.05 0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  pointer-events: none;
}
.polaroid__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 16px;
  min-height: 60px;
}
.polaroid__caption-hand {
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.polaroid__caption-ts {
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.polaroid__tape {
  position: absolute;
  width: 86px;
  height: 22px;
  background: rgba(243, 207, 63, 0.75);
  border: 1px solid rgba(26, 22, 20, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
  z-index: 3;
}
.polaroid__tape--tl { top: -10px; left: -14px; transform: rotate(-18deg); }
.polaroid__tape--br { bottom: 24px; right: -20px; transform: rotate(24deg); background: rgba(63, 141, 135, 0.55); }

.hero__note {
  position: absolute;
  top: -28px;
  left: -70px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(-8deg);
}
.hero__note-arrow {
  width: 72px; height: 28px;
  color: var(--red);
  transform: scaleX(-1) rotate(-12deg);
}
.hero__note .hand {
  font-size: 24px;
  color: var(--ink);
}

.hero__sticker {
  position: absolute;
  bottom: -10px;
  right: -40px;
  width: 120px; height: 120px;
  background: var(--red);
  color: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  transform: rotate(12deg);
  transition: transform .45s var(--ease);
  animation: sticker-spin 22s linear infinite;
}
.hero__sticker:hover { transform: rotate(-4deg) scale(1.04); }
.hero__sticker .hero__sticker-star {
  width: 30px; height: 30px; color: var(--cream);
}
.hero__sticker .hand {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
@keyframes sticker-spin {
  0% { transform: rotate(12deg); }
  50% { transform: rotate(-6deg); }
  100% { transform: rotate(12deg); }
}

/* ---------------- ticker ---------------- */
.ticker {
  background: var(--ink);
  color: var(--cream);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 12px 0;
  overflow: hidden;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 40px;
}
.ticker__track {
  display: flex;
  gap: 30px;
  align-items: center;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.ticker__track span { flex: none; }
.ticker__dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------- responsive hero ---------------- */
@media (max-width: 980px) {
  .hero { padding-top: 190px; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__right { justify-content: flex-start; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__name-row--offset { padding-left: 40px; }
  .hero__sticker { right: 8px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 200px; }
  .hero__meta { grid-template-columns: 1fr; }
  .hero__note { left: -10px; top: -36px; }
  .polaroid { width: 280px; }
  .hero__sticker { width: 96px; height: 96px; right: -6px; bottom: -24px; }
  .hero__sticker .hand { font-size: 14px; }
}

/* ---------------- ABOUT ---------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.about__bio p {
  font-size: 18px;
  line-height: 1.62;
  margin: 0 0 18px;
}
.about__bio strong { font-weight: 700; }
.about__bio em { font-style: italic; color: var(--ink-2); }

.about__notecard {
  position: relative;
  background: var(--cream);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  padding: 22px 22px 18px;
  transform: rotate(2deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.about__notecard:hover {
  transform: rotate(-0.5deg) translateY(-4px);
  box-shadow: 10px 10px 0 var(--ink);
}
.notecard__tape {
  position: absolute;
  top: -12px;
  left: 22%;
  width: 120px;
  height: 22px;
  background: rgba(63, 141, 135, 0.55);
  border: 1px solid rgba(26, 22, 20, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
  transform: rotate(-4deg);
}
.notecard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.notecard__heading { font-size: 28px; }
.notecard__date {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.notecard__list { display: grid; gap: 10px; margin-bottom: 18px; }
.notecard__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hand-2);
  font-size: 18px;
  line-height: 1.1;
}
.checkbox {
  width: 18px; height: 18px;
  border: var(--border-thin);
  background: var(--paper);
  display: inline-block;
  flex: none;
  position: relative;
}
.checkbox.checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--red);
  transform: rotate(-4deg);
  clip-path: polygon(15% 55%, 40% 82%, 90% 10%, 100% 25%, 42% 100%, 5% 68%);
}
.notecard__scribble {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  transform: rotate(-3deg);
}
.notecard__scribble svg { width: 80px; height: 30px; transform: scaleX(-1); }
.notecard__scribble .hand { font-size: 22px; color: var(--ink); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------- FOCUS / CURRENTLY ---------------- */
.section--focus { padding-top: 60px; }
.focus {
  border: var(--border);
  background: var(--cream);
  padding: 34px 30px 36px;
  box-shadow: var(--shadow-hard-lg);
  position: relative;
}
.focus::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border: 2px dashed var(--ink);
  pointer-events: none;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.focus:hover::before { opacity: .5; transform: scale(1); }

.focus__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.focus__label .hand { font-size: 22px; color: var(--ink); }

.focus__headline {
  font: 400 clamp(26px, 3.2vw, 44px)/1.1 var(--display);
  letter-spacing: -0.015em;
  margin: 0 0 30px;
  max-width: 22ch;
}
.focus__headline > span {
  display: inline-block;
  transition: transform .3s var(--ease), color .3s var(--ease);
}

.focus__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.focus__card {
  border: var(--border-thin);
  background: var(--paper);
  padding: 18px 18px 16px;
  position: relative;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.focus__card:hover {
  transform: translate(-3px,-3px);
  box-shadow: var(--shadow-hard-sm);
  background: var(--cream);
}
.focus__card-num {
  font: 700 12px/1 var(--mono);
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: inline-block;
}
.focus__card h4 {
  font: 700 18px/1.2 var(--sans);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.focus__card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .focus__grid { grid-template-columns: 1fr; }
  .focus { padding: 24px 20px 26px; }
}

/* ---------------- TIMELINE ---------------- */
.timeline {
  position: relative;
  display: grid;
  gap: 30px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0;
  position: relative;
}
.timeline__marker {
  position: relative;
  height: 100%;
}
.timeline__dot {
  position: absolute;
  top: 18px; left: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: var(--border);
  z-index: 2;
}
.timeline__item:nth-child(2) .timeline__dot { background: var(--teal); }
.timeline__item:nth-child(3) .timeline__dot { background: var(--purple); }
.timeline__line {
  position: absolute;
  top: 36px;
  left: 22px;
  bottom: -30px;
  width: 2.5px;
  background: var(--ink);
  z-index: 1;
}
.timeline__card {
  position: relative;
  border: var(--border);
  background: var(--cream);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-hard);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.timeline__card:hover {
  transform: translate(-4px,-4px);
  box-shadow: 10px 10px 0 var(--ink);
}
.timeline__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.timeline__role {
  font: 700 22px/1.2 var(--sans);
  letter-spacing: -0.01em;
  margin: 0;
  grid-column: 1 / -1;
}
.timeline__org {
  font: 700 11.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.timeline__date {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.timeline__bullets {
  display: grid;
  gap: 6px;
  font-size: 15.2px;
  line-height: 1.5;
  padding-left: 16px;
}
.timeline__bullets li {
  position: relative;
}
.timeline__bullets li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -14px;
  width: 8px;
  height: 2.5px;
  background: var(--ink);
}

@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 36px 1fr; }
  .timeline__dot  { left: 6px; }
  .timeline__line { left: 16px; }
  .timeline__card { padding: 18px 18px 16px; }
  .timeline__head { grid-template-columns: 1fr; }
  .timeline__role { font-size: 19px; }
}

/* ---------------- PUBLICATIONS ---------------- */
.pubs {
  display: grid;
  gap: 18px;
}
.pub {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  border: var(--border);
  background: var(--cream);
  padding: 22px 24px 22px 20px;
  box-shadow: var(--shadow-hard);
  color: var(--ink);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
a.pub { cursor: pointer; }
.pub:hover {
  transform: translate(-4px,-4px);
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--paper);
}
.pub__read {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  font: 600 11.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  width: fit-content;
  max-width: max-content;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.pub__read svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  transition: transform .25s var(--ease);
}
.pub:hover .pub__read {
  background: var(--yellow);
  color: var(--ink);
  transform: translateX(2px);
}
.pub:hover .pub__read svg { transform: translate(2px, -2px); }
.pub__index {
  font: 400 34px/0.9 var(--display);
  color: var(--red);
  letter-spacing: -0.02em;
  padding-top: 4px;
  border-right: 2.5px dashed var(--ink);
}
.pub__title {
  font: 700 19px/1.28 var(--sans);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.pub__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.pub__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

.pubs li:nth-child(2n) .pub__index { color: var(--teal); }
.pubs li:nth-child(3n) .pub__index { color: var(--purple); }
.pubs li:nth-child(5n) .pub__index { color: var(--orange); }

@media (max-width: 700px) {
  .pub { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .pub__index { border-right: 0; border-bottom: 2.5px dashed var(--ink); padding-bottom: 10px; }
}

/* ---------------- PROJECTS ---------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream);
  border: var(--border);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-hard);
  color: var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
  min-height: 240px;
}
.project::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: var(--red);
  transform: translateY(6px);
  transition: transform .35s var(--ease);
}
.project:hover {
  transform: translate(-4px,-4px) rotate(-0.4deg);
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--paper);
}
.project:hover::after { transform: translateY(0); }
.project:nth-child(2)::after { background: var(--orange); }
.project:nth-child(3)::after { background: var(--teal); }
.project:nth-child(4)::after { background: var(--purple); }
.project:nth-child(5)::after { background: var(--red); }
.project:nth-child(6)::after { display: none; }

.project__tape {
  position: absolute;
  top: -12px; right: 20px;
  width: 84px; height: 20px;
  background: rgba(243, 207, 63, 0.7);
  border: 1px solid rgba(26, 22, 20, 0.2);
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}
.project__tape--alt {
  background: rgba(136, 120, 168, 0.55);
}

.project__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.project__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--cream);
  font: 700 9.5px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
}
.project__badge--orange { background: var(--orange); color: var(--ink); }
.project__badge--teal   { background: var(--teal); color: var(--cream); }
.project__badge--purple { background: var(--purple); color: var(--cream); }
.project__badge--red    { background: var(--red); color: var(--cream); }

.project__url {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.project__title {
  font: 400 30px/1.05 var(--display);
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}
.project__sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}
.project__open {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  font: 700 9.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(6px, -6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.project__open svg { width: 11px; height: 11px; }
.project:hover .project__open { opacity: 1; transform: translate(0,0); }

.project--feature {
  grid-column: span 2;
  min-height: 260px;
}
.project--feature .project__title { font-size: 44px; }
.project--feature .project__sub { font-size: 16px; max-width: 54ch; }

.project--note {
  background: var(--yellow);
  border-color: var(--ink);
  min-height: 240px;
  justify-content: space-between;
  transform: rotate(1.2deg);
}
.project--note .project__sub { font-size: 14.5px; }
.project__note-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 4px;
}
.project--note .project__hand {
  display: inline-block;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  transform: rotate(-3deg);
  padding-right: 14px;
}
.project--note::after { display: none; }
.project--note:hover { transform: rotate(-0.3deg) translate(-4px,-4px); }

@media (max-width: 980px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project--feature { grid-column: span 2; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project--feature { grid-column: span 1; }
  .project--feature .project__title { font-size: 36px; }
}

/* ---------------- SKILLS ---------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.skill-col {
  border: var(--border);
  background: var(--cream);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.skill-col:hover {
  transform: translate(-3px, -3px) rotate(-0.4deg);
  box-shadow: var(--shadow-hard);
  background: var(--paper);
}
.skill-col:nth-child(2):hover { background: #ebead8; }
.skill-col:nth-child(3):hover { background: #e6ddc7; }

.skill-col__head {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--ink);
}
.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ---------------- EDUCATION + AWARDS ---------------- */
.ed-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
}

.ed-block {
  border: var(--border);
  background: var(--cream);
  box-shadow: var(--shadow-hard);
  padding: 0;
  overflow: hidden;
}
.ed-block__rowan,
.ed-block__cq {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 18px;
  padding: 22px 22px;
  align-items: center;
}
.ed-block__cq {
  background: var(--paper);
  grid-template-columns: 1fr;
  border-top: 2.5px dashed var(--ink);
}
.ed-block__logo {
  border: var(--border-thin);
  background: var(--cream);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.ed-block__logo img { max-width: 100%; max-height: 46px; width: auto; object-fit: contain; }
.ed-block__body h3 {
  font: 700 22px/1.15 var(--sans);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.ed-block__meta {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 4px;
}
.ed-block__date {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.ed-block__note {
  font-size: 14px;
  color: var(--ink);
  margin: 8px 0 0;
}

.awards {
  border: var(--border);
  background: var(--cream);
  box-shadow: var(--shadow-hard);
  padding: 22px;
  position: relative;
}
.awards__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--ink);
}
.awards__head h3 {
  font: 700 18px/1 var(--sans);
  margin: 0;
  letter-spacing: -0.01em;
}
.awards__star {
  width: 28px; height: 28px;
  color: var(--red);
}
.awards__list {
  display: grid;
  gap: 10px;
}
.awards__list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1.5px dashed var(--ink);
  align-items: start;
}
.awards__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.awards__year {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--red);
  padding-top: 4px;
}
.awards__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.awards__name {
  font: 700 14.5px/1.2 var(--sans);
  display: block;
}
.awards__sub {
  font: 500 12.2px/1.4 var(--mono);
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-block__rowan { grid-template-columns: 1fr; }
  .ed-block__logo { max-width: 200px; }
}

/* ---------------- CONTACT ---------------- */
.section--contact {
  padding-bottom: 110px;
}
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: start;
  border: var(--border);
  background: var(--cream);
  padding: 56px 44px 50px;
  box-shadow: var(--shadow-hard-lg);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228,123,58,.2), transparent);
  top: -80px; right: -80px;
}
.contact__title {
  font: 700 clamp(28px, 4.4vw, 54px)/1.08 var(--display);
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}
.contact__title > span {
  display: inline-block;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.contact__sub {
  font-size: 17px;
  line-height: 1.55;
  max-width: 48ch;
  margin: 0 0 22px;
  color: var(--ink-2);
}
.contact__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact__card {
  position: relative;
  border: var(--border);
  background: var(--paper);
  padding: 24px 22px 24px;
  box-shadow: var(--shadow-hard);
  transform: rotate(-2.5deg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.contact__card:hover {
  transform: rotate(-0.5deg) translateY(-3px);
  box-shadow: 10px 10px 0 var(--ink);
}
.contact__card-tape {
  position: absolute;
  top: -14px; left: 50%;
  width: 140px; height: 24px;
  transform: translateX(-50%) rotate(-5deg);
  background: rgba(207, 66, 54, 0.55);
  border: 1px solid rgba(26, 22, 20, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}
.contact__card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--ink);
}
.contact__card-head .hand { font-size: 28px; }
.contact__card-ts {
  font: 700 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.contact__card-list {
  display: grid;
  gap: 12px;
  margin: 0;
}
.contact__card-list > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}
.contact__card-list dt {
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 2px;
}
.contact__card-list dd {
  margin: 0;
  font: 600 13.5px/1.35 var(--sans);
  color: var(--ink);
  word-break: break-word;
}
.contact__card-stamp {
  position: absolute;
  right: -12px; bottom: 18px;
  padding: 8px 14px;
  border: 2.5px solid var(--red);
  color: var(--red);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.18em;
  transform: rotate(-10deg);
  background: var(--cream);
  filter: url(#rough);
}

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; padding: 40px 24px 36px; gap: 28px; }
  .contact__card { transform: rotate(-1deg); }
}

/* ---------------- FOOTER ---------------- */
.footer {
  margin-top: 70px;
  border-top: var(--border);
  background: var(--ink);
  color: var(--cream);
  padding: 30px 0 0;
}
.footer__inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer__mono {
  font: 700 14px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__hand {
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1;
  color: var(--yellow);
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.08em;
  color: rgba(251, 245, 230, 0.7);
}
.footer__sep { color: rgba(251, 245, 230, 0.35); }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2.5px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.footer__top:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-3px);
}
.footer__top svg { width: 12px; height: 12px; }

.footer__ribbon {
  background: var(--yellow);
  color: var(--ink);
  border-top: var(--border);
  padding: 12px 0;
  overflow: hidden;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer__ribbon-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 45s linear infinite reverse;
}
.footer__ribbon-track span { flex: none; }

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__top { justify-self: start; }
}

/* ============================================================
   Chinese language overrides
   ============================================================ */
html[lang="zh-CN"] body {
  font-family: var(--cjk-sans);
  letter-spacing: 0;
}

/* display-class CJK stack for huge headings */
html[lang="zh-CN"] .hero__name,
html[lang="zh-CN"] .section__title,
html[lang="zh-CN"] .focus__headline,
html[lang="zh-CN"] .project__title,
html[lang="zh-CN"] .pub__index,
html[lang="zh-CN"] .contact__title {
  font-family: var(--cjk-display);
  font-weight: 400;
  letter-spacing: 0;
}

/* hero name — shrink a little so three hanzi rows line up */
html[lang="zh-CN"] .hero__name {
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.95;
  letter-spacing: 0.04em;
}
html[lang="zh-CN"] .hero__name-row { gap: 28px; }
html[lang="zh-CN"] .hero__name-row--offset { padding-left: clamp(60px, 9vw, 140px); }
html[lang="zh-CN"] .hero__name-word--outline {
  -webkit-text-stroke: 3px var(--ink);
}
html[lang="zh-CN"] .outline-word {
  -webkit-text-stroke: 2px var(--ink);
}

/* handwritten text → brush font */
html[lang="zh-CN"] .hand,
html[lang="zh-CN"] .polaroid__caption-hand,
html[lang="zh-CN"] .notecard__heading,
html[lang="zh-CN"] .notecard__list li,
html[lang="zh-CN"] .footer__hand,
html[lang="zh-CN"] .project--note .project__hand {
  font-family: var(--cjk-hand);
  letter-spacing: 0.01em;
}

/* notecard list sizing — Chinese brush glyphs look better a bit larger */
html[lang="zh-CN"] .notecard__list li { font-size: 20px; line-height: 1.25; }
html[lang="zh-CN"] .notecard__heading { font-size: 30px; }
html[lang="zh-CN"] .polaroid__caption-hand { font-size: 24px; }
html[lang="zh-CN"] .footer__hand { font-size: 24px; }

/* hero kicker — prose-style font, slightly wider leading */
html[lang="zh-CN"] .hero__kicker {
  line-height: 1.7;
  letter-spacing: 0.01em;
}
html[lang="zh-CN"] .hero__kicker .hand { font-size: 1.3em; }

/* about bio */
html[lang="zh-CN"] .about__bio p {
  line-height: 1.82;
  letter-spacing: 0.01em;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* Chinese on chips — keep mono font (URLs/codes look clean) for ASCII,
   but allow CJK fallback */
html[lang="zh-CN"] .chip { font-family: var(--mono), var(--cjk-sans); }

/* Meta labels stay mono for typographic tension */
html[lang="zh-CN"] .meta-item__label,
html[lang="zh-CN"] .section__tag,
html[lang="zh-CN"] .timeline__org,
html[lang="zh-CN"] .timeline__date,
html[lang="zh-CN"] .awards__year,
html[lang="zh-CN"] .awards__sub,
html[lang="zh-CN"] .contact__card-list dt {
  font-family: var(--mono), var(--cjk-sans);
}

/* timeline bullets */
html[lang="zh-CN"] .timeline__bullets { font-size: 15.5px; line-height: 1.75; }
html[lang="zh-CN"] .pub__title { line-height: 1.35; }
html[lang="zh-CN"] .pub__desc { line-height: 1.7; }
html[lang="zh-CN"] .project__sub { line-height: 1.65; }

/* section titles slightly tighter for CJK */
html[lang="zh-CN"] .section__title { line-height: 1.18; font-size: clamp(30px, 5vw, 56px); }
html[lang="zh-CN"] .focus__headline { line-height: 1.28; font-size: clamp(24px, 3vw, 40px); }
html[lang="zh-CN"] .contact__title { line-height: 1.22; font-size: clamp(26px, 4vw, 50px); }

/* marker/highlight stays intact */
html[lang="zh-CN"] .highlight-wash { padding: 0 6px; }
html[lang="zh-CN"] .marker { padding: 0 6px; }

/* nav links — use sans CJK for Chinese; original lowercase/mono looks too sparse */
html[lang="zh-CN"] .nav__links li a {
  font-family: var(--cjk-sans);
  text-transform: none;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 14px;
}

/* CTA button label */
html[lang="zh-CN"] .btn__label { letter-spacing: 0.06em; }

/* brand copy */
html[lang="zh-CN"] .nav__brand-name { font-family: var(--cjk-sans); letter-spacing: 0.02em; }
html[lang="zh-CN"] .nav__brand-sub  { font-family: var(--mono), var(--cjk-sans); }

/* tag labels */
html[lang="zh-CN"] .tag { letter-spacing: 0.08em; }

/* stamp */
html[lang="zh-CN"] .contact__card-stamp { letter-spacing: 0.14em; font-size: 13px; }

/* footer ribbon + ticker keep mono for ASCII-heavy look; when CJK, relax */
html[lang="zh-CN"] .footer__ribbon,
html[lang="zh-CN"] .ticker {
  font-family: var(--cjk-sans);
  letter-spacing: 0.18em;
  text-transform: none;
  font-weight: 700;
}
