/* ==========================================================
   tingyu · portfolio — 手写样式，无框架
   版式参考 btay.ca（布局 / 配色 / 字号），插画与文案均为原创
   ========================================================== */

/* ---------- 字体（自托管，OFL；中文回落到系统字体） ---------- */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-opsz-wght.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Averia Serif Libre"; src: url("fonts/averia-serif-libre-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Averia Serif Libre"; src: url("fonts/averia-serif-libre-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Averia Serif Libre"; src: url("fonts/averia-serif-libre-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Averia Serif Libre"; src: url("fonts/averia-serif-libre-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Homemade Apple"; src: url("fonts/homemade-apple-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF; }

/* ---------- 设计变量 ---------- */
:root {
  --bg: #F7F4ED;
  --ink: #0F0F0F;
  --muted: #42423A;
  --grey: #949389;
  --cream: #F7F4ED;
  --paper: #FCFCFC;
  --blue: #2978F3;
  --sky: #69AFEB;
  --green: #0E9C6C;
  --red: #FF5324;
  --yellow: #F0CD3E;
  --navy: #2F4C9C;
  --peach: #FCD3AC;

  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC";
  --sans: "Inter", var(--cjk), system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Averia Serif Libre", var(--cjk), Georgia, serif;
  --hand: "Homemade Apple", var(--cjk), cursive;

  --wrap: min(1128px, calc(100% - 40px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, blockquote, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }
body.menu-open { overflow: hidden; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 20px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--cream); border-radius: 10px; }
.skip-link:focus { top: 20px; }

/* 衬线斜体点缀：中文没有斜体字形，禁止浏览器伪造倾斜 */
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-synthesis: none;
}
/* 中文短语不在中间断行 */
.nb { display: inline-block; }
/* 待填写的占位内容 */
.todo {
  display: inline-block;
  margin-top: .4em;
  padding: 2px 8px;
  border: 1.5px dashed currentColor;
  border-radius: 6px;
  font-size: .85em;
  opacity: .7;
}

/* ---------- 下划线涂鸦 ---------- */
.u-wave, .u-scribble { position: relative; display: inline-block; white-space: nowrap; }
.u-wave__line, .u-scribble > svg {
  position: absolute;
  left: -2%;
  width: 104%;
  overflow: visible;
  pointer-events: none;
}
.u-wave__line { bottom: -.14em; height: .2em; }
.u-scribble > svg { bottom: -.18em; height: .3em; }
.u-wave__line path, .u-scribble > svg path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.u-wave__line path { stroke: var(--green); stroke-width: 5; }
.u-scribble > svg path { stroke: var(--red); stroke-width: 4; }
.js [data-reveal] .u-wave__line path,
.js [data-reveal] .u-scribble > svg path,
.js .services__card .u-scribble > svg path { stroke-dashoffset: 1; transition: stroke-dashoffset 1s .4s var(--ease); }
.js .is-in .u-wave__line path,
.js .is-in .u-scribble > svg path,
.js .services__card.is-in .u-scribble > svg path { stroke-dashoffset: 0; }

/* ---------- 进场动画 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-slide] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-slide="left"] { transform: translateX(-20px); }
.js [data-slide="right"] { transform: translateX(20px); }
.js [data-slide].is-in { opacity: 1; transform: none; }

/* ==========================================================
   顶栏 & 菜单
   ========================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 28.6px;
  letter-spacing: -.44px;
  transition: color .3s;
}
.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  transition: transform .3s var(--ease), background .3s;
}
.menu-btn:hover { transform: scale(1.06); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-btn__bars { position: relative; background: transparent; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -3px; }
.menu-btn__bars::after { top: 3px; }
.menu-btn[aria-expanded="true"] { background: var(--cream); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 0; transform: rotate(-45deg); background: var(--ink); }
.menu-open .logo { color: var(--cream); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 20px 32px;
  background: var(--blue);
  color: var(--cream);
  clip-path: inset(0 0 100% 0 round 0 0 40px 40px);
  transition: clip-path .7s var(--ease);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0 round 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu__links a {
  font-weight: 700;
  font-size: clamp(56px, 10vw, 120px);
  line-height: .95;
  letter-spacing: -.04em;
  transform: translateY(30px);
  opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease), color .2s;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .12s; }
.menu__links a:hover { font-family: var(--serif); font-style: italic; color: var(--yellow); }
.menu__foot { display: flex; justify-content: space-between; font-weight: 500; font-size: 16px; }
.menu__foot span { opacity: .7; }
.menu__foot a:hover { color: var(--yellow); }

/* ==========================================================
   首屏
   ========================================================== */
/* 首屏固定一屏的滚动距离：期间物件向四周散开，下方 intro 盖上来 */
.hero { position: relative; height: 200vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero__illo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(160vw, 1100px);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) scale(calc(1 + var(--hero-p, 0) * .12));
  transform-origin: 50% 40%;
}
.wiggle { animation: wiggle 6s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.float { animation: float 5s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.type-l { animation: tap .5s ease-in-out infinite alternate; }
.type-r { animation: tap .5s .25s ease-in-out infinite alternate; }
.code path { animation: code 3s ease-in-out infinite; }
.code path:nth-child(2n) { animation-delay: .4s; }
.code path:nth-child(3n) { animation-delay: .8s; }
.sc {
  transform-box: fill-box;
  transform-origin: center;
  transform:
    translate(calc(var(--hero-p, 0) * var(--sx) * 1px), calc(var(--hero-p, 0) * var(--sy) * 1px))
    rotate(calc(var(--hero-p, 0) * var(--sr) * 1deg));
}
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(12deg); } }
@keyframes tap { to { transform: translateY(-8px); } }
@keyframes code { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ==========================================================
   自我介绍
   ========================================================== */
.intro {
  position: relative;
  z-index: 1;
  min-height: max(800px, 100vh);
  margin-top: -55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 20px;
  background: var(--bg);
  text-align: center;
}
.intro__icon { width: 64px; height: 64px; animation: wiggle 4s ease-in-out infinite; }
.intro__hello {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 36px;
  line-height: 32.4px;
  letter-spacing: -1.44px;
}
.intro__title {
  max-width: 920px;
  font-weight: 700;
  font-size: 72px;
  line-height: 1.02;           /* 原站 0.9；中文字形更高，略放松 */
  letter-spacing: -.04em;
  text-wrap: balance;
}
.intro__title .serif { letter-spacing: -.03em; }

/* ==========================================================
   精选项目
   ========================================================== */
.works { width: var(--wrap); margin: 0 auto; padding: 60px 0 120px; }
.sec-title {
  margin-bottom: 64px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-synthesis: none;
}
.sec-title--light { color: var(--cream); }
.works__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; }
.work {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--paper);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -1.2px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.work span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work i {
  flex: none;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.work:hover { background: var(--ink); color: var(--cream); }
.work:hover i { transform: translateX(4px) rotate(45deg); }

.work-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 320px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 15, 15, .18);
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(-4deg) scale(.9);
  transition: opacity .25s, transform .25s var(--ease);
}
.work-preview.is-on { opacity: 1; transform: translate(var(--x, 0), var(--y, 0)) rotate(-4deg) scale(1); }

/* ==========================================================
   引言 + 跑马灯
   ========================================================== */
.peek { padding: 80px 0 120px; display: flex; flex-direction: column; align-items: center; gap: 48px; overflow: hidden; }
.peek__quote {
  width: min(662px, calc(100% - 40px));
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-synthesis: none;
  text-wrap: balance;
}
.peek__quote p + p { margin-top: .7em; }
.peek__quote footer {
  margin-top: 28px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--muted);
}
.peek__illo { width: 235px; height: auto; }
.pulse { animation: pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.marquee { width: 100%; overflow: hidden; }
.marquee__track {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
.shot {
  flex: none;
  width: var(--w, 480px);
  height: var(--h, 360px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot--ph {
  display: grid;
  place-items: center;
  background: var(--c);
  color: var(--cream);
  font-weight: 600;
  font-size: 18px;
}
.shot--ph span { padding: 8px 14px; border: 2px dashed currentColor; border-radius: 10px; opacity: .85; }

/* ==========================================================
   能力（蓝卡）
   ========================================================== */
.services { padding: 0 0 120px; }
.services__card {
  width: var(--wrap);
  margin: 0 auto;
  padding: 80px 40px 64px;
  border-radius: 40px;
  background: var(--blue);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(var(--grow, .91));
  transform-origin: 50% 0;
  will-change: transform;
}
.services__list { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.services__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 70px;
  line-height: 1.05;
  letter-spacing: -2.8px;
  text-transform: uppercase;
  text-align: center;
}
.svc-icon { flex: none; width: 52px; height: 52px; transition: transform .5s var(--ease); }
.services__list li:hover .svc-icon { transform: rotate(-20deg) scale(1.15); }
.services__badge { width: 56px; height: 56px; margin-top: 64px; }
.spin { animation: spin 10s linear infinite; transform-box: fill-box; transform-origin: center; }
.spin-slow { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   评价
   ========================================================== */
.kind { position: relative; padding-bottom: 120px; }
.kind__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.kind__illo, .kind__title { grid-area: 1 / 1; }
.kind__illo { width: min(640px, 86vw); height: auto; opacity: .95; }
.kind__title {
  position: relative;
  text-align: center;
  font-weight: 700;
  font-size: 72px;
  line-height: 72px;
  letter-spacing: -.04em;
  color: var(--ink);
}
.kind__title .serif { font-weight: 400; }
.kind__list {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: -40vh auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 140px 40px;
}
.kind__list li:nth-child(odd) { justify-self: start; }
.kind__list li:nth-child(even) { justify-self: end; margin-top: 220px; }
.quote-card {
  width: 100%;
  max-width: 430px;
  padding: 16px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--muted);
  box-shadow: 0 1px 0 rgba(15, 15, 15, .04);
}
.quote-card--blue { background: var(--blue); color: var(--cream); }
.quote-card--green { background: var(--green); color: var(--cream); }
.quote-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.quote-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.5px;
  color: var(--ink);
  font-synthesis: none;
}
.quote-card--blue h3, .quote-card--green h3 { color: var(--cream); }
.quote-card p { font-size: 16px; line-height: 20.8px; }
.avatar {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
}

/* ==========================================================
   关于（叠卡）
   ========================================================== */
.about { display: flex; flex-direction: column; align-items: center; gap: 80px; padding: 30px 20px 120px; }
.about__head { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.about__icon { width: 90px; height: 90px; animation: wiggle 5s ease-in-out infinite; }
.about__title {
  max-width: 790px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -3px;
  font-synthesis: none;
}
.about__title b { font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -.04em; }
.about__title .serif { font-weight: 400; }

.stack { width: min(1128px, 100%); display: flex; flex-direction: column; gap: 80px; }
.stack__card {
  position: sticky;
  top: 100px;
  min-height: 516px;
  display: flex;
  padding: 40px;
  border-radius: 40px;
  overflow: hidden;
  transform: scale(var(--shrink, 1));
  transform-origin: 50% 0;
}
.stack__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack__panel {
  position: relative;
  width: 562px;
  max-width: 100%;
  align-self: center;
  padding: 40px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--muted);
}
.stack__panel--sm { width: 454px; }
.stack__panel--right { width: 494px; margin-left: auto; }
.stack__panel--wide { width: 680px; }
.exp { list-style: none; }
.exp li + li { margin-top: 20px; padding-top: 20px; border-top: 1.5px dashed rgba(15, 15, 15, .15); }
.exp__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.exp__head span { font-size: 15px; white-space: nowrap; }
.stack__panel .exp p + p { margin-top: 8px; }
.stack__panel .exp p:not(.exp__head) { font-size: 16px; line-height: 1.55; }
.stack__icon { width: 48px; height: 48px; margin-bottom: 16px; }
.stack__panel h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 36px;
  line-height: 52px;
  letter-spacing: -1.2px;
  color: var(--ink);
}
.stack__panel p { font-size: 18px; line-height: 25.2px; letter-spacing: .2px; }
.stack__panel p + p { margin-top: 12px; }
.stack__panel b { color: var(--ink); font-weight: 600; }
.signature {
  margin-top: 20px !important;
  font-family: var(--hand);
  font-size: 47px !important;
  line-height: 1.3 !important;
  color: var(--green);
  transform: rotate(-4deg);
  transform-origin: left center;
}

/* 工卡：挂在 About 卡右侧，绕挂绳顶端轻轻摆动 */
.badge {
  position: absolute;
  top: 0;
  right: 12%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: badge-swing 5s ease-in-out infinite;
}
.badge__strap { width: 26px; height: 92px; background: repeating-linear-gradient(180deg, var(--red) 0 18px, #E84A1F 18px 20px); }
.badge__clip { width: 40px; height: 24px; margin-top: -2px; border: 6px solid #B9B7B0; border-top-width: 10px; border-radius: 6px 6px 12px 12px; background: #DAD8D1; }
.badge__card {
  position: relative;
  width: 236px;
  margin-top: -6px;
  padding: 30px 18px 18px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(15, 15, 15, .18);
  text-align: center;
}
.badge__slot { position: absolute; top: 12px; left: 50%; width: 56px; height: 10px; margin-left: -28px; border-radius: 5px; background: var(--bg); box-shadow: inset 0 1px 3px rgba(15, 15, 15, .2); }
.badge__photo { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1040; border-radius: 12px; background: #F4EFE6; }
.badge figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.badge__name { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--ink); }
.badge__role { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.badge__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed #D9D6CE; font-size: 12px; font-weight: 600; color: var(--grey); }
.badge__foot i { font-style: normal; letter-spacing: .08em; }
.badge__foot svg { width: 60px; height: 16px; }
@keyframes badge-swing { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }


/* ==========================================================
   FAQ（绿卡）
   ========================================================== */
.faq { padding: 0 0 120px; }
.faq__card {
  width: var(--wrap);
  margin: 0 auto;
  padding: 64px 40px 48px;
  border-radius: 40px;
  background: var(--green);
  color: #FBFBFB;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq__title { text-align: center; font-weight: 700; font-size: 36px; line-height: 1.2; letter-spacing: -1.2px; margin-bottom: 56px; }
.faq__title span { font-weight: 600; }
.faq__title .serif { font-weight: 300; }
.faq__grid { width: 100%; max-width: 1032px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 72px; align-items: start; }
.faq__item { border-bottom: 1.5px solid var(--cream); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  color: var(--cream);
}
.faq__q i { position: relative; flex: none; width: 16px; height: 16px; transition: transform .4s var(--ease); }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.faq__q i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq__q[aria-expanded="true"] i { transform: rotate(180deg); }
.faq__q[aria-expanded="true"] i::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 32px 24px 0; font-size: 16px; line-height: 1.6; opacity: .9; }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__flower { width: 56px; height: 56px; margin-top: 56px; }

/* ==========================================================
   联系（信封）
   ========================================================== */
.footer { padding-top: 40px; overflow: hidden; }
.envelope { --pad: 400px; position: relative; width: min(674px, calc(100% - 40px)); margin: 0 auto; padding-top: var(--pad); }
/* 花束以信封上沿为基准：SVG 约 66% 高度处对齐信封口，下面的花茎藏进信封 */
.envelope__flowers {
  position: absolute;
  left: 50%;
  top: var(--pad);
  z-index: 0;
  width: 130%;
  max-width: none;
  height: auto;
  transform: translate(-50%, calc(-66% + (1 - var(--env, 1)) * 60%));
}
.bloom { animation: sway 4s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: 50% 100%; }
.bee { animation: buzz 3.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes buzz { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(18px, -14px); } 66% { transform: translate(-10px, 8px); } }

.envelope__body {
  position: relative;
  z-index: 1;
  border: 16px solid var(--yellow);
  border-radius: 28px;
  background: var(--paper);
  overflow: hidden;
}
.envelope__letter { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 56px 32px 240px; text-align: center; }
.envelope__front { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: 220px; pointer-events: none; }
.envelope__title {
  font-weight: 700;
  font-size: 66px;
  line-height: 72.6px;
  letter-spacing: -1.98px;
}
.envelope__title .serif { font-weight: 300; }

/* 悬停时文字向上滚出，下方的同名文字滚入 */
.roll-link { position: relative; z-index: 2; display: inline-block; overflow: hidden; color: var(--sky); font-weight: 500; font-size: 22px; line-height: 1.3; }
.roll-link span { position: relative; display: inline-block; transition: transform .45s var(--ease); }
.roll-link span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--blue); }
.roll-link:hover span, .roll-link:focus-visible span { transform: translateY(-100%); }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 20px 28px;
  font-size: 14px;
}
.footer__bar p { font-weight: 700; font-size: 15px; }
.footer__bar b { color: var(--green); }
.footer__bar nav { display: flex; gap: 24px; font-weight: 500; }
.footer__bar a { transition: color .2s; }
.footer__bar a:hover { color: var(--blue); }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1100px) {
  .intro__title, .about__title, .kind__title { font-size: 60px; line-height: 1.05; }
  .services__list li { font-size: 56px; }
  .envelope__title { font-size: 54px; line-height: 1.1; }
}
@media (max-width: 809px) {
  .hero { height: 170vh; }
  .hero__sticky { height: 90vh; }
  .hero__illo { width: 220vw; }
  .intro { min-height: 80vh; margin-top: -45vh; padding: 80px 20px; }
  .intro__title { font-size: 44px; }
  .intro__hello { font-size: 30px; }
  .works { padding-bottom: 80px; }
  .works__list { grid-template-columns: 1fr; gap: 16px; }
  .work { font-size: 20px; }
  .work-preview { display: none; }
  .peek__quote { font-size: 24px; }
  .shot { width: calc(var(--w, 480px) * .6); height: calc(var(--h, 360px) * .6); }
  .services__card { padding: 56px 20px 40px; border-radius: 28px; }
  .services__list li { font-size: 34px; letter-spacing: -1.2px; gap: 10px; }
  .svc-icon { width: 30px; height: 30px; }
  .kind__title { font-size: 52px; line-height: 1; }
  .kind__list { grid-template-columns: 1fr; gap: 24px; margin-top: -30vh; }
  .kind__list li:nth-child(even) { margin-top: 0; justify-self: end; }
  .about__title { font-size: 44px; letter-spacing: -1.5px; }
  .stack__card { top: 80px; min-height: 0; padding: 140px 16px 16px; border-radius: 28px; }
  .stack__card:has(.badge) { flex-direction: column; align-items: center; padding-top: 0; }
  .badge { position: relative; right: auto; margin-bottom: 20px; }
  .badge__strap { height: 56px; }
  .badge__card { width: 200px; }
  .stack__panel, .stack__panel--sm, .stack__panel--right, .stack__panel--wide { width: 100%; padding: 28px 24px; }
  .stack__panel h3 { font-size: 30px; line-height: 1.3; }
  .stack__panel p { font-size: 16px; line-height: 1.5; }
  .faq__card { padding: 48px 20px 40px; border-radius: 28px; }
  .faq__title { font-size: 28px; }
  .faq__grid { grid-template-columns: 1fr; gap: 0; }
  .envelope { --pad: 260px; }
  .envelope__title { font-size: 40px; line-height: 1.1; letter-spacing: -1px; }
  .envelope__letter { padding: 40px 20px 170px; }
  .envelope__front { height: 150px; }
  .roll-link { font-size: 18px; }
  .footer__bar { flex-direction: column; text-align: center; }
}

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-slide] { opacity: 1; transform: none; }
  .services__card, .sc { transform: none; }
  .envelope__flowers { transform: translate(-50%, -66%); }
  .js [data-reveal] .u-wave__line path, .js [data-reveal] .u-scribble > svg path,
  .js .services__card .u-scribble > svg path { stroke-dashoffset: 0; }
}
