/* monomode 10th 风格练习：明亮底色、强烈数字、贴纸感图形和轻快滚动 */
:root {
  --cream: #fff4d8;
  --paper: #fffaf0;
  --ink: #202124;
  --red: #ef5d4f;
  --blue: #2377d6;
  --yellow: #ffc933;
  --green: #34a853;
  --line: #202124;
  --soft: rgba(32, 33, 36, 0.08);
  --max: 1180px;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 201, 51, 0.28), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(35, 119, 214, 0.16), transparent 24%),
    var(--cream);
  font-family: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans CJK SC", "思源黑体", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(calc(100% - 28px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 8px 0 rgba(32, 33, 36, 0.12);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-size: 24px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 11px;
  font-weight: 800;
}

.nav-links a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-color: var(--line);
}

.section-pad {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 120px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 130px 16px 80px;
  overflow: hidden;
}

.lanyard-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

.hero-years {
  position: absolute;
  inset: 120px 7vw auto;
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font-size: clamp(18px, 3vw, 42px);
  font-weight: 900;
}

.hero-main {
  position: relative;
  z-index: 2;
  width: min(100%, 1060px);
  text-align: center;
}

.hero-stamp {
  position: absolute;
  left: min(7vw, 86px);
  bottom: 118px;
  z-index: 3;
  display: flex;
  width: 142px;
  height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 8px 8px 0 rgba(32, 33, 36, 0.16);
  transform: rotate(-8deg);
}

.hero-stamp span {
  font-size: 52px;
  font-weight: 950;
  line-height: 0.9;
}

.hero-stamp small {
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: min(7vw, 86px);
  bottom: 92px;
  z-index: 3;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 10px;
  font-weight: 950;
  box-shadow: 7px 7px 0 rgba(32, 33, 36, 0.12);
  transition: transform 200ms ease;
}

.scroll-cue:hover {
  transform: translateY(6px);
}

.kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-size: clamp(18px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 36px;
  font-size: clamp(54px, 12vw, 158px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-illustration {
  position: relative;
  width: min(740px, 96vw);
  height: min(520px, 78vw);
  margin: 0 auto;
  animation: collageIdle 3.2s ease-in-out infinite;
  will-change: transform;
}

.hero-illustration:hover {
  animation: collageHover 1.2s ease-in-out infinite;
}

.hero-collage {
  position: absolute;
  width: auto;
  max-width: none;
  height: auto;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 8px 8px 0 rgba(32, 33, 36, 0.14);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.hero-collage:hover {
  z-index: 10;
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: 14px 14px 0 rgba(32, 33, 36, 0.18);
}

.hero-collage-1 {
  left: 0;
  top: 48px;
  width: 250px;
  height: 182px;
  transform: rotate(-10deg);
}

.hero-collage-2 {
  left: 172px;
  top: -4px;
  width: 336px;
  height: 238px;
  transform: rotate(7deg);
}

.hero-collage-3 {
  left: 356px;
  top: 124px;
  width: 294px;
  height: 202px;
  transform: rotate(-5deg);
}

.hero-collage-4 {
  left: 22px;
  top: 244px;
  width: 282px;
  height: 206px;
  transform: rotate(11deg);
}

.hero-collage-5 {
  left: 424px;
  top: 280px;
  width: 224px;
  height: 168px;
  transform: rotate(-8deg);
}

.hero-title-drop {
  animation: titleDrop 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 8px 8px 0 rgba(32, 33, 36, 0.12);
}

.orb-red {
  top: 22%;
  left: 8%;
  width: 96px;
  height: 96px;
  background: var(--red);
}

.orb-blue {
  right: 11%;
  bottom: 22%;
  width: 132px;
  height: 132px;
  background: var(--blue);
}

.orb-yellow {
  right: 24%;
  top: 16%;
  width: 68px;
  height: 68px;
  background: var(--yellow);
}

.ticker {
  overflow: hidden;
  border-block: 2px solid var(--line);
  background: var(--red);
  color: var(--paper);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.ticker span {
  padding: 18px 36px;
  font-size: clamp(20px, 4vw, 56px);
  font-weight: 950;
  white-space: nowrap;
}

.section-title {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 50px;
}

.section-title p,
.label {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 950;
  line-height: 0.95;
}

.single-line-title {
  white-space: nowrap;
}

.message-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 34px;
  align-items: center;
}

.profile-split {
  align-items: start;
}

.statement-block {
  position: relative;
  margin-top: 28px;
  padding: 34px 24px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.statement-badge {
  position: absolute;
  left: 16px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 3px solid #1f1f1f;
  border-radius: 3px;
  background: #fff8c8;
  color: #111;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 rgba(31, 31, 31, 0.9);
}

.statement-banner {
  display: inline-block;
  margin: 18px auto 18px;
  padding: 10px 18px;
  border: 4px solid #1f1f1f;
  background: #ffd94b;
  box-shadow: 6px 6px 0 rgba(31, 31, 31, 0.9);
  transform: rotate(-0.2deg);
}

.statement-banner-inner {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.statement-copy {
  margin: 0;
  color: #111;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 850;
  line-height: 1.45;
}

.statement-copy-strong {
  margin-bottom: 8px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 950;
}

.recent-updates {
  margin-top: 30px;
  padding: 12px 0 8px;
}

.recent-updates-head {
  margin-bottom: 18px;
}

.recent-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 3px solid #1f1f1f;
  border-radius: 8px;
  background: #c7b6ad;
  color: #111;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 950;
  box-shadow: 6px 6px 0 rgba(31, 31, 31, 0.9);
  transform: rotate(-1deg);
}

.recent-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  position: relative;
  margin-top: 10px;
}

.recent-connector,
.recent-spark {
  position: absolute;
  pointer-events: none;
}

.recent-connector-top {
  left: 31%;
  top: 8px;
}

.recent-connector-bottom {
  right: 15%;
  top: 52%;
}

.connector-arrow {
  display: inline-block;
  color: #1f1f1f;
  font-size: 32px;
  font-weight: 950;
  transform: rotate(-10deg);
}

.recent-spark {
  color: #1f1f1f;
  font-size: 18px;
  font-weight: 950;
}

.spark-1 { left: -2px; top: -10px; transform: rotate(16deg); }
.spark-2 { left: 38%; top: -8px; transform: rotate(-14deg); }
.spark-3 { right: 14px; top: 8px; transform: rotate(8deg); }
.spark-4 { right: -2px; bottom: -10px; transform: rotate(10deg); }

.recent-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 18px 16px;
  border: 3px solid #1f1f1f;
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: 6px 6px 0 rgba(31, 31, 31, 0.9);
  position: relative;
  z-index: 1;
  transform: rotate(var(--tilt, 0deg));
}

.recent-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -10px;
  height: 10px;
  border-radius: 0 0 12px 12px;
  background: currentColor;
}

.recent-card::after {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
}

.recent-card-blue {
  color: #2f66c7;
  --tilt: -2deg;
}

.recent-card-pink {
  color: #e15aa7;
  --tilt: 1.2deg;
}

.recent-card-green {
  color: #2fa86b;
  --tilt: -1deg;
}

.recent-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid #1f1f1f;
  border-radius: 14px;
  background: #ffffff;
  font-size: 22px;
  box-shadow: 3px 3px 0 rgba(31, 31, 31, 0.75);
}

.recent-card-body h4 {
  margin: 0 0 6px;
  color: #111;
  font-size: 18px;
  font-weight: 950;
}

.recent-card-body p {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 800;
}

.recent-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.recent-footer-text {
  color: #111;
  font-size: clamp(40px, 6.5vw, 92px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.05em;
  transform: rotate(-2deg);
}

.recent-footer-tag {
  display: inline-block;
  padding: 8px 14px;
  border: 3px solid #1f1f1f;
  background: #b9ada4;
  color: #111;
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 950;
  box-shadow: 6px 6px 0 rgba(31, 31, 31, 0.9);
  transform: rotate(-1deg);
}
.timeline-section {
  margin-top: 26px;
  padding: 22px 0 0;
}

.timeline-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.timeline-label {
  display: inline-flex;
  padding: 8px 14px;
  border: 3px solid #1f1f1f;
  border-radius: 12px;
  background: #fff0b3;
  box-shadow: 4px 4px 0 rgba(31, 31, 31, 0.85);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.timeline-head h3 {
  margin: 0;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 950;
  line-height: 1;
}

.timeline-shell {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 24px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(32,33,36,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,33,36,0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  max-height: 640px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}

.timeline-path {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    #1f1f1f 0,
    #1f1f1f 10px,
    transparent 10px,
    transparent 18px
  );
  opacity: 0.9;
}

.timeline-path::before,
.timeline-path::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid #1f1f1f;
  border-radius: 50%;
  background: var(--paper);
  transform: translateX(-50%);
}

.timeline-path::before {
  top: 24px;
}

.timeline-path::after {
  bottom: 24px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.timeline-item-left .timeline-card {
  grid-column: 1;
  justify-self: start;
}

.timeline-item-right .timeline-card {
  grid-column: 2;
  justify-self: end;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 4px solid #1f1f1f;
  border-radius: 50%;
  background: var(--paper);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-card {
  position: relative;
  max-width: 440px;
  padding: 18px 20px;
  border: 3px solid #1f1f1f;
  border-radius: 24px 18px 28px 16px;
  background: #fffdfa;
  box-shadow: 8px 8px 0 rgba(31, 31, 31, 0.9);
  transform: rotate(var(--tilt, 0deg));
}

.timeline-card::after {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
}

.timeline-card-blue { color: #2f66c7; --tilt: -1.2deg; }
.timeline-card-pink { color: #e15aa7; --tilt: 1.5deg; }
.timeline-card-yellow { color: #d09f1e; --tilt: -0.8deg; }
.timeline-card-green { color: #2fa86b; --tilt: 1deg; }

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline-meta span {
  font-size: 20px;
  font-weight: 950;
}

.timeline-meta em {
  padding: 4px 8px;
  border-radius: 999px;
  background: currentColor;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.timeline-card h4 {
  margin: 0 0 8px;
  color: #111;
  font-size: 18px;
  font-weight: 950;
}

.timeline-card p {
  margin: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
}

.diary-app {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url("图片/d07020bb0d7b92c5875f28b52be4710.jpg") center center / cover no-repeat;
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.12);
  padding: 16px;
}

#diary.section-pad {
  width: min(calc(100% - 32px), calc(var(--max) + 140px));
}

.diary-sidebar,
.diary-main {
  display: grid;
  gap: 10px;
}

.diary-toolbar,
.diary-actions,
.diary-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.diary-actions {
  justify-content: flex-start;
}

.diary-toolbar-compact {
  justify-content: space-between;
}

.diary-search-wrap {
  flex: 1 1 180px;
}

.diary-search-wrap input,
.diary-form input,
.diary-form textarea,
.diary-form select,
.diary-selects select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: transparent;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
}

.diary-search-wrap input {
  border-radius: 999px;
}

.diary-toolbar {
  justify-content: space-between;
  margin-bottom: 10px;
}

.diary-selects {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.diary-form input,
.diary-form textarea,
.diary-form select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
}

.diary-selects select {
  width: auto;
}

.diary-calendar-title {
  margin: 8px 0 10px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 950;
}

.diary-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  background: transparent;
}

.diary-weekday,
.diary-day {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: transparent;
  min-height: 64px;
  padding: 8px;
}

.diary-weekday {
  min-height: auto;
  text-align: center;
  font-weight: 900;
  background: transparent;
}

.diary-day {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.diary-color-1 { background: linear-gradient(135deg, #ffe5ea, #ffd1dd); }
.diary-color-2 { background: linear-gradient(135deg, #e6f3ff, #cfe7ff); }
.diary-color-3 { background: linear-gradient(135deg, #fff0c8, #ffe39b); }
.diary-color-4 { background: linear-gradient(135deg, #e4f7e8, #c4efcf); }
.diary-color-5 { background: linear-gradient(135deg, #f0e8ff, #ddccff); }
.diary-color-6 { background: linear-gradient(135deg, #e9fbff, #c8f0ff); }
.diary-color-7 { background: linear-gradient(135deg, #fff4d7, #ffe6b0); }

.diary-day.has-entry {
  background-blend-mode: multiply;
}

.diary-day.is-selected {
  outline: 3px solid var(--red);
}

.diary-day .num {
  font-weight: 900;
}

.diary-day .emoji {
  align-self: flex-end;
  font-size: 20px;
}

.diary-day:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(32, 33, 36, 0.12);
}

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

.diary-group {
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 14px;
}

.diary-entry {
  border-top: 1px dashed rgba(32, 33, 36, 0.2);
  padding-top: 10px;
  margin-top: 10px;
}

.diary-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.diary-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.diary-entry-actions button {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.diary-date-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.diary-danger {
  background: #ffd9d2;
}

.portrait,
.message-card,
.about-card,
.service-card,
.project-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.12);
}

.portrait {
  padding: 18px;
}

.profile-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 138px;
  gap: 4px;
  overflow: hidden;
  padding: 4px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.12);
}
.playful-card {
  background: linear-gradient(135deg, #cfdbe8 0%, #b7c9d8 100%);
  border-radius: 60px 60px 60px 40px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 20px 35px rgba(120, 145, 165, 0.18);
  border: 3px solid #000000;
}

.avatar-cat {
  margin-bottom: 20px;
}

.cat-face {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  box-shadow: 0 8px 0 #E6A817;
  border: 4px solid #fff;
}

.profile-intro {
  color: var(--ink);
  font-family: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans CJK SC", "思源黑体", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.85;
  margin: 15px 0;
  white-space: pre-line;
  text-align: left;
}

.bubble-text p {
  background: white;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  margin: 8px;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.bubble-text p:hover {
  transform: scale(1.02);
  transition: 0.2s;
}

.sticker-row {
  margin-top: 10px;
}

.sticker-image {
  display: block;
  width: min(100%, 320px);
  margin: 0 auto;
  animation: stickerFloat 3s ease-in-out infinite;
}

@keyframes stickerFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}
.profile-photo {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 420ms ease, filter 420ms ease;
}

.profile-photo:hover {
  z-index: 2;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.04);
}

.profile-photo-01 {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
}

.profile-photo-02 {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

.profile-photo-03 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.profile-photo-04 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.profile-photo-05 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.profile-photo-06 {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.profile-photo-07 {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

.profile-photo-08 {
  grid-column: 1 / 3;
  grid-row: 4 / 5;
}

.profile-photo-09 {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}

.message-card {
  padding: clamp(28px, 5vw, 58px);
  font-size: clamp(16px, 2vw, 21px);
}

.message-card strong {
  display: block;
  margin-top: 28px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 34px;
  align-items: center;
}

.about-card {
  padding: clamp(30px, 5vw, 64px);
}

.about-card h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 950;
  line-height: 1.06;
}

.badge-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.badge-wall span {
  display: grid;
  min-height: 100px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-size: clamp(20px, 4vw, 44px);
  font-weight: 950;
  transform: rotate(var(--rotate, -3deg));
}

.badge-wall span:nth-child(2n) {
  --rotate: 4deg;
  background: var(--blue);
  color: var(--paper);
}

.badge-wall span:nth-child(3n) {
  --rotate: -1deg;
  background: var(--red);
  color: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.experience {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 244, 216, 0.72), rgba(255, 244, 216, 0.72)),
    url("图片/1fe2a05d6f7e55f73b3aae92e485582.jpg") center center / cover no-repeat;
}

.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 244, 216, 0.12), rgba(255, 244, 216, 0.5));
  pointer-events: none;
}

.experience > * {
  position: relative;
  z-index: 1;
}

.experience-layout {
  display: grid;
  gap: 18px;
}

.experience-summary,
.experience-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.12);
}

.experience-summary {
  padding: 24px;
}

.experience-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.experience-summary-head span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.experience-summary-head h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
}

.experience-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.experience-chips span,
.experience-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 12px;
  font-weight: 900;
}

.experience-spotlight {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, #fff8e8 0%, #fff1cc 100%);
}

.experience-spotlight-main h3 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
}

.experience-spotlight-main p {
  margin: 0;
  max-width: 56ch;
}

.spotlight-index {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--yellow);
  font-weight: 950;
}

.experience-spotlight-side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.experience-pill {
  justify-content: center;
  width: 100%;
}

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

.software-panel,
.link-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: 24px;
  background: rgba(32, 33, 36, 0.28);
  backdrop-filter: blur(8px);
}

.experience-card .round-link {
  border: 2px solid var(--line);
  cursor: pointer;
}

.software-panel.is-open,
.link-panel.is-open {
  display: grid;
  place-items: center;
}

.software-panel-inner,
.link-panel-inner {
  position: relative;
  width: min(100%, 760px);
  padding: 22px 20px 18px;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff8e8 0%, #ffe7f2 100%);
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.12);
}

.software-panel-title,
.link-panel-title {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.software-panel-close,
.link-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 20px;
  cursor: pointer;
}

.software-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.software-icon-item {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px 10px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
}

.software-icon-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 18px;
  color: #111;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.software-icon-ps { background: linear-gradient(135deg, #7ec7ff, #3b8dff); }
.software-icon-ai { background: linear-gradient(135deg, #ffd36c, #ff9f2d); }
.software-icon-figma { background: linear-gradient(135deg, #ffd7e8, #c6f1ff); }
.software-icon-pr { background: linear-gradient(135deg, #caa8ff, #8c65ff); }
.software-icon-ae { background: linear-gradient(135deg, #89dbff, #4f8dff); }

.software-icon-item span:last-child {
  font-size: 12px;
  font-weight: 900;
}

.link-panel-url {
  display: block;
  word-break: break-all;
  font-weight: 900;
}

.link-panel-code {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 950;
}

.experience-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 18px;
  border: 2px solid var(--line);
  background:
    linear-gradient(rgba(255, 244, 216, 0.14), rgba(255, 244, 216, 0.14)),
    url("图片/1fe2a05d6f7e55f73b3aae92e485582.jpg") center center / cover no-repeat;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 244, 216, 0.16);
  pointer-events: none;
}

.experience-card-contact {
  background:
    linear-gradient(rgba(255, 250, 240, 0.18), rgba(255, 250, 240, 0.18)),
    url("图片/d07020bb0d7b92c5875f28b52be4710.jpg") center center / cover no-repeat;
}

.experience-card-resume {
  background:
    linear-gradient(rgba(255, 244, 216, 0.08), rgba(255, 244, 216, 0.08)),
    url("图片/aa4b8883d5463cd83f13bb1c24897b4.jpg") center center / cover no-repeat;
}

.experience-card > * {
  position: relative;
  z-index: 1;
}

.experience-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.experience-card h3 {
  margin: 10px 0 16px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.experience-card p {
  color: rgba(32, 33, 36, 0.76);
}

.experience-card .round-link {
  margin-top: auto;
}

.service-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.project-card:hover,
.work-row:hover,
.photo-tile:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: 14px 14px 0 rgba(32, 33, 36, 0.16);
}

.project-card:hover {
  filter: saturate(1.02);
}

.service-card img {
  aspect-ratio: 1 / 0.82;
  margin-bottom: 22px;
  border: 2px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
}

.service-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.service-card h3 {
  margin: 10px 0 16px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.service-card p {
  color: rgba(32, 33, 36, 0.76);
}

.service-card small {
  margin-top: auto;
  font-weight: 800;
}

.round-link {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-top: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 22px;
  font-weight: 950;
  transition: transform 180ms ease;
}

.round-link:hover {
  transform: translateX(5px);
}

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

.work-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 220px;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(32, 33, 36, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.work-row span {
  color: var(--blue);
  font-size: 28px;
  font-weight: 950;
}

.work-row strong {
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1;
}

.work-row em {
  color: rgba(32, 33, 36, 0.72);
  font-style: normal;
}

.work-row img {
  aspect-ratio: 1.45 / 1;
  border: 2px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
}

.circular-gallery-stack {
  display: grid;
  gap: 18px;
}

.circular-gallery-wrap {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.8), rgba(232, 242, 251, 0.9));
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.12);
  padding: 20px 0;
}

.circular-gallery-wrap-reverse {
  background: linear-gradient(135deg, rgba(255, 241, 247, 0.92), rgba(238, 247, 234, 0.92));
}

.circular-gallery {
  display: flex;
  gap: 0;
  align-items: stretch;
  width: max-content;
  will-change: transform;
  padding: 0;
  cursor: grab;
  touch-action: pan-y;
}

.circular-gallery-reverse {
  transform: translate3d(0, 0, 0);
}

.circular-gallery:active {
  cursor: grabbing;
}

.circular-item {
  position: relative;
  display: block;
  flex: 0 0 clamp(160px, 18vw, 240px);
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 999px 999px 28px 28px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.12);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform: translateY(var(--ty, 0px)) rotate(var(--rot, 0deg));
  margin-right: 18px;
}

.circular-item:nth-child(3n + 1) { --ty: 0px; --rot: -2deg; }
.circular-item:nth-child(3n + 2) { --ty: 18px; --rot: 2deg; }
.circular-item:nth-child(3n + 3) { --ty: 6px; --rot: -1deg; }

.circular-item:hover {
  transform: translateY(calc(var(--ty) - 6px)) rotate(0deg) scale(1.01);
  box-shadow: 14px 14px 0 rgba(32, 33, 36, 0.16);
}

.circular-item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 20px 20px;
}

.circular-item span {
  display: block;
  margin-top: 10px;
  padding: 8px 10px 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
}

.photo-wall {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.photo-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(32, 33, 36, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.photo-tile.wide {
  grid-column: span 2;
}

.photo-tile.tall {
  grid-row: span 2;
  min-height: 520px;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.photo-tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.03);
}

.photo-tile span {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.project-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 6vh;
  padding-bottom: 16vh;
}

.project-stack::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4vh;
  background: linear-gradient(180deg, rgba(255,244,216,1) 0%, rgba(255,244,216,0) 100%);
  pointer-events: none;
  z-index: 0;
}

.scroll-stack {
  position: relative;
  z-index: 1;
}

.project-card {
  position: sticky;
  top: 14vh;
  display: grid;
  grid-template-columns: 120px 1fr 280px;
  gap: 22px;
  align-items: center;
  padding: 20px;
  min-height: 58vh;
  margin-top: -10vh;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  transform-origin: top center;
  will-change: transform, filter;
  backface-visibility: hidden;
  isolation: isolate;
}

#tianjinCard {
  position: relative;
}

.project-card:nth-child(1) { z-index: 1; }
.project-card:nth-child(2) { z-index: 2; }
.project-card:nth-child(3) { z-index: 3; }
.project-card:nth-child(4) { z-index: 4; }


.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.04), rgba(255, 250, 240, 0.26));
  pointer-events: none;
}

.project-card:nth-child(2)::after,
.project-card:nth-child(3)::after,
.project-card:nth-child(4)::after {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.12), rgba(255, 250, 240, 0.52));
}

.project-card:nth-child(1),
.project-card:nth-child(2),
.project-card:nth-child(3) {
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.18);
}

.project-card:nth-child(1) {
  transform: scale(0.84) translateY(34px);
  filter: brightness(0.95);
}

.project-card:nth-child(2) {
  transform: scale(0.9) translateY(22px);
  filter: brightness(0.98);
}

.project-card:nth-child(3) {
  transform: scale(0.96) translateY(10px);
}

.project-card:nth-child(4) {
  transform: scale(1) translateY(0);
  margin-top: 0;
}

.scroll-stack-end-card {
  margin-top: 0;
}

.project-count {
  color: var(--red);
  font-size: 22px;
  font-weight: 950;
}

.project-card h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 4vw, 54px);
  line-height: 1;
}

.project-card h4 {
  margin-bottom: 10px;
  font-size: clamp(20px, 3vw, 32px);
}

.text-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 16px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 950;
  transition: transform 180ms ease;
}

.text-button:hover {
  transform: translateY(-3px);
}

.goods-list,
.project-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.goods-list span,
.project-links a {
  display: block;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 12px;
  font-weight: 900;
}

.project-links a {
  border-radius: 16px;
  transition: background 180ms ease, transform 180ms ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-links a:hover {
  background: var(--yellow);
  transform: translateX(6px);
}

.social-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 950;
}

.social-icon-xhs {
  background: #fe2c55;
  color: #fff;
}

.social-icon-bili {
  background: #ff6aa2;
  color: #fff;
}

.project-card img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 18px;
  transform: scale(1.08);
  transform-origin: center center;
}

.project-card:nth-child(2) img,
.project-card:nth-child(3) img,
.project-card:nth-child(4) img {
  transform: scale(0.82);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(calc(100% - 32px), var(--max));
  align-items: end;
  gap: 12px 24px;
  margin: 0 auto;
  padding: 44px 0 60px;
  border-top: 2px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

.stats-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
}

.stats-widget-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 58px;
  min-height: 58px;
  padding: 0 16px;
  border: 2px solid rgba(31, 31, 31, 0.7);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.55);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(32, 33, 36, 0.12);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.stats-widget-icon {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(31, 31, 31, 0.7);
  flex: 0 0 auto;
}

.stats-widget-short {
  font-size: 13px;
  font-weight: 900;
}

.stats-widget-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 280px;
  padding: 16px;
  border: 2px solid rgba(31, 31, 31, 0.7);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 40px rgba(32, 33, 36, 0.18);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.stats-widget.is-open .stats-widget-panel,
.stats-widget:hover .stats-widget-panel,
.stats-widget:focus-within .stats-widget-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.stats-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  cursor: grab;
}

.stats-widget-head strong {
  font-size: 14px;
  font-weight: 950;
}

.stats-widget-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 33, 36, 0.08);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.stats-mode-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
}

.stats-widget-list {
  display: grid;
  gap: 10px;
}

.stats-widget-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.stats-widget-list b {
  font-size: 14px;
}

.stats-widget-note {
  margin-top: 12px;
  color: rgba(32, 33, 36, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

.guestbook-section {
  width: min(calc(100% - 32px), calc(var(--max) + 140px));
  margin: 0 auto;
}

.guestbook-shell {
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fef8f4 0%, #eef5fb 100%);
  box-shadow: 10px 10px 0 rgba(32, 33, 36, 0.12);
}

.guestbook-hero {
  text-align: center;
  margin-bottom: 22px;
}

.guestbook-hero-head {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.guestbook-hero-tag,
.guestbook-hero-time {
  display: inline-flex;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(32, 33, 36, 0.12);
  font-weight: 900;
}

.guestbook-hero-copy {
  margin: 14px 0 0;
  color: rgba(32, 33, 36, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.guestbook-notes {
  position: relative;
  min-height: 420px;
  border: 2px dashed rgba(32, 33, 36, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 211, 221, 0.38), transparent 18%),
    radial-gradient(circle at 85% 14%, rgba(199, 222, 241, 0.4), transparent 16%),
    radial-gradient(circle at 72% 82%, rgba(255, 241, 173, 0.45), transparent 14%),
    linear-gradient(135deg, rgba(255, 248, 240, 0.92) 0%, rgba(232, 242, 251, 0.92) 100%);
  overflow: hidden;
}

.guestbook-note {
  position: absolute;
  width: 220px;
  padding: 16px 16px 14px;
  border: 2px solid rgba(31, 31, 31, 0.72);
  border-radius: 16px 24px 16px 26px;
  box-shadow: 8px 8px 0 rgba(31, 31, 31, 0.12);
  backdrop-filter: blur(8px);
  cursor: grab;
  user-select: none;
  transform-origin: center;
}

.guestbook-note:active {
  cursor: grabbing;
}

.guestbook-note.pink { background: linear-gradient(145deg, rgba(255, 239, 245, 0.98), rgba(255, 228, 238, 0.95)); color: #b33b74; transform: rotate(-2deg); }
.guestbook-note.blue { background: linear-gradient(145deg, rgba(240, 247, 255, 0.98), rgba(227, 240, 252, 0.95)); color: #2d67b3; transform: rotate(1.5deg); }
.guestbook-note.yellow { background: linear-gradient(145deg, rgba(255, 249, 225, 0.98), rgba(255, 242, 203, 0.95)); color: #9a6f08; transform: rotate(-1deg); }

.guestbook-note-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 950;
}

.guestbook-note-head button {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.guestbook-note-content {
  margin: 0;
  color: #222;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.guestbook-hint {
  margin: 14px 0 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(32, 33, 36, 0.68);
}

.guestbook-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.guestbook-form input,
.guestbook-form textarea,
.guestbook-form select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
}

.guestbook-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.guestbook-form-row select {
  flex: 1 1 180px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-note {
  text-align: right;
}

.footer-note p,
.footer-note span {
  display: block;
  margin: 0;
  color: rgba(32, 33, 36, 0.68);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes titleDrop {
  0% {
    opacity: 0;
    transform: translateY(-70px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes collageIdle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes collageHover {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@keyframes collageIdle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes collageHover {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes titleDrop {
  0% {
    opacity: 0;
    transform: translateY(-90px);
  }

  70% {
    opacity: 1;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .ticker-track,
  .hero-illustration,
  .hero-collage,
  .hero-title-drop,
  .reveal {
    animation: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 24px;
  }

  .software-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-title,
  .message-grid,
  .service-grid,
  .work-row,
  .project-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .message-grid.profile-split {
    grid-template-columns: 1fr;
  }

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

  .diary-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }

  .photo-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .circular-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-tile.wide,
  .photo-tile.tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 320px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-row img,
  .project-card img {
    max-width: 360px;
  }

  .profile-collage {
    grid-auto-rows: 120px;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    top: 12px;
  }

  .hero-illustration {
    width: min(92vw, 420px);
    height: min(300px, 80vw);
  }

  .software-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 190px;
  }

  .hero-years {
    top: 150px;
  }

  .hero-stamp {
    position: relative;
    left: auto;
    bottom: auto;
    width: 108px;
    height: 108px;
    margin: 18px auto 0;
  }

  .hero-stamp span {
    font-size: 40px;
  }

  .scroll-cue {
    display: none;
  }

  .section-pad {
    padding: 86px 0;
  }

  .experience-spotlight,
  .experience-grid,
  .badge-wall,
  .photo-wall,
  .diary-app,
  .diary-calendar,
  .timeline-item,
  .recent-updates-grid,
  .circular-gallery-wrap {
    overflow-x: auto;
    padding-bottom: 16px;
  }

  .circular-gallery {
    width: max-content;
  }

  .experience-spotlight-side {
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-connector,
  .recent-spark {
    display: none;
  }

  .guestbook-section {
    width: min(calc(100% - 32px), var(--max));
  }

  .guestbook-notes {
    min-height: 520px;
  }

  .guestbook-note {
    width: min(84vw, 220px);
  }

  .profile-collage {
    grid-auto-rows: 96px;
  }

  .service-card {
    min-height: auto;
  }

  .diary-toolbar,
  .diary-actions,
  .diary-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .diary-toolbar-compact {
    flex-direction: column;
  }

  .diary-selects {
    width: 100%;
  }

  .diary-selects select {
    width: 100%;
  }

  .diary-day,
  .diary-weekday {
    min-height: 54px;
    padding: 8px;
    font-size: 12px;
  }

  .orb {
    opacity: 0.55;
  }
}
