/*
 * 静态作品集样式表
 * 最常调整的颜色、动效时间和纸张背景都集中在文件开头。
 */

:root {
  --paper: #eee9dd;
  --paper-light: #f6f1e6;
  --ink: #242627;
  --ink-soft: #303233;
  --blue: #233f70;
  --red: #b62e1f;
  --muted: #908b80;
  --font-geist-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: #292b2d;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #292b2d;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

.portfolio-shell {
  min-height: 100svh;
  padding: clamp(12px, 2.15vw, 34px);
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.05), transparent 24%),
    linear-gradient(135deg, #242628, #303234 48%, #252729);
}

.portfolio-canvas {
  position: relative;
  min-height: calc(100svh - clamp(24px, 4.3vw, 68px));
  overflow: hidden;
  isolation: isolate;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 28%, rgba(95,73,39,.055) 0 1px, transparent 1.5px),
    radial-gradient(circle at 83% 67%, rgba(80,62,35,.04) 0 1px, transparent 1.7px),
    linear-gradient(103deg, rgba(255,255,255,.25), transparent 25%, rgba(133,112,77,.03) 58%, transparent);
  background-size: 11px 13px, 17px 19px, 100% 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.26), inset 0 0 100px rgba(80,60,35,.05);
}

.portfolio-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: .26;
  mix-blend-mode: multiply;
  background: repeating-radial-gradient(circle at 10% 20%, transparent 0 2px, rgba(58,49,37,.06) 2.3px 2.8px, transparent 3px 7px);
}

.site-header {
  position: absolute;
  top: clamp(28px, 4.6vh, 58px);
  left: clamp(28px, 3.7vw, 66px);
  right: clamp(28px, 3.7vw, 66px);
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.brand,
.site-header nav {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  letter-spacing: .03em;
}

.brand strong {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(22px, 2.05vw, 36px);
  font-weight: 500;
  line-height: .9;
}

.brand span {
  position: relative;
  padding-bottom: 14px;
  font-size: clamp(8px, .72vw, 12px);
  line-height: 1.35;
  font-weight: 700;
}

.brand span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 62px;
  height: 2px;
  background: var(--ink);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.site-header nav button {
  position: relative;
  padding: 5px 0;
  cursor: pointer;
  background: transparent;
  font-size: clamp(11px, .88vw, 15px);
}

.site-header nav button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -22px;
  width: 10px;
  height: 10px;
  background: transparent;
  transform: translateY(-50%) rotate(45deg);
  transition: background .2s ease;
}

.site-header nav button:hover::before,
.site-header nav button:focus-visible::before,
.site-header nav button.is-current::before {
  background: var(--red);
}

.card-stage {
  position: absolute;
  inset: clamp(115px, 13vh, 150px) 0 clamp(42px, 5vh, 62px);
  z-index: 5;
  pointer-events: none;
}

/* 展开时让卡片舞台高于遮罩，避免 backdrop-filter 把详情卡一起模糊。 */
.has-active-card .card-stage {
  z-index: 55;
}

.portfolio-card {
  --left: 0%;
  --top: 0%;
  --width: 25%;
  --height: 50%;
  --rotate: 0deg;
  --pull-x: 0px;
  --pull-y: -16px;
  --delay: 0s;
  --float-x: 6px;
  --float-y: -7px;
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--width);
  height: var(--height);
  z-index: 3;
  outline: none;
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(var(--rotate));
  transform-origin: center;
  transition: filter .36s ease, opacity .36s ease, transform .45s cubic-bezier(.22,.85,.31,1), left .6s ease, top .6s ease;
}

.portfolio-card:nth-child(2) { z-index: 4; }
.portfolio-card:nth-child(3) { z-index: 9; }
.portfolio-card:nth-child(4) { z-index: 6; }
.portfolio-card:nth-child(5) { z-index: 5; }

/* 默认堆叠顺序：AI 产品卡片位于所有未展开卡片的最上层。 */
.portfolio-card.card-ai { z-index: 12; }

.card-drift {
  width: 100%;
  height: 100%;
  animation: card-drift 7.5s ease-in-out var(--delay) infinite alternate;
  filter: drop-shadow(10px 16px 10px rgba(43,36,27,.27));
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.portfolio-card:not(.is-active):hover,
.portfolio-card:not(.is-active):focus-visible {
  z-index: 20;
  filter: saturate(1.08);
  transform: translate(var(--pull-x), var(--pull-y)) rotate(calc(var(--rotate) * .75)) scale(1.025);
}

.portfolio-card:not(.is-active):hover .card-drift,
.portfolio-card:not(.is-active):focus-visible .card-drift {
  animation-play-state: paused;
}

.portfolio-card:not(.is-active):hover .open-hint,
.portfolio-card:not(.is-active):focus-visible .open-hint {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card.is-work-pulsing {
  animation: portfolio-work-pulse .74s cubic-bezier(.18,.82,.2,1) var(--showcase-delay, 0ms) both;
}

.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.06) 0 1px, transparent 1.6px);
  background-size: 10px 12px, 13px 15px;
  transition: transform .75s cubic-bezier(.2,.75,.18,1), opacity .28s ease;
}

.tone-ink .card-face { background-color: var(--ink-soft); color: var(--paper); }
.tone-blue .card-face { background-color: var(--blue); color: var(--paper-light); }
.tone-red .card-face { background-color: var(--red); color: var(--paper-light); }

/* 仅调浅个人简介卡片正面；详情页和摄影卡片仍使用原深灰。 */
.card-about .card-front { background-color: #4b4d4e; }

.card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg);
  opacity: 1;
}

.front-number {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: .1em;
  opacity: .45;
}

.front-title {
  position: relative;
  z-index: 2;
  text-align: center;
}

.front-title h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 39px);
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}

.front-title p {
  margin: 9px 0 0;
  font-size: clamp(8px, .72vw, 12px);
  letter-spacing: .13em;
}

.card-about .front-title {
  transform: translate(-1%, 17%) rotate(90deg);
}

.card-about .about-peek {
  position: absolute;
  top: 6%;
  left: 16%;
  width: 82%;
  height: 82%;
  object-fit: cover;
  object-position: 52% 46%;
  filter: none;
  mix-blend-mode: multiply;
}

.card-about .front-title h2 { font-size: clamp(20px, 2.3vw, 40px); }

.open-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  opacity: 0;
  transform: translateY(6px);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .08em;
  transition: opacity .25s ease, transform .25s ease;
}

.card-back {
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(280px, 1.08fr);
  gap: 0;
  transform: rotateY(180deg);
  opacity: 0;
  overflow: auto;
}

.card-ai .card-back,
.card-interactive .card-back,
.card-photo .card-back,
.card-architecture .card-back {
  display: block;
  overflow: visible;
  background: transparent;
}

.ai-back-sheet,
.interactive-back-sheet,
.photo-back-sheet,
.architecture-back-sheet {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(280px, 1.08fr);
  gap: 0;
  overflow: auto;
  background-color: var(--blue);
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.06) 0 1px, transparent 1.6px);
  background-size: 10px 12px, 13px 15px;
  transform-origin: 50% 54%;
  transition:
    transform .66s cubic-bezier(.18,.78,.2,1),
    filter .45s ease,
    box-shadow .45s ease;
}

.interactive-back-sheet {
  background-color: var(--red);
}

.photo-back-sheet {
  background-color: #202426;
}

.architecture-back-sheet {
  background-color: var(--blue);
}

.card-ai.is-resource-open .ai-back-sheet,
.card-interactive.is-resource-open .interactive-back-sheet,
.card-photo.is-resource-open .photo-back-sheet,
.card-architecture.is-resource-open .architecture-back-sheet {
  transform: translate(-18px, 10px) rotate(-3.6deg) scale(.955);
  filter: saturate(.82) brightness(.75);
  box-shadow: 18px 28px 30px rgba(2,8,18,.46);
}

.card-photo.is-resource-open .photo-back-sheet {
  transform: translate(18px, 12px) rotate(3.2deg) scale(.952);
}

.card-architecture.is-resource-open .architecture-back-sheet {
  transform: translate(-16px, 12px) rotate(-3deg) scale(.954);
}

.close-card {
  position: absolute;
  top: 19px;
  right: 21px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  cursor: pointer;
  color: inherit;
  background: rgba(239,234,221,.1);
  border: 1px solid currentColor;
  font-size: 20px;
  line-height: 1;
}

.close-card span {
  font-size: 10px;
  letter-spacing: .12em;
}

.back-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: clamp(34px, 5vw, 68px) clamp(26px, 4vw, 58px);
  flex-direction: column;
  justify-content: center;
}

.back-index {
  position: absolute;
  top: 23px;
  left: clamp(26px, 4vw, 58px);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: .16em;
  opacity: .6;
}

.back-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .75;
}

.back-copy h2 {
  margin: 0 0 23px;
  font-size: clamp(31px, 4.2vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.card-ai .back-copy h2 {
  font-size: clamp(28px, 3.5vw, 50px);
  letter-spacing: -.05em;
  white-space: nowrap;
}

.back-description {
  max-width: 520px;
  margin: 0;
  font-size: clamp(13px, 1.06vw, 17px);
  line-height: 1.9;
  text-align: justify;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 9px 6px;
  border: 1px solid rgba(246,241,230,.46);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.ai-resource-tabs {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 24px;
}

.interactive-resource-tabs {
  grid-template-columns: 1fr;
  width: min(100%, 220px);
}

.photo-resource-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.resource-tab {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  cursor: pointer;
  color: var(--paper-light);
  border: 1px solid rgba(255,219,199,.46);
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), transparent 34%),
    #8d281f;
  box-shadow:
    5px 6px 0 #5e1b17,
    10px 13px 18px rgba(5,14,29,.34),
    inset 0 1px rgba(255,255,255,.1);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-align: left;
  transition: background .25s ease, border-color .25s ease, transform .3s ease, box-shadow .3s ease;
}

.resource-tab::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 16px;
  height: 16px;
  background: linear-gradient(225deg, #c87863 0 46%, rgba(255,255,255,.24) 48% 51%, #641b16 53%);
  filter: drop-shadow(-3px 4px 3px rgba(75,16,11,.4));
}

.resource-tab:hover,
.resource-tab:focus-visible {
  border-color: rgba(255,239,226,.92);
  background:
    linear-gradient(145deg, rgba(255,255,255,.11), transparent 38%),
    #a73226;
  box-shadow:
    7px 8px 0 #5e1b17,
    15px 18px 24px rgba(5,14,29,.42),
    inset 0 1px rgba(255,255,255,.13);
  transform: translate(-3px, -4px) rotate(-.7deg);
}

.resource-tab-index {
  margin-right: 12px;
  color: #ffd3be;
  font-size: 9px;
}

.resource-tab i {
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.resource-tab:hover i,
.resource-tab:focus-visible i {
  transform: translate(2px, -2px);
}

.interactive-resource-tabs .resource-tab {
  color: #f4f0e8;
  border-width: 2px;
  border-color: rgba(255,255,255,.25);
  background: transparent;
  box-shadow:
    5px 6px 0 rgba(32,36,38,.28),
    10px 13px 18px rgba(5,14,29,.2),
    inset 0 1px rgba(255,255,255,.08);
}

.interactive-resource-tabs .resource-tab::before {
  background: linear-gradient(225deg, #e07163 0 46%, rgba(255,255,255,.24) 48% 51%, #c93425 53%);
}

.interactive-resource-tabs .resource-tab:hover,
.interactive-resource-tabs .resource-tab:focus-visible {
  color: #c93425;
  border-width: 1px;
  border-color: rgba(255,255,255,.55);
  background: #e9e3d8;
  box-shadow:
    7px 8px 0 #a8a197,
    15px 18px 24px rgba(5,14,29,.42),
    inset 0 1px rgba(255,255,255,.13);
}

.interactive-resource-tabs .resource-tab-index {
  color: #f4f0e8;
}

.interactive-resource-tabs .resource-tab:hover .resource-tab-index,
.interactive-resource-tabs .resource-tab:focus-visible .resource-tab-index {
  color: #c93425;
}

.photo-resource-tabs .resource-tab {
  min-height: 60px;
  padding: 0 11px;
  color: #f4f0e8;
  border-color: rgba(244,240,232,.38);
  background: transparent;
  box-shadow:
    4px 5px 0 rgba(15,17,18,.48),
    9px 12px 18px rgba(0,0,0,.24),
    inset 0 1px rgba(255,255,255,.06);
  font-size: 10px;
  letter-spacing: .06em;
}

.photo-resource-tabs .resource-tab::before {
  background: linear-gradient(225deg, #4a4d4e 0 46%, rgba(255,255,255,.2) 48% 51%, #111415 53%);
}

.photo-resource-tabs .resource-tab-index {
  margin-right: 8px;
  color: #d6d0c6;
  font-size: 8px;
}

.photo-resource-tabs .resource-tab:hover,
.photo-resource-tabs .resource-tab:focus-visible {
  color: #c93425;
  border-color: #e9e3d8;
  background: #e9e3d8;
  box-shadow:
    6px 7px 0 rgba(15,17,18,.62),
    14px 17px 22px rgba(0,0,0,.34);
}

.photo-resource-tabs .resource-tab:hover .resource-tab-index,
.photo-resource-tabs .resource-tab:focus-visible .resource-tab-index {
  color: #c93425;
}

.architecture-resource-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.architecture-resource-tabs .resource-tab {
  min-height: 60px;
  padding: 0 10px;
  color: #f4f0e8;
  border-color: rgba(244,240,232,.42);
  background: transparent;
  box-shadow:
    4px 5px 0 rgba(12,18,28,.52),
    9px 12px 18px rgba(5,12,25,.28),
    inset 0 1px rgba(255,255,255,.07);
  font-size: 10px;
  letter-spacing: .05em;
}

.architecture-resource-tabs .resource-tab::before {
  background: linear-gradient(225deg, #315989 0 46%, rgba(226,239,250,.22) 48% 51%, #0b2748 53%);
}

.architecture-resource-tabs .resource-tab-index {
  margin-right: 7px;
  color: #d9d3c8;
  font-size: 8px;
}

.architecture-resource-tabs .resource-tab:hover,
.architecture-resource-tabs .resource-tab:focus-visible {
  color: #233f70;
  border-color: #f4f0e8;
  background: #f4f0e8;
  box-shadow:
    6px 7px 0 rgba(12,18,28,.68),
    14px 17px 22px rgba(4,10,20,.36);
}

.architecture-resource-tabs .resource-tab:hover .resource-tab-index,
.architecture-resource-tabs .resource-tab:focus-visible .resource-tab-index {
  color: #233f70;
}

.resource-window {
  position: absolute;
  inset: 25px 25px 22px 31px;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: var(--paper-light);
  border: 1px solid rgba(246,241,230,.7);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), transparent 28%),
    #142d57;
  box-shadow:
    -8px 10px 0 rgba(182,46,31,.82),
    0 32px 52px rgba(4,10,23,.6),
    inset 0 1px rgba(255,255,255,.14);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  transform-origin: 14% 18%;
  animation: resource-unfold .62s cubic-bezier(.18,.78,.2,1) both;
}

.resource-window[hidden] {
  display: none;
}

.resource-window.is-experience {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(96vw, 1440px);
  height: min(90vh, 880px);
  animation: experience-window-unfold .62s cubic-bezier(.18,.78,.2,1) both;
}

.resource-window::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 30px;
  height: 30px;
  background: linear-gradient(225deg, #f5f0e4 0 47%, rgba(255,255,255,.22) 48% 51%, #0a1e3d 52%);
  filter: drop-shadow(-4px 5px 4px rgba(3,10,22,.34));
}

.resource-window-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 13px 54px 12px 20px;
  border-bottom: 1px solid rgba(246,241,230,.28);
  background: rgba(5,20,45,.62);
}

.resource-window-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  letter-spacing: .16em;
  opacity: .58;
}

.resource-window-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: .04em;
}

.resource-window-close {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--paper-light);
  border: 1px solid rgba(246,241,230,.55);
  background: rgba(255,255,255,.04);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .08em;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.resource-window-close:hover,
.resource-window-close:focus-visible {
  color: #132b52;
  border-color: var(--paper-light);
  background: var(--paper-light);
}

.resource-window-body {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #f4f0e6;
}

.resource-window-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #17345f;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .14em;
}

.resource-window iframe {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.resource-window iframe[hidden] {
  display: none;
}

.resource-external-fallback {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 10px 12px;
  color: #f4f0e8;
  border: 1px solid rgba(244,240,232,.35);
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), transparent 42%),
    rgba(5,20,45,.88);
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
}

.resource-external-fallback[hidden] {
  display: none;
}

.resource-external-kicker {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: .22em;
  color: rgba(244,240,232,.58);
}

.resource-external-fallback h4 {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .02em;
}

.resource-external-fallback p:not(.resource-external-kicker) {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  color: rgba(244,240,232,.75);
  font-size: 11px;
  line-height: 1.45;
}

.resource-external-fallback a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  color: #f4f0e8;
  text-decoration: none;
  border: 1px solid rgba(244,240,232,.58);
  background: rgba(201,52,37,.88);
  box-shadow: 5px 5px 0 rgba(0,0,0,.22);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: .08em;
}

.resource-external-fallback a:hover,
.resource-external-fallback a:focus-visible {
  color: #c93425;
  background: #e9e3d8;
  outline: none;
}

.video-resource-window .resource-window-body {
  display: grid;
  place-items: center;
  background: #06090e;
}

.video-resource-window video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #06090e;
}

.photo-resource-window {
  inset: 12px 12px 12px 16px;
  color: #f4f0e8;
  border-color: rgba(244,240,232,.72);
  background: #202426;
  box-shadow:
    -9px 11px 0 rgba(15,17,18,.82),
    0 34px 56px rgba(0,0,0,.58),
    inset 0 1px rgba(255,255,255,.1);
}

.photo-resource-window::before {
  background: linear-gradient(225deg, #f4f0e8 0 47%, rgba(255,255,255,.24) 48% 51%, #151819 52%);
}

.photo-resource-window .resource-window-header {
  min-height: 60px;
  border-bottom-color: rgba(244,240,232,.24);
  background: #202426;
}

.photo-resource-body {
  overflow: auto;
  color: #202426;
  background: #f4f0e8;
  scrollbar-color: #202426 #ddd6ca;
  scrollbar-width: thin;
}

.photo-project-panel {
  min-height: 100%;
  padding: clamp(28px, 3.5vw, 52px);
  background:
    radial-gradient(circle at 30% 20%, rgba(32,36,38,.035) 0 1px, transparent 1.3px),
    #f4f0e8;
  background-size: 13px 15px;
}

.photo-project-panel[hidden] {
  display: none;
}

.photo-panel-heading {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(220px, .8fr);
  gap: 4px 36px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 2px solid #202426;
}

.photo-panel-heading > span {
  grid-column: 1 / -1;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .18em;
}

.photo-panel-heading h4 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.05em;
}

.photo-panel-heading p {
  max-width: 340px;
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.photo-editorial-rule {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  color: rgba(32,36,38,.72);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: .16em;
}

.photo-editorial-rule::before {
  content: "";
  grid-column: 2;
  height: 1px;
  background: rgba(32,36,38,.42);
}

.photo-editorial-rule span {
  grid-column: 1;
  grid-row: 1;
}

.photo-editorial-rule b {
  grid-column: 3;
  grid-row: 1;
  font-weight: 500;
}

.photo-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 62px;
  column-gap: 18px;
  row-gap: 18px;
  margin-top: 42px;
  padding: 0 2% 58px;
}

.photo-collage figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: #d8d2c8;
  border: 5px solid #f4f0e8;
  box-shadow: 0 10px 22px rgba(20,21,20,.12);
}

.photo-collage figure::after {
  content: counter(photo-item, decimal-leading-zero);
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 3px 5px;
  color: #f4f0e8;
  background: rgba(23,25,25,.72);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  letter-spacing: .1em;
}

.photo-collage {
  counter-reset: photo-item;
}

.photo-collage figure {
  counter-increment: photo-item;
}

.photo-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}

.photo-collage figure:hover img {
  transform: scale(1.025);
  filter: contrast(1.03);
}

.photo-collage figure:focus-visible {
  outline: 3px solid #c93425;
  outline-offset: 4px;
}

.photo-archive-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 650px;
  margin: 46px auto 0;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .14em;
  text-align: center;
}

.architecture-story-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  min-height: 84px;
  font-family: var(--font-geist-mono), monospace;
  color: #202426;
}

.story-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  line-height: 1.08;
}

.story-brand i {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 3px solid #202426;
  border-radius: 10px;
}

.story-brand i::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px solid #202426;
  border-radius: 50%;
}

.story-brand i::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #202426;
}

.story-period {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.story-period span {
  font-size: 8px;
  letter-spacing: .12em;
}

.story-period strong {
  padding: 7px 6px;
  border: 2px solid #202426;
  border-radius: 7px;
  font-size: 10px;
  letter-spacing: -.02em;
}

.architecture-collage {
  max-width: 760px;
  grid-auto-rows: 42px;
  gap: 8px;
  margin: 44px auto 0;
  padding: 0;
}

.architecture-collage figure:nth-child(1) { grid-column: 5 / 9; grid-row: 1 / 4; }
.architecture-collage figure:nth-child(2) { grid-column: 3 / 5; grid-row: 2 / 5; }
.architecture-collage figure:nth-child(3) { grid-column: 9 / 11; grid-row: 2 / 5; }
.architecture-collage figure:nth-child(4) { grid-column: 2 / 5; grid-row: 5 / 7; }
.architecture-collage figure:nth-child(5) { grid-column: 5 / 9; grid-row: 4 / 8; }
.architecture-collage figure:nth-child(6) { grid-column: 9 / 12; grid-row: 5 / 8; }
.architecture-collage figure:nth-child(7) { grid-column: 1 / 4; grid-row: 7 / 10; }
.architecture-collage figure:nth-child(8) { grid-column: 4 / 8; grid-row: 8 / 11; }
.architecture-collage figure:nth-child(9) { grid-column: 8 / 12; grid-row: 8 / 11; }

.architecture-archive-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid rgba(32,36,38,.42);
}

.architecture-archive-footer > div {
  display: grid;
  gap: 12px;
}

.architecture-archive-footer > div > span,
.architecture-archive-footer small {
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  font-style: normal;
  letter-spacing: .12em;
}

.architecture-archive-footer strong {
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -.07em;
}

.architecture-archive-footer p {
  max-width: 340px;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  text-align: justify;
}

.architecture-archive-footer p b {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.1;
  text-align: right;
}

.travel-photo-panel {
  position: relative;
  overflow: hidden;
  padding-bottom: 110px;
}

.travel-editorial-head {
  position: relative;
  z-index: 3;
  width: min(42%, 370px);
  min-width: 280px;
  padding: 4px 0 14px;
  color: #202426;
  background: transparent;
}

.travel-editorial-head > span {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .22em;
}

.travel-editorial-head h4 {
  position: relative;
  margin: 0;
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 720;
  line-height: .88;
  letter-spacing: -.07em;
}

.travel-editorial-head h4 i {
  display: inline-block;
  width: 64px;
  height: 2px;
  margin: 0 0 .2em 12px;
  background: #202426;
}

.travel-editorial-head > p {
  margin: 20px 0 11px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: .2em;
}

.travel-editorial-head blockquote {
  margin: 0 0 20px;
  padding: 0;
  font-size: 15px;
  line-height: 1.25;
}

.travel-editorial-head blockquote strong {
  display: block;
  height: 28px;
  font-size: 48px;
  line-height: 1;
}

.travel-editorial-head small {
  display: block;
  font-size: 11px;
  line-height: 1.15;
}

.travel-editorial-head small b {
  font-weight: 720;
}

.travel-collage {
  position: relative;
  z-index: 1;
  width: 112%;
  grid-auto-rows: 112px;
  gap: 14px;
  margin: 62px -10% 90px 6%;
  padding: 0;
  transform: rotate(-9deg);
  transform-origin: center;
}

.travel-collage figure:nth-child(2)::before,
.travel-collage figure:nth-child(6)::before,
.travel-collage figure:nth-child(11)::before,
.travel-collage figure:nth-child(14)::before {
  position: absolute;
  top: 10px;
  left: 11px;
  z-index: 2;
  color: #f4f0e8;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: .12em;
  text-shadow: 0 1px 4px rgba(0,0,0,.48);
}

.travel-collage figure:nth-child(2)::before { content: "CITY / LIGHT"; }
.travel-collage figure:nth-child(6)::before { content: "WALKING NOTES"; }
.travel-collage figure:nth-child(11)::before { content: "DISTANCE / 2026"; }
.travel-collage figure:nth-child(14)::before { content: "MEMORY FRAME"; }

.travel-collage figure:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 4; }
.travel-collage figure:nth-child(2) { grid-column: 5 / 9; grid-row: 1 / 4; }
.travel-collage figure:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 4; }
.travel-collage figure:nth-child(4) { grid-column: 1 / 4; grid-row: 4 / 7; }
.travel-collage figure:nth-child(5) { grid-column: 4 / 8; grid-row: 4 / 7; }
.travel-collage figure:nth-child(6) { grid-column: 8 / 13; grid-row: 4 / 7; }
.travel-collage figure:nth-child(7) { grid-column: 1 / 6; grid-row: 7 / 10; }
.travel-collage figure:nth-child(8) { grid-column: 6 / 9; grid-row: 7 / 10; }
.travel-collage figure:nth-child(9) { grid-column: 9 / 13; grid-row: 7 / 10; }
.travel-collage figure:nth-child(10) { grid-column: 1 / 4; grid-row: 10 / 13; }
.travel-collage figure:nth-child(11) { grid-column: 4 / 9; grid-row: 10 / 13; }
.travel-collage figure:nth-child(12) { grid-column: 9 / 13; grid-row: 10 / 13; }
.travel-collage figure:nth-child(13) { grid-column: 1 / 4; grid-row: 13 / 16; }
.travel-collage figure:nth-child(14) { grid-column: 4 / 7; grid-row: 13 / 16; }
.travel-collage figure:nth-child(15) { grid-column: 7 / 10; grid-row: 13 / 16; }
.travel-collage figure:nth-child(16) { grid-column: 10 / 13; grid-row: 13 / 16; }

.photo-lightbox {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
  place-items: center;
  color: #f4f0e8;
  background: rgba(10,12,13,.97);
  animation: lightbox-in .35s ease both;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox figure {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 38px 0 22px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 13px;
}

.photo-lightbox img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.photo-lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .12em;
  opacity: .72;
}

.photo-lightbox-close {
  position: absolute;
  top: 17px;
  right: 19px;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: #f4f0e8;
  border: 1px solid rgba(244,240,232,.6);
  background: rgba(255,255,255,.04);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.photo-lightbox-nav {
  display: grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
  color: #f4f0e8;
  border: 1px solid rgba(244,240,232,.42);
  background: transparent;
  font-size: 20px;
  transition: color .2s ease, background .2s ease;
}

.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus-visible,
.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible {
  color: #c93425;
  background: #f4f0e8;
}

.architecture-resource-window {
  inset: 12px 12px 12px 16px;
  color: #f4f0e8;
  border-color: rgba(244,240,232,.72);
  background: #18345f;
  box-shadow:
    -9px 11px 0 rgba(12,18,28,.86),
    0 34px 56px rgba(2,8,18,.58),
    inset 0 1px rgba(255,255,255,.1);
}

.architecture-resource-window::before {
  background: linear-gradient(225deg, #f4f0e8 0 47%, rgba(255,255,255,.24) 48% 51%, #111415 52%);
}

.architecture-resource-window .resource-window-header {
  min-height: 60px;
  border-bottom-color: rgba(244,240,232,.24);
  background: #18345f;
}

.architecture-resource-body {
  overflow: auto;
  color: #202426;
  background: #f2eee5;
  scrollbar-color: #233f70 #d8d1c5;
  scrollbar-width: thin;
}

.architecture-project-panel {
  min-height: 100%;
  background:
    linear-gradient(rgba(35,63,112,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,63,112,.045) 1px, transparent 1px),
    #f2eee5;
  background-size: 24px 24px;
}

.architecture-project-panel[hidden] {
  display: none;
}

.architecture-portfolio-panel {
  min-height: 100%;
  padding: clamp(18px, 3vw, 40px);
  background:
    linear-gradient(rgba(244,240,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,240,232,.05) 1px, transparent 1px),
    #081f3b;
  background-size: 24px 24px;
}

.architecture-portfolio-gallery {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.architecture-portfolio-page {
  margin: 0;
  padding: clamp(8px, 1.4vw, 16px);
  border: 1px solid rgba(244,240,232,.18);
  background: rgba(4, 14, 28, .72);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.architecture-portfolio-page img {
  display: block;
  width: 100%;
  height: auto;
  background: #f4f0e8;
}

.architecture-portfolio-page figcaption {
  margin-top: 10px;
  color: rgba(244,240,232,.68);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .16em;
  text-align: right;
}

.architecture-board-panel,
.architecture-interior-panel {
  padding: clamp(30px, 4vw, 58px);
}

.architecture-panel-heading {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(240px, .8fr);
  align-items: end;
  gap: 5px 38px;
  padding-bottom: 24px;
  border-bottom: 2px solid #233f70;
}

.architecture-panel-heading > span {
  grid-column: 1 / -1;
  color: #233f70;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .19em;
}

.architecture-panel-heading h4 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 680;
  line-height: .96;
  letter-spacing: -.05em;
}

.architecture-panel-heading p {
  max-width: 380px;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  text-align: justify;
}

.architecture-board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 28px;
  margin-top: 42px;
  padding-bottom: 54px;
}

.architecture-board-grid figure {
  margin: 0;
  padding: 10px;
  background: #fff;
  box-shadow: 12px 16px 28px rgba(21,28,39,.17);
}

.architecture-board-grid figure:nth-child(2) {
  margin-top: 54px;
}

.architecture-board-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.architecture-interior-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 96px;
  gap: 14px;
  margin-top: 38px;
  padding-bottom: 58px;
}

.architecture-interior-grid figure {
  margin: 0;
  overflow: hidden;
  background: #d9d3c8;
  border: 5px solid #f7f3ea;
  box-shadow: 0 12px 24px rgba(20,26,35,.15);
}

.architecture-interior-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.architecture-interior-grid figure:hover img {
  transform: scale(1.025);
}

.architecture-interior-grid figure:nth-child(1) { grid-column: 1 / 9; grid-row: 1 / 4; }
.architecture-interior-grid figure:nth-child(2) { grid-column: 9 / 13; grid-row: 1 / 3; }
.architecture-interior-grid figure:nth-child(3) { grid-column: 9 / 13; grid-row: 3 / 5; }
.architecture-interior-grid figure:nth-child(4) { grid-column: 1 / 5; grid-row: 4 / 6; }
.architecture-interior-grid figure:nth-child(5) { grid-column: 5 / 9; grid-row: 4 / 7; }
.architecture-interior-grid figure:nth-child(6) { grid-column: 9 / 13; grid-row: 5 / 7; }
.architecture-interior-grid figure:nth-child(7) { grid-column: 2 / 8; grid-row: 7 / 9; }

.editing-photo-panel {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr);
  gap: 28px;
  min-height: 100%;
  background: #e9e3d8;
}

.editing-photo-panel[hidden] {
  display: none;
}

.photo-video-stage {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  border: 8px solid #f4f0e8;
  background: #080a0b;
  box-shadow:
    10px 12px 0 #c93425,
    22px 26px 36px rgba(20,21,20,.28);
  transform: rotate(-.8deg);
}

.photo-video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #080a0b;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .11em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8dc984;
  box-shadow: 0 0 0 4px rgba(141,201,132,.14);
}

.project-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 30px 0 45px rgba(24,25,26,.25);
  pointer-events: none;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual-about img {
  filter: grayscale(1) contrast(1.08);
}

.project-visual-interactive img { object-position: 58% center; }
.project-visual-architecture {
  isolation: isolate;
  background-color: #0b2748;
  background-image:
    linear-gradient(rgba(214,232,248,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,232,248,.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

.project-visual-architecture img {
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
}

.project-visual-photo {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 5px;
  padding: 5px;
  background: var(--paper);
}

.project-visual-photo-single {
  display: block;
}

.project-visual-photo-single img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
}

.project-visual-photo img { object-position: center; }
.project-visual-photo .secondary-image { object-position: 64% center; }

.ai-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(38px, 5vw, 74px);
  background:
    linear-gradient(rgba(246,241,230,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,241,230,.06) 1px, transparent 1px),
    #172c53;
  background-size: 22px 22px;
  box-shadow: inset 30px 0 50px rgba(8,17,34,.35);
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: .12em;
}

.ai-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #82d68e;
  box-shadow: 0 0 12px #82d68e;
}

.ai-waveform {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 115px;
  margin: 30px 0;
}

.ai-waveform i {
  display: block;
  width: 7px;
  height: var(--wave);
  background: var(--red);
  animation: waveform 1.4s ease-in-out infinite alternate;
}

.ai-waveform i:nth-child(2n) { animation-delay: -.65s; }
.ai-waveform i:nth-child(3n) { animation-delay: -.3s; }

.ai-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(246,241,230,.3);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.ai-grid strong { color: #f0a071; font-weight: 500; }

.portfolio-card.is-active {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(84vw, 1080px);
  height: min(72vh, 690px);
  z-index: 60;
  cursor: default;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: card-lift .68s cubic-bezier(.2,.8,.18,1) both;
}

.portfolio-card.card-photo.is-active,
.portfolio-card.card-architecture.is-active {
  width: min(92vw, 1240px);
  height: min(84vh, 780px);
}

.portfolio-card.is-active .card-drift {
  animation: none;
  filter: drop-shadow(24px 35px 24px rgba(16,15,13,.36));
}

.portfolio-card.is-active .card-inner {
  transform: none;
}

.portfolio-card.is-active .card-front {
  transform: rotateY(-180deg);
  opacity: 0;
}

.portfolio-card.is-active .card-back {
  transform: rotateY(0deg);
  opacity: 1;
}

.has-active-card .portfolio-card:not(.is-active) {
  pointer-events: none;
  opacity: .16;
  filter: blur(3px) saturate(.7);
}

.card-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  cursor: zoom-out;
  background: rgba(24,25,25,.72);
  backdrop-filter: blur(3px);
  animation: backdrop-in .35s ease both;
}

footer {
  position: absolute;
  right: 4.2%;
  bottom: 2.2%;
  left: 42%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-geist-mono), monospace;
  font-size: clamp(7px, .68vw, 11px);
  letter-spacing: .1em;
  pointer-events: none;
}

.decorations {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.fragment-trigger {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: var(--shape-transform, none);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.2,.75,.25,1), filter .28s ease;
}

.fragment-trigger:hover,
.fragment-trigger:focus-visible {
  z-index: 12;
  transform: var(--shape-transform, none) translate(var(--fragment-shift-x, 5px), var(--fragment-shift-y, -4px)) scale(1.075);
  filter: drop-shadow(0 9px 7px rgba(28,29,29,.22));
}

.fragment-trigger:focus-visible {
  outline: 2px solid rgba(246,241,230,.94);
  outline-offset: 5px;
}

.fragment-trigger:active {
  transform: var(--shape-transform, none) translate(var(--fragment-shift-x, 5px), var(--fragment-shift-y, -4px)) scale(1.025);
  transition-duration: .1s;
}

.fragment-trigger.is-work-pulsing {
  z-index: 14;
  animation: fragment-work-pulse .74s cubic-bezier(.18,.82,.2,1) var(--showcase-delay, 0ms) both;
}

/* 透明感应层：扩大鼠标命中范围，但不改变几何图形的视觉尺寸。 */
.bar::before,
.circle::before,
.cross::before {
  content: "";
  position: absolute;
  display: block;
  pointer-events: auto;
  /* 极低透明度确保 Chromium 将整块区域稳定纳入鼠标命中检测。 */
  background: rgba(0,0,0,.001);
}

.bar::before {
  inset: -50px -34px;
}

.circle::before {
  inset: -44px;
  border-radius: 50%;
}

.cross::before {
  inset: -34px -28px;
}

.cross-black::before {
  inset: -28px -34px;
}

.bar {
  position: absolute;
  display: block;
  height: clamp(12px, 1.65vw, 28px);
  background: var(--ink);
}

.bar-a { top: 5.6%; left: 23%; width: 13%; --shape-transform: rotate(-27deg); --fragment-shift-x: 6px; }
.bar-b { top: 9.5%; left: 18.5%; width: 14%; --shape-transform: rotate(-27deg); --fragment-shift-x: -5px; }
.bar-c { top: 12.8%; left: 27%; width: 13%; height: 15px; --shape-transform: rotate(-24deg); --fragment-shift-y: -6px; background: var(--red); }
.bar-d { top: 19%; right: -1%; width: 20%; --shape-transform: rotate(-11deg); --fragment-shift-x: -7px; }
.bar-e { bottom: 7%; left: 53%; width: 17%; --shape-transform: rotate(-27deg); --fragment-shift-y: -6px; }
.bar-f { bottom: 35%; right: 22%; width: 12%; height: 9px; --shape-transform: rotate(-67deg); --fragment-shift-x: -4px; background: var(--red); }

.ai-chat-fragment {
  overflow: visible;
  background:
    radial-gradient(circle at 88% 50%, #87d68e 0 2px, transparent 2.7px),
    var(--ink);
  --fragment-shift-x: -9px;
  --fragment-shift-y: -5px;
}

.ai-chat-fragment::before {
  inset: -58px -42px;
}

.ai-chat-fragment::after {
  content: "AI CHAT";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(246,241,230,.74);
  font-family: var(--font-geist-mono), monospace;
  font-size: clamp(6px, .62vw, 9px);
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
  text-shadow: 0 1px 7px rgba(0,0,0,.42);
  pointer-events: none;
  transition: color .24s ease, letter-spacing .24s ease;
}

.ai-chat-fragment:hover::after,
.ai-chat-fragment:focus-visible::after {
  color: var(--paper-light);
  letter-spacing: .24em;
}

.circle {
  position: absolute;
  left: 6.6%;
  top: 47%;
  width: clamp(34px, 3.2vw, 54px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  --fragment-shift-x: 6px;
  --fragment-shift-y: -3px;
}

.cross {
  position: absolute;
  width: 140px;
  height: 18px;
  background: var(--blue);
}

.cross-black {
  width: 18px;
  height: 130px;
  background: var(--ink);
  transform-origin: 12px 64px;
}

.cross-a { left: 5%; bottom: 10%; --shape-transform: rotate(25deg); --fragment-shift-x: 6px; }
.cross-a-black { left: calc(5% + 58px); bottom: calc(10% - 57px); --shape-transform: rotate(25deg); --fragment-shift-x: 4px; }
.cross-b { right: 2%; top: 49%; --shape-transform: rotate(-8deg) scale(.58); --fragment-shift-x: -7px; }
.cross-b-black { right: calc(2% + 64px); top: calc(49% - 55px); --shape-transform: rotate(-8deg) scale(.58); --fragment-shift-x: -5px; }

.triangle {
  position: absolute;
  right: 3.5%;
  bottom: 4%;
  width: 116px;
  height: 230px;
  border: 0;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  --shape-transform: rotate(9deg);
  --fragment-shift-x: -5px;
  --fragment-shift-y: -6px;
}

.triangle-red {
  z-index: 1;
}

.triangle-blue {
  right: 2.8%;
  bottom: 10%;
  z-index: 0;
  width: 88px;
  background: var(--blue);
  --shape-transform: rotate(-3deg);
}

.fragment-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 74;
  cursor: zoom-out;
  background: rgba(25,26,26,.68);
  backdrop-filter: blur(3px);
  animation: backdrop-in .28s ease both;
}

.contact-backdrop {
  position: fixed;
  inset: 0;
  z-index: 74;
  cursor: zoom-out;
  background: rgba(25,26,26,.68);
  backdrop-filter: blur(3px);
  animation: backdrop-in .28s ease both;
}

.fragment-document-backdrop {
  position: fixed;
  inset: 0;
  z-index: 74;
  cursor: zoom-out;
  background: rgba(25,26,26,.76);
  backdrop-filter: blur(4px);
  animation: backdrop-in .28s ease both;
}

.fragment-document-backdrop[hidden],
.fragment-document-window[hidden] {
  display: none;
}

.fragment-document-window {
  position: fixed;
  inset: clamp(38px,5.5vh,68px) clamp(38px,6vw,92px) clamp(34px,5vh,62px);
  z-index: 76;
  display: grid;
  grid-template-rows: 78px minmax(0,1fr);
  overflow: hidden;
  background: var(--paper-light);
  clip-path: polygon(0 0,calc(100% - 38px) 0,100% 38px,100% 100%,0 100%);
  filter: drop-shadow(-13px 17px 0 var(--red)) drop-shadow(0 24px 30px rgba(0,0,0,.38));
  transform: rotate(-.35deg);
  transform-origin: center;
  animation: fragment-document-in .46s cubic-bezier(.2,.78,.22,1) both;
}

.fragment-document-window::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  background: var(--ink);
  clip-path: polygon(0 0,100% 100%,0 100%);
}

.fragment-document-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 58px 15px 28px;
  color: var(--paper-light);
  background: #92291f;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.fragment-document-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.fragment-document-header span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: .18em;
  opacity: .7;
}

.fragment-document-header h2 {
  margin: 0;
  font-size: clamp(18px,2vw,26px);
  line-height: 1;
}

.fragment-document-header button,
.fragment-document-header a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.56);
  color: var(--paper-light);
  cursor: pointer;
  background: transparent;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.fragment-document-header button:hover,
.fragment-document-header button:focus-visible,
.fragment-document-header a:hover,
.fragment-document-header a:focus-visible {
  color: #92291f;
  background: var(--paper-light);
  outline: none;
}

.fragment-document-window.is-bilibili {
  filter: drop-shadow(-13px 17px 0 #274a83) drop-shadow(0 24px 30px rgba(0,0,0,.38));
}

.fragment-document-window.is-bilibili .fragment-document-header {
  background:
    linear-gradient(105deg, #202426 0 74%, #274a83 74% 100%);
}

.fragment-document-window.is-bilibili .fragment-document-header a:hover,
.fragment-document-window.is-bilibili .fragment-document-header a:focus-visible,
.fragment-document-window.is-bilibili .fragment-document-header button:hover,
.fragment-document-window.is-bilibili .fragment-document-header button:focus-visible {
  color: #202426;
}

.fragment-document-window.is-price-tool {
  filter: drop-shadow(-13px 17px 0 #202426) drop-shadow(0 24px 30px rgba(0,0,0,.38));
}

.fragment-document-window.is-price-tool .fragment-document-header {
  background:
    linear-gradient(105deg, #a82e22 0 76%, #202426 76% 100%);
}

.fragment-document-window iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

@keyframes fragment-document-in {
  from { opacity: 0; transform: translateY(7%) rotate(2deg) scale(.92); }
  to { opacity: 1; transform: translateY(0) rotate(-.35deg) scale(1); }
}

.fragment-notice-backdrop[hidden],
.fragment-notice[hidden],
.contact-backdrop[hidden],
.contact-card[hidden] {
  display: none;
}

.fragment-notice,
.contact-card {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 75;
  width: min(86vw, 430px);
  min-height: 270px;
  padding: 44px 46px 40px;
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(36,38,39,.09) 1px, transparent 1.2px) 0 0 / 13px 13px,
    var(--paper-light);
  clip-path: polygon(0 0, calc(100% - 38px) 0, 100% 38px, 100% 100%, 0 100%);
  box-shadow:
    -10px 12px 0 var(--blue),
    -18px 22px 34px rgba(14,15,15,.42);
  transform: translate(-50%, -50%) rotate(-1.4deg);
  animation: fragment-note-in .42s cubic-bezier(.2,.78,.22,1) both;
}

.fragment-notice::before,
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  filter: brightness(.82);
}

.fragment-notice-index,
.fragment-notice-kicker,
.fragment-notice-copy,
.fragment-notice-close,
.contact-index,
.contact-kicker,
.contact-close,
.contact-list {
  font-family: var(--font-geist-mono), monospace;
}

.fragment-notice-index,
.contact-index {
  display: block;
  font-size: 9px;
  letter-spacing: .18em;
  opacity: .58;
}

.fragment-notice-close,
.contact-close {
  position: absolute;
  top: 24px;
  right: 28px;
  padding: 7px 10px;
  border: 1px solid rgba(36,38,39,.35);
  cursor: pointer;
  background: rgba(246,241,230,.72);
  font-size: 9px;
  letter-spacing: .08em;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.fragment-notice-close:hover,
.fragment-notice-close:focus-visible,
.contact-close:hover,
.contact-close:focus-visible {
  color: var(--paper-light);
  border-color: var(--ink);
  background: var(--ink);
  outline: none;
}

.fragment-notice-kicker,
.contact-kicker {
  margin: 48px 0 8px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.fragment-notice h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -.05em;
}

.fragment-notice-rule,
.contact-rule {
  display: block;
  width: 78px;
  height: 6px;
  margin: 20px 0 18px;
  background: var(--blue);
  transform: rotate(-2deg);
}

.fragment-notice-copy {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .04em;
}

.contact-card {
  width: min(88vw, 500px);
  min-height: 300px;
  color: var(--paper-light);
  background:
    radial-gradient(circle at 1px 1px, rgba(246,241,230,.11) 1px, transparent 1.2px) 0 0 / 13px 13px,
    var(--ink);
  box-shadow:
    -10px 12px 0 var(--red),
    -18px 22px 34px rgba(14,15,15,.46);
}

.contact-card::before {
  background: var(--blue);
}

.contact-close {
  color: var(--paper-light);
  border-color: rgba(246,241,230,.42);
  background: rgba(246,241,230,.05);
}

.contact-close:hover,
.contact-close:focus-visible {
  color: var(--ink);
  border-color: var(--paper-light);
  background: var(--paper-light);
}

.contact-rule {
  background: var(--red);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.contact-list dt {
  color: rgba(246,241,230,.62);
  font-size: 10px;
  letter-spacing: .16em;
}

.contact-list dd {
  margin: 0;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: .02em;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  outline: none;
}

@keyframes fragment-note-in {
  from { opacity: 0; transform: translate(-50%, -44%) rotate(3deg) scale(.9); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-1.4deg) scale(1); }
}

@keyframes portfolio-work-pulse {
  0%, 100% { transform: rotate(var(--rotate)); filter: none; }
  42% { transform: rotate(var(--rotate)) scale(1.085); filter: saturate(1.12) drop-shadow(12px 18px 13px rgba(43,36,27,.26)); }
  66% { transform: rotate(var(--rotate)) scale(.972); filter: saturate(1.02); }
}

@keyframes fragment-work-pulse {
  0%, 100% { transform: var(--shape-transform, none); filter: none; }
  42% { transform: var(--shape-transform, none) scale(1.18); filter: drop-shadow(0 10px 8px rgba(28,29,29,.24)); }
  66% { transform: var(--shape-transform, none) scale(.96); filter: drop-shadow(0 5px 5px rgba(28,29,29,.14)); }
}

@keyframes card-drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(var(--float-x), var(--float-y)); }
  100% { transform: translate(calc(var(--float-x) * -.55), calc(var(--float-y) * .45)); }
}

@keyframes card-lift {
  0% { opacity: .75; transform: translate(-50%, -46%) rotate(var(--rotate)) scale(.75); }
  55% { opacity: 1; transform: translate(-50%, -51%) rotate(-1.5deg) scale(1.025); }
  100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes waveform { from { transform: scaleY(.5); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes resource-unfold {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateX(-18deg) rotateY(7deg) scale(.76, .2);
    clip-path: polygon(0 0, 28% 0, 34% 30px, 36% 100%, 0 100%);
  }
  54% {
    opacity: 1;
    transform: perspective(1200px) rotateX(2deg) rotateY(-1deg) scale(1.015, 1.015);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateX(0) rotateY(0) scale(1);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  }
}

@keyframes experience-window-unfold {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) perspective(1200px) rotateX(-18deg) rotateY(7deg) scale(.76, .2);
    clip-path: polygon(0 0, 28% 0, 34% 30px, 36% 100%, 0 100%);
  }
  54% {
    opacity: 1;
    transform: translate(-50%, -50%) perspective(1200px) rotateX(2deg) rotateY(-1deg) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) perspective(1200px) rotateX(0) rotateY(0) scale(1);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  }
}

@media (max-width: 900px) {
  .portfolio-shell { padding: 10px; }
  .portfolio-canvas { min-height: calc(100svh - 20px); }
  .site-header { top: 26px; left: 24px; right: 24px; }
  .site-header nav { gap: 20px; }
  .site-header nav button::before { left: -12px; width: 6px; height: 6px; }
  .card-stage { inset: 120px 0 50px; }

  .portfolio-card {
    --width: 47% !important;
    --height: 38% !important;
  }
  .card-about { --left: 3% !important; --top: 5% !important; --width: 35% !important; --height: 76% !important; }
  .card-ai { --left: 29% !important; --top: 5% !important; }
  .card-interactive { --left: 32% !important; --top: 38% !important; }
  .card-photo { --left: 56% !important; --top: 20% !important; --width: 37% !important; }
  .card-architecture { --left: 59% !important; --top: 52% !important; --width: 36% !important; }
  .front-title h2 { font-size: clamp(15px, 4vw, 26px); }
  .front-title p { font-size: 7px; }
  footer { left: 30px; right: 30px; }

  .portfolio-card.is-active {
    width: 91vw !important;
    height: min(78vh, 690px) !important;
  }
  .portfolio-card.card-photo.is-active,
  .portfolio-card.card-architecture.is-active {
    width: 95vw !important;
    height: min(86vh, 760px) !important;
  }
  .card-back { grid-template-columns: 1fr; grid-template-rows: auto minmax(220px, 45%); }
  .ai-back-sheet,
  .interactive-back-sheet,
  .photo-back-sheet,
  .architecture-back-sheet { grid-template-columns: 1fr; grid-template-rows: auto minmax(220px, 45%); }
  .resource-window { inset: 19px 18px 17px 23px; }
  .photo-resource-window,
  .architecture-resource-window { inset: 10px 9px 9px 13px; }
  .back-copy { padding: 52px 32px 30px; justify-content: flex-start; }
  .back-index { left: 32px; }
  .back-copy h2 { margin-bottom: 14px; }
  .back-description { line-height: 1.7; }
  .tag-list { margin-top: 18px; }
  .project-visual { min-height: 250px; }
  .ai-visual { min-height: 280px; }
  .photo-resource-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .architecture-resource-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-project-panel { padding: 28px 24px 34px; }
  .photo-panel-heading { grid-template-columns: 1fr; }
  .photo-panel-heading p { margin-top: 8px; text-align: left; }
  .photo-collage { grid-auto-rows: 72px; gap: 14px; margin-top: 32px; padding: 0 0 44px; }
  .photo-archive-nav { margin-top: 52px; }
  .architecture-collage { grid-auto-rows: 38px; gap: 7px; margin: 42px auto 0; padding: 0; }
  .travel-collage { width: 112%; grid-auto-rows: 96px; gap: 11px; margin: 54px -8% 70px 4%; padding: 0; }
  .photo-lightbox { grid-template-columns: 58px minmax(0, 1fr) 58px; }
  .architecture-board-panel,
  .architecture-interior-panel { padding: 30px 26px 40px; }
  .architecture-panel-heading { grid-template-columns: 1fr; }
  .architecture-panel-heading p { margin-top: 8px; }
  .architecture-interior-grid { grid-auto-rows: 78px; gap: 10px; }
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .site-header nav { gap: 14px; }
  .site-header nav button { font-size: 10px; }
  .site-header nav button::before { display: none; }
  .card-stage { top: 92px; }
  .card-about .about-peek { top: 5%; left: 10%; width: 88%; height: 86%; }
  .open-hint { display: none; }
  .decorations .bar-d { top: 12%; }
  .triangle { --shape-transform: scale(.65) rotate(9deg); transform-origin: bottom right; }
  .triangle-blue { --shape-transform: scale(.65) rotate(-3deg); }
  .fragment-notice { min-height: 246px; padding: 36px 30px 32px; }
  .fragment-notice-kicker { margin-top: 44px; }
  .fragment-document-window { inset: 18px 12px 16px; grid-template-rows: 70px minmax(0,1fr); }
  .fragment-document-header { padding: 13px 48px 12px 17px; }
  .fragment-document-header span { display: none; }
  footer span:last-child { display: none; }
  .portfolio-card.is-active { height: 82vh !important; }
  .back-copy h2 { font-size: 32px; }
  .back-kicker { font-size: 9px; }
  .back-description { font-size: 12px; }
  .close-card { top: 14px; right: 14px; }
  .ai-resource-tabs { grid-template-columns: 1fr; gap: 13px; margin-top: 20px; }
  .resource-tab { min-height: 54px; }
  .photo-resource-tabs { grid-template-columns: 1fr; gap: 9px; }
  .architecture-resource-tabs { grid-template-columns: 1fr; gap: 9px; }
  .photo-resource-tabs .resource-tab { min-height: 48px; }
  .architecture-resource-tabs .resource-tab { min-height: 48px; }
  .resource-window { inset: 13px 11px 11px 16px; }
  .resource-window-header { min-height: 64px; padding: 10px 45px 10px 13px; }
  .resource-window-close span { display: none; }
  .photo-project-panel { padding: 22px 16px 28px; }
  .photo-panel-heading h4 { font-size: 29px; }
  .photo-editorial-rule { grid-template-columns: 1fr auto; gap: 8px; }
  .photo-editorial-rule::before { display: none; }
  .photo-archive-nav { margin-top: 38px; font-size: 7px; }
  .architecture-story-head { min-height: 64px; }
  .story-brand i { width: 29px; height: 29px; }
  .travel-editorial-head { width: 100%; min-width: 0; padding-right: 0; }
  .travel-editorial-head h4 { font-size: 43px; }
  .photo-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .photo-collage figure:nth-child(n) { grid-column: auto; grid-row: auto; }
  .photo-collage figure:nth-child(3n + 1) { grid-column: 1 / -1; }
  .architecture-collage,
  .travel-collage { width: 100%; margin: 42px 0 0; padding: 0 0 34px; transform: none; }
  .architecture-archive-footer { margin-top: 46px; }
  .architecture-archive-footer strong { font-size: 38px; }
  .architecture-archive-footer p { display: none; }
  .photo-lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .photo-lightbox figure { padding: 54px 0 18px; }
  .photo-lightbox-nav { width: 34px; height: 40px; }
  .photo-lightbox-close span { display: none; }
  .photo-video-stage { min-height: 260px; border-width: 5px; }
  .architecture-board-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
  .architecture-board-grid figure:nth-child(2) { margin-top: 0; }
  .architecture-interior-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .architecture-interior-grid figure:nth-child(n) { grid-column: auto; grid-row: auto; }
}

@media (max-aspect-ratio: 4/5), (max-width: 680px) {
  .has-active-card .card-stage {
    inset: 0;
  }

  .portfolio-card.is-active,
  .portfolio-card.card-photo.is-active,
  .portfolio-card.card-architecture.is-active {
    inset: max(9px, env(safe-area-inset-top)) max(9px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)) !important;
    left: max(9px, env(safe-area-inset-left)) !important;
    top: max(9px, env(safe-area-inset-top)) !important;
    right: max(9px, env(safe-area-inset-right)) !important;
    bottom: max(9px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: auto !important;
    transform: none;
    animation: mobile-card-lift .32s cubic-bezier(.2,.8,.18,1) both;
  }

  .portfolio-card.is-active .card-drift,
  .portfolio-card.is-active .card-inner {
    width: 100%;
    height: 100%;
  }

  .portfolio-card.is-active .card-back {
    display: block;
    overflow: hidden;
  }

  .card-about.is-active .card-back {
    display: flex;
    flex-direction: column;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #292c2d;
  }

  .ai-back-sheet,
  .interactive-back-sheet,
  .photo-back-sheet,
  .architecture-back-sheet {
    display: flex;
    flex-direction: column;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    grid-template-rows: none;
  }

  .card-ai.is-resource-open .ai-back-sheet,
  .card-interactive.is-resource-open .interactive-back-sheet,
  .card-photo.is-resource-open .photo-back-sheet,
  .card-architecture.is-resource-open .architecture-back-sheet {
    transform: translate(-6px, 7px) rotate(-1.2deg) scale(.975);
    filter: saturate(.82) brightness(.72);
  }

  .card-photo.is-resource-open .photo-back-sheet {
    transform: translate(6px, 7px) rotate(1.2deg) scale(.975);
  }

  .back-copy {
    flex: 0 0 auto;
    min-height: auto;
    padding: 58px 20px 24px;
    justify-content: flex-start;
  }

  .back-index {
    top: 18px;
    left: 20px;
  }

  .back-kicker {
    margin-bottom: 10px;
    font-size: 9px;
    line-height: 1.5;
  }

  .back-copy h2,
  .card-ai .back-copy h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 11vw, 52px);
    line-height: 1;
    white-space: normal;
  }

  .back-description {
    max-width: none;
    font-size: 13px;
    line-height: 1.75;
    text-align: left;
  }

  .tag-list {
    gap: 7px;
    margin-top: 18px;
  }

  .tag-list li {
    padding: 6px 8px 5px;
    font-size: 8px;
  }

  .ai-resource-tabs,
  .photo-resource-tabs,
  .architecture-resource-tabs {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .interactive-resource-tabs {
    width: 100%;
  }

  .resource-tab {
    min-height: 54px;
    padding-inline: 15px;
    font-size: 10px;
  }

  .project-visual,
  .ai-visual {
    flex: 0 0 auto;
    min-height: 38vh;
  }

  .project-visual-about {
    min-height: 46vh;
    order: 2;
  }

  .project-visual-photo {
    grid-template-columns: 1fr 1fr;
    min-height: 48vh;
  }

  .ai-visual {
    padding: 28px 20px 34px;
  }

  .close-card {
    top: 14px;
    right: 14px;
    z-index: 12;
    background: rgba(0,0,0,.18);
  }

  .close-card span {
    display: none;
  }

  .resource-window,
  .resource-window.is-experience,
  .photo-resource-window,
  .architecture-resource-window {
    position: absolute;
    inset: 9px !important;
    width: auto;
    height: auto;
    min-height: 0;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
    grid-template-rows: auto minmax(0, 1fr);
    transform: none;
  }

  body > .resource-window.is-experience {
    position: fixed !important;
    inset:
      max(16px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left)) !important;
    z-index: 1000;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    transform: none !important;
    animation: resource-unfold .42s cubic-bezier(.18,.78,.2,1) both;
  }

  .resource-external-fallback {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-wrap: wrap;
    gap: 7px 10px;
  }

  .resource-external-kicker {
    display: none;
  }

  .resource-external-fallback h4 {
    font-size: 11px;
  }

  .resource-external-fallback p:not(.resource-external-kicker) {
    flex-basis: 100%;
    order: 3;
    font-size: 10px;
  }

  .resource-external-fallback a {
    margin-left: auto;
  }

  .resource-window::before {
    width: 22px;
    height: 22px;
  }

  .resource-window-header {
    min-height: 58px;
    padding: 10px 42px 10px 13px;
    gap: 12px;
  }

  .resource-window-header h3 {
    font-size: 14px;
  }

  .resource-window-close {
    padding: 7px 8px;
  }

  .resource-window-close span {
    display: none;
  }

  .resource-window-body {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .video-resource-window .resource-window-body,
  .photo-video-stage {
    min-height: 0;
  }

  .photo-project-panel,
  .architecture-board-panel,
  .architecture-interior-panel {
    padding: 22px 16px 30px;
  }

  .photo-panel-heading,
  .architecture-panel-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .photo-panel-heading h4,
  .architecture-panel-heading h4 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .architecture-portfolio-panel {
    padding: 10px;
  }

  .architecture-portfolio-gallery {
    gap: 14px;
  }

  .architecture-portfolio-page {
    padding: 6px;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
  }
}

@keyframes mobile-card-lift {
  from {
    opacity: .72;
    transform: translateY(18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* AI 作品导览 ------------------------------------------------------------ */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ai-chat-launcher {
  position: absolute;
  top: clamp(104px, 12.2vh, 132px);
  right: clamp(28px, 3.7vw, 66px);
  z-index: 48;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 11px;
  width: clamp(172px, 14.7vw, 224px);
  min-height: 54px;
  padding: 11px 23px 10px 14px;
  color: var(--paper-light);
  cursor: pointer;
  text-align: left;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 1.25px) 0 0 / 11px 11px,
    var(--blue);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  box-shadow: -7px 8px 0 var(--ink), 0 15px 23px rgba(25,28,31,.25);
  transition: transform .28s cubic-bezier(.2,.76,.24,1), box-shadow .28s ease, background-color .28s ease;
}

.ai-chat-launcher::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.ai-chat-launcher:hover,
.ai-chat-launcher:focus-visible {
  outline: none;
  transform: translate(-4px, -4px) rotate(-.8deg) scale(1.025);
  box-shadow: -10px 12px 0 var(--ink), 0 18px 28px rgba(25,28,31,.3);
}

.ai-chat-launcher-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #87d68e;
  box-shadow: 0 0 0 4px rgba(135,214,142,.13), 0 0 11px rgba(135,214,142,.8);
}

.ai-chat-launcher span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.ai-chat-launcher strong {
  font-size: 13px;
  letter-spacing: .11em;
}

.ai-chat-launcher small {
  overflow: hidden;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  letter-spacing: .12em;
  opacity: .7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat-launcher > i {
  font-style: normal;
  font-size: 17px;
}

.ai-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  cursor: zoom-out;
  background: rgba(24,26,27,.66);
  backdrop-filter: blur(4px) saturate(.72);
  animation: backdrop-in .3s ease both;
}

.ai-chat-backdrop[hidden],
.ai-chat-panel[hidden] {
  display: none;
}

.ai-chat-panel {
  position: fixed;
  top: 5vh;
  right: clamp(24px, 4.6vw, 72px);
  bottom: 5vh;
  z-index: 90;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  width: min(448px, calc(100vw - 48px));
  min-height: 560px;
  overflow: visible;
  color: var(--ink);
  background: var(--paper-light);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  filter: drop-shadow(-13px 16px 0 var(--red)) drop-shadow(-23px 27px 0 rgba(35,63,112,.72)) drop-shadow(0 28px 34px rgba(0,0,0,.38));
  transform-origin: 82% 48%;
  animation: ai-chat-unfold .54s cubic-bezier(.2,.8,.18,1) both;
}

.ai-chat-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 34px;
  height: 34px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.ai-chat-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 91px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 52px 17px 22px;
  color: var(--paper-light);
  background:
    linear-gradient(rgba(246,241,230,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,241,230,.06) 1px, transparent 1px),
    #172c53;
  background-size: 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.ai-chat-header span {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  letter-spacing: .16em;
  opacity: .64;
}

.ai-chat-header h2 {
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  letter-spacing: -.025em;
}

.ai-chat-header button {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--paper-light);
  cursor: pointer;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.55);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: .07em;
}

.ai-chat-header button:hover,
.ai-chat-header button:focus-visible {
  color: #172c53;
  background: var(--paper-light);
  outline: none;
}

.ai-chat-meta {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 20px;
  color: rgba(246,241,230,.76);
  background: var(--ink);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  letter-spacing: .08em;
}

.ai-chat-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-chat-meta i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86d890;
  box-shadow: 0 0 8px #86d890;
}

.ai-chat-meta span:last-child {
  text-align: right;
  opacity: .7;
}

.ai-chat-messages {
  display: flex;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 18px 12px;
  flex-direction: column;
  gap: 15px;
  background:
    radial-gradient(circle at 1px 1px, rgba(36,38,39,.07) 1px, transparent 1.2px) 0 0 / 13px 13px,
    var(--paper-light);
  scrollbar-color: rgba(35,63,112,.58) transparent;
  scrollbar-width: thin;
}

.ai-message {
  display: flex;
  max-width: 89%;
  flex-direction: column;
  gap: 7px;
  animation: ai-message-in .28s ease both;
}

.ai-message[data-role="user"] {
  align-self: flex-end;
  align-items: flex-end;
}

.ai-message[data-role="assistant"] {
  align-self: flex-start;
}

.ai-message-label {
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  letter-spacing: .12em;
  opacity: .56;
}

.ai-message-bubble {
  padding: 12px 13px;
  border: 1px solid rgba(36,38,39,.18);
  background: rgba(255,255,255,.74);
  box-shadow: 4px 5px 0 rgba(35,63,112,.1);
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.ai-message[data-role="user"] .ai-message-bubble {
  color: var(--paper-light);
  border-color: #92291f;
  background: #a62e22;
  box-shadow: -4px 5px 0 rgba(36,38,39,.16);
}

.ai-message-sources,
.ai-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-message-source {
  padding: 4px 7px;
  color: rgba(36,38,39,.68);
  border: 1px solid rgba(36,38,39,.2);
  background: rgba(255,255,255,.4);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  letter-spacing: .05em;
}

.ai-message-action {
  padding: 6px 8px;
  color: var(--blue);
  cursor: pointer;
  border: 1px solid rgba(35,63,112,.5);
  background: rgba(35,63,112,.055);
  font-size: 9px;
  transition: color .18s ease, background-color .18s ease;
}

.ai-message-action:hover,
.ai-message-action:focus-visible {
  color: var(--paper-light);
  background: var(--blue);
  outline: none;
}

.ai-message.is-loading .ai-message-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-message.is-loading .ai-message-bubble i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: ai-thinking .8s ease-in-out infinite alternate;
}

.ai-message.is-loading .ai-message-bubble i:nth-child(2) { animation-delay: -.26s; }
.ai-message.is-loading .ai-message-bubble i:nth-child(3) { animation-delay: -.52s; }

.ai-chat-suggestions {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  padding: 9px 18px 10px;
  background: #e9e3d8;
  border-top: 1px solid rgba(36,38,39,.12);
  scrollbar-width: none;
}

.ai-chat-suggestions::-webkit-scrollbar { display: none; }

.ai-chat-suggestions button {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid rgba(36,38,39,.32);
  background: transparent;
  font-size: 9px;
  white-space: nowrap;
}

.ai-chat-suggestions button:hover,
.ai-chat-suggestions button:focus-visible {
  color: var(--paper-light);
  background: var(--ink);
  outline: none;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 9px;
  padding: 12px 16px;
  background: var(--paper-light);
  border-top: 1px solid rgba(36,38,39,.18);
}

.ai-chat-form textarea {
  width: 100%;
  min-height: 42px;
  max-height: 108px;
  padding: 11px 12px;
  resize: none;
  color: var(--ink);
  border: 1px solid rgba(36,38,39,.35);
  border-radius: 0;
  outline: none;
  background: rgba(255,255,255,.62);
  font: inherit;
  font-size: 11px;
  line-height: 1.55;
}

.ai-chat-form textarea:focus {
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.ai-chat-form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: var(--paper-light);
  cursor: pointer;
  background: var(--red);
  border: 1px solid var(--red);
  font-size: 10px;
}

.ai-chat-form button:hover,
.ai-chat-form button:focus-visible {
  color: var(--red);
  background: transparent;
  outline: none;
}

.ai-chat-form button:disabled,
.ai-chat-form textarea:disabled {
  cursor: wait;
  opacity: .55;
}

.ai-chat-form button i {
  font-style: normal;
  font-size: 15px;
}

.ai-chat-footer {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  color: rgba(246,241,230,.62);
  background: var(--ink);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  letter-spacing: .06em;
}

.ai-chat-footer button {
  padding: 2px 0;
  color: rgba(246,241,230,.7);
  cursor: pointer;
  background: transparent;
  border-bottom: 1px solid rgba(246,241,230,.3);
  font-size: 7px;
}

.ai-chat-footer button:hover,
.ai-chat-footer button:focus-visible {
  color: var(--paper-light);
  outline: none;
}

@keyframes ai-chat-unfold {
  from { opacity: 0; transform: translate(18%, 4%) rotate(4deg) scale(.78); }
  58% { opacity: 1; transform: translate(-1%, -1%) rotate(-1.1deg) scale(1.015); }
  to { transform: translate(0, 0) rotate(0) scale(1); }
}

@keyframes ai-message-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ai-thinking {
  from { opacity: .35; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 720px) {
  .ai-chat-launcher {
    top: 76px;
    right: 18px;
    width: 142px;
    min-height: 44px;
    padding: 8px 20px 8px 10px;
  }

  .ai-chat-launcher small { display: none; }

  .ai-chat-panel {
    top: 14px;
    right: 12px;
    bottom: 14px;
    width: calc(100vw - 24px);
    min-height: 0;
    filter: drop-shadow(-7px 9px 0 var(--red)) drop-shadow(0 20px 30px rgba(0,0,0,.4));
  }

  .ai-chat-header {
    min-height: 78px;
    padding: 14px 48px 13px 16px;
  }

  .ai-chat-header h2 { font-size: 20px; }
  .ai-chat-header button { padding: 7px 8px; }
  .ai-chat-meta { padding-inline: 14px; }
  .ai-chat-meta span:last-child { display: none; }
  .ai-chat-messages { padding: 15px 13px 10px; }
  .ai-message { max-width: 94%; }
  .ai-chat-suggestions { padding-inline: 13px; }
  .ai-chat-form { grid-template-columns: minmax(0,1fr) 62px; padding: 10px 12px; }
  .ai-chat-footer { padding-inline: 12px; }
}

/* 清晰的标准聊天入口与窗口形态 */
.ai-chat-launcher {
  position: fixed;
  top: auto;
  right: clamp(24px, 3.4vw, 48px);
  bottom: clamp(24px, 3.4vw, 48px);
  z-index: 70;
  display: flex;
  width: auto;
  min-width: 166px;
  min-height: 56px;
  padding: 8px 15px 8px 9px;
  align-items: center;
  gap: 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: #17315d;
  clip-path: none;
  box-shadow: 0 12px 30px rgba(12,24,47,.36), 0 3px 0 #b62e1f;
}

.ai-chat-launcher::after { display: none; }

.ai-chat-launcher:hover,
.ai-chat-launcher:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 34px rgba(12,24,47,.42), 0 4px 0 #b62e1f;
}

.ai-chat-launcher-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: #17315d;
  background: #f4f0e8;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.ai-chat-launcher-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.ai-chat-launcher-copy strong {
  font-size: 13px;
  letter-spacing: .05em;
}

.ai-chat-launcher-copy small {
  font-size: 8px;
  letter-spacing: .03em;
  opacity: .72;
}

.ai-chat-launcher-status {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
}

.ai-chat-panel {
  top: auto;
  right: clamp(20px, 3.4vw, 48px);
  bottom: clamp(20px, 3.4vw, 48px);
  width: min(430px, calc(100vw - 40px));
  height: min(720px, calc(100vh - 40px));
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(23,49,93,.18);
  border-radius: 18px;
  background: #f8f5ee;
  clip-path: none;
  filter: none;
  box-shadow: 0 28px 70px rgba(8,18,34,.42), 0 4px 0 #b62e1f;
  transform-origin: 92% 100%;
}

.ai-chat-panel::before { display: none; }

.ai-chat-header {
  min-height: 82px;
  padding: 16px 18px 15px 20px;
  border-radius: 17px 17px 0 0;
  background: #17315d;
  background-image:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.08), transparent 26%),
    linear-gradient(120deg, transparent, rgba(255,255,255,.035));
}

.ai-chat-meta {
  color: #506074;
  background: #edf0f4;
  border-bottom: 1px solid rgba(23,49,93,.1);
}

.ai-chat-meta i {
  background: #32a852;
  box-shadow: 0 0 7px rgba(50,168,82,.7);
}

.ai-chat-messages {
  background: #f8f5ee;
}

.ai-message-bubble {
  border-radius: 4px 15px 15px 15px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23,49,93,.08);
}

.ai-message[data-role="user"] .ai-message-bubble {
  border-radius: 15px 4px 15px 15px;
  background: #17315d;
  border-color: #17315d;
  box-shadow: 0 5px 16px rgba(23,49,93,.15);
}

.ai-chat-suggestions {
  background: #f2eee5;
}

.ai-chat-form {
  background: #fff;
}

.ai-chat-form textarea {
  border-radius: 12px;
  background: #f7f8fa;
}

.ai-chat-form button {
  border-radius: 12px;
  background: #17315d;
  border-color: #17315d;
}

.ai-chat-form button:hover,
.ai-chat-form button:focus-visible {
  color: #17315d;
}

.ai-chat-footer {
  color: #7c8490;
  background: #f0f1f3;
}

.ai-chat-footer button { color: #5f6c7c; }

@media (max-width: 720px) {
  .ai-chat-launcher {
    top: auto;
    right: 18px;
    bottom: 18px;
    width: auto;
    min-width: 142px;
    min-height: 50px;
    padding: 6px 12px 6px 7px;
  }

  .ai-chat-launcher-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .ai-chat-launcher-copy small { display: none; }

  .ai-chat-panel {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    min-height: 0;
    border-radius: 14px;
  }
}
