:root {
  color-scheme: light;
  --paper: #f5f2ed;
  --ink: #101112;
  --muted: #74736f;
  --blue: #234baf;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23grain)' opacity='.3' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 280px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: .38;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
::selection { color: #fff; background: var(--blue); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(90%, 1680px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
}
.header-label { color: var(--muted); font-size: 11px; letter-spacing: .2em; }
.experiences {
  display: grid;
  align-content: center;
  flex: 1;
  width: 100%;
  padding: 20px 0 40px;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.35vw, 40px);
}
.experience-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: clamp(490px, 70svh, 820px);
  padding: clamp(26px, 2.8vw, 50px);
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: clamp(23px, 2vw, 34px);
  color: var(--ink);
  background: linear-gradient(138deg, rgba(255, 255, 255, .49), rgba(255, 255, 255, .22) 50%, rgba(232, 229, 223, .29));
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  backdrop-filter: blur(18px) saturate(108%);
  box-shadow: 0 2px 3px rgba(87, 76, 58, .06), 5px 18px 30px -14px rgba(78, 67, 46, .23), 0 0 0 1px rgba(194, 185, 173, .13), inset 0 1px 1px #fff, inset -1px -1px 1px rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 150px 150px;
  opacity: .26;
}
.card-title {
  align-self: start;
  margin: clamp(20px, 2.4svh, 32px) 0 0;
  text-align: center;
  font-size: clamp(20px, 2.7vw, 48px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.card-ai .card-title { font-size: clamp(26px, 3.5vw, 62px); font-weight: 500; line-height: .85; letter-spacing: -.045em; }
.card-art {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: 100%;
  aspect-ratio: 1;
  margin: 8px 0;
  pointer-events: none;
}
.card-art::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 10%;
  bottom: 8%;
  height: 12%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(79, 70, 53, .15);
  filter: blur(17px);
  transform: rotate(-8deg);
}
.card-art img {
  display: block;
  width: 119%;
  height: auto;
  max-width: none;
  transition: transform .4s ease;
}
.card-caption {
  align-self: end;
  margin-top: 12px;
  text-align: center;
  font-size: clamp(9px, .85vw, 14px);
  font-weight: 450;
  line-height: 1.7;
  letter-spacing: .26em;
}
.card-ai .card-caption { letter-spacing: .22em; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 25px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .03em;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-divider { padding: 0 5px; }
.beian { font-size: 9px; }

@media (hover: hover) and (pointer: fine) {
  .experience-card:hover { transform: translateY(-6px); box-shadow: 0 3px 4px rgba(87,76,58,.05), 5px 26px 42px -14px rgba(78,67,46,.25), 0 0 0 1px rgba(194,185,173,.15), inset 0 1px 1px #fff; }
  .experience-card:hover .card-art img { transform: translateY(-4px); }
}
.experience-card:active { transform: translateY(-1px); }

@media (max-width: 1050px) and (min-width: 761px) {
  .site-shell { width: 93%; }
  .experience-grid { gap: 18px; }
  .experience-card { min-height: 480px; padding: 24px; }
  .card-title { font-size: 2.35vw; }
  .card-ai .card-title { font-size: 3.1vw; }
  .card-caption { font-size: 8px; letter-spacing: .2em; }
}

@media (max-width: 760px) {
  .site-shell { width: min(90%, 620px); }
  .header-label { font-size: 9px; letter-spacing: .12em; }
  .experiences { padding: 16px 0 32px; }
  .experience-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 4.4vw, 28px); }
  .experience-card {
    grid-template-columns: 48% 52%;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    height: clamp(171px, 49.5vw, 306px);
    padding: clamp(21px, 5.4vw, 38px);
    border-radius: clamp(20px, 4.8vw, 29px);
  }
  .card-title {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0 0 9px;
    text-align: left;
    font-size: clamp(15.5px, 4.6vw, 30px);
    letter-spacing: -.06em;
  }
  .card-ai .card-title { font-size: clamp(23px, 7.1vw, 43px); margin-bottom: 9px; }
  .card-art { grid-column: 2; grid-row: 1 / 3; grid-template-rows: minmax(0, 1fr); margin: 0; max-height: 100%; }
  .card-art img { width: 113%; }
  .card-art::before { bottom: 7%; filter: blur(10px); }
  .card-caption {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    text-align: left;
    font-size: clamp(7px, 1.9vw, 11px);
    line-height: 1.65;
    letter-spacing: .23em;
  }
  .card-ai .card-caption span { display: block; }
  .site-footer { flex-direction: column; gap: 3px; padding-bottom: max(24px, env(safe-area-inset-bottom)); font-size: 9px; }
  .beian { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
