body.home-shell {
  --home-ink: #2b2a29;
  --home-muted: #85817d;
  --home-line: #ecebea;
  --home-mint: #63cdbd;
  --home-pink: #de879b;
  margin: 0;
  background: #fff;
  color: var(--home-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.home-shell .skip { background: var(--home-ink); }
.home-shell button:disabled { cursor: not-allowed; }
.home-shell [hidden] { display: none !important; }
.home-main { min-height: calc(100vh - 150px); padding-bottom: 46px; overflow: hidden; }

.mini-header {
  height: 88px;
  padding: 0 max(5%, calc((100vw - 1380px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}
.mini-brand { display: inline-flex; align-items: center; }
.mini-brand img { width: clamp(174px, 18vw, 208px); height: auto; }
.mini-header-note { color: #77726e; text-align: right; font-size: 12px; line-height: 1.45; letter-spacing: .08em; }
.mini-header-note small { color: #a6a19d; font-size: 9px; letter-spacing: .15em; }

.portrait-strip { width: 100%; overflow: hidden; background: #f5f4f2; }
.portrait-track {
  --rail-card-width: clamp(245px, 28vw, 400px);
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  padding: 0 calc((100vw - var(--rail-card-width)) / 2);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100vw - var(--rail-card-width)) / 2);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.portrait-track::-webkit-scrollbar { display: none; }
.portrait-slide {
  display: block;
  flex: 0 0 var(--rail-card-width);
  width: var(--rail-card-width);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  scroll-snap-align: center;
  background: #ebe9e6;
}
.portrait-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }

.about-us { position: relative; padding: 52px 6% 34px; text-align: center; }
.about-kicker { color: #b1adaa; font: italic 12px/1.5 Georgia, "Times New Roman", serif; letter-spacing: .15em; }
.about-us h1 { margin: 4px 0 26px; font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: .08em; }
.about-frame {
  position: relative;
  z-index: 0;
  width: 132px;
  height: 90px;
  margin: 0 auto;
  border: 1px solid #85817d;
  padding: 3px;
  background: #fff;
}
.about-frame::before, .about-frame::after { position: absolute; z-index: -1; content: ""; border: 1px solid #aaa6a1; pointer-events: none; }
.about-frame::before { inset: -7px 11px; }
.about-frame::after { inset: 6px -8px; border-color: #d1ceca; }
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.about-copy { width: min(100%, 620px); margin: 28px auto 0; color: #56524f; text-align: left; font-size: 14px; line-height: 1.9; letter-spacing: .02em; }
.about-copy address { margin-top: 12px; color: var(--home-muted); font-size: 12px; line-height: 1.8; font-style: normal; }

.consult-actions {
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}
.pending-action {
  min-width: 112px;
  min-height: 46px;
  padding: 5px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d8d8d7;
  background: #fff;
  color: #55514e;
  font-size: 14px;
  letter-spacing: .03em;
}
.pending-action.primary { border-color: var(--home-mint); background: var(--home-mint); color: #fff; }
.pending-action small { font-size: 9px; letter-spacing: 0; white-space: nowrap; }
.consult-actions > p { flex-basis: 100%; margin-top: -4px; color: #a39e9a; font-size: 10px; line-height: 1.4; }

.portfolio { padding: 104px 0 12px; scroll-margin-top: 16px; }
.portfolio-heading { margin: 0 auto 38px; text-align: center; }
.portfolio-kicker { color: #b2aeaa; font: italic 12px/1.5 Georgia, "Times New Roman", serif; letter-spacing: .16em; }
.portfolio-heading h2 { margin-top: 4px; font-size: 22px; line-height: 1.45; font-weight: 500; letter-spacing: .1em; }
.work-filters {
  width: min(100%, 760px);
  min-height: 40px;
  margin: 0 auto 18px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.work-filters::-webkit-scrollbar { display: none; }
.work-filters button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 4px 10px;
  border: 0;
  background: transparent;
  color: #96918d;
  font-size: 14px;
  white-space: nowrap;
}
.work-filters button[aria-pressed="true"] { color: var(--home-ink); }
.work-filters button[aria-pressed="true"]::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--home-ink); content: ""; }
.works-carousel-controls { width: min(100%, 1200px); min-height: 34px; margin: 0 auto 12px; padding: 0 18px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: #a6a19d; }
.works-carousel-hint { margin-right: auto; font-size: 10px; letter-spacing: .04em; }
.works-carousel-controls button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #dedbd8; border-radius: 50%; background: #fff; color: #6e6965; font-size: 15px; line-height: 1; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.works-carousel-controls button:hover:not(:disabled) { border-color: var(--home-mint); background: var(--home-mint); color: #fff; }
.works-carousel-controls button:disabled { opacity: .4; cursor: default; }
.works-carousel-position { min-width: 44px; color: #96918d; text-align: center; font: 10px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .04em; }
.works-grid { display: flex; gap: 14px; padding: 0 max(22px, calc((100vw - 1200px) / 2)); overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(22px, calc((100vw - 1200px) / 2)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.works-grid::-webkit-scrollbar { display: none; }
.works-grid:focus-visible { outline: 2px solid var(--home-mint); outline-offset: -2px; }
.work-card { min-width: 0; }
.works-grid > .work-card { flex: 0 0 calc((100% - 42px) / 4); scroll-snap-align: start; }
.home-shell .work-card:nth-child(n) { grid-column: auto; justify-self: stretch; width: auto; margin: 0; padding-top: 0; }
.home-shell .work-card .image-button { position: relative; display: block; width: 100%; aspect-ratio: 1.48 / 1; overflow: hidden; background: #f1efed; }
.home-shell .work-card .image-button img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 34%; transition: transform .45s ease; }
.home-shell .work-card .image-button::after { position: absolute; right: 6px; bottom: 6px; width: 56px; height: 23px; background: url("assets/watermark.png") center / contain no-repeat; opacity: .72; content: ""; pointer-events: none; }
.home-shell .work-card .image-button:hover img { transform: scale(1.025); }
.home-shell .work-card .view-badge { right: 7px; bottom: 7px; left: auto; width: 27px; height: 27px; border-color: #ffffff88; background: #00000028; font-size: 15px; }
.home-shell .work-card .card-meta { padding-top: 10px; align-items: center; }
.home-shell .work-card .card-title { font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: .02em; font-weight: 500; }
.card-kind { margin-top: 3px; color: #9b9692; font-size: 11px; line-height: 1.45; }
.card-count { flex: 0 0 auto; color: #aaa5a1; font-size: 10px; }
.home-shell .work-card .card-description { margin-top: 5px; color: #8a8581; font-size: 11px; line-height: 1.55; }
.filter-empty { padding: 38px 18px; color: #8a8581; text-align: center; font-size: 13px; }
.home-shell noscript { display: block; padding: 28px; color: var(--home-muted); text-align: center; line-height: 1.8; }
.home-shell noscript a { text-decoration: underline; }

.floating-actions { position: absolute; z-index: 5; top: 158px; right: max(14px, calc((100vw - 1280px) / 2)); bottom: auto; display: flex; flex-direction: column; gap: 7px; }
.floating-item { width: 60px; text-align: center; }
.floating-pending { width: 56px; height: 56px; margin: 0 auto; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px #0000001a; color: #88827e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; line-height: 1.15; }
.floating-pending > span:first-child { font-size: 20px; line-height: 1; }
.floating-pending.contact { background: var(--home-mint); color: #fff; }
.floating-status { display: block; margin-top: 2px; color: #8d8884; font-size: 9px; line-height: 1.2; }

.home-footer { padding: 34px 6% 92px; border-top: 1px solid var(--home-line); color: #817c78; text-align: center; font-size: 11px; line-height: 1.7; }
.home-footer img { width: 160px; height: auto; margin: 0 auto 14px; }
.home-footer p { margin-bottom: 8px; color: var(--home-ink); letter-spacing: .05em; }
.home-footer address { font-style: normal; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(62px + env(safe-area-inset-bottom));
  padding: 5px 0 env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #eee;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 -2px 12px #00000008;
  backdrop-filter: blur(12px);
}
.bottom-nav a, .bottom-nav button { min-width: 0; padding: 2px 4px 3px; border: 0; background: transparent; color: #77726e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; line-height: 1.3; text-decoration: none; }
.bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav [aria-current="page"] { color: var(--home-pink); }
.bottom-nav [disabled] { opacity: .55; }

@media (max-width: 900px) {
  .works-grid { gap: 12px; }
  .works-grid > .work-card { flex-basis: calc((100% - 24px) / 3); }
}

@media (max-width: 700px) {
  .home-main { padding-bottom: 30px; }
  .mini-header { height: 84px; padding: 0 5%; }
  .mini-brand img { width: 178px; }
  .mini-header-note { display: none; }
  .portrait-track { --rail-card-width: min(44.3vw, 230px); }
  .about-us { padding: 52px 6% 28px; }
  .about-us h1 { margin-bottom: 24px; font-size: 21px; }
  .about-copy { margin-top: 27px; font-size: 13px; line-height: 1.85; }
  .about-copy address { font-size: 11px; }
  .consult-actions { gap: 10px; }
  .pending-action { min-width: 112px; min-height: 46px; padding: 5px 11px; font-size: 13px; }
  .portfolio { padding-top: 105px; }
  .portfolio-heading { margin-bottom: 32px; }
  .portfolio-heading h2 { font-size: 21px; }
  .work-filters { min-height: 36px; margin-bottom: 15px; padding: 0 10px; gap: 16px; }
  .work-filters button { padding: 0 3px 9px; font-size: 12px; }
  .works-carousel-controls { min-height: 32px; margin-bottom: 10px; padding: 0 14px; gap: 8px; }
  .works-carousel-hint { font-size: 9px; }
  .works-carousel-controls button { width: 27px; height: 27px; }
  .works-grid { gap: 10px; padding: 0 14px; scroll-padding-inline: 14px; }
  .works-grid > .work-card { flex-basis: min(72vw, 290px); }
  .home-shell .work-card .card-meta { padding-top: 8px; }
  .home-shell .work-card .card-title { font-size: 13px; }
  .card-kind { font-size: 10px; }
  .home-shell .work-card .card-description { font-size: 10px; }
  .home-shell .work-card .view-badge { width: 24px; height: 24px; }
  .home-shell .work-card .image-button::after { width: 44px; height: 18px; }
  .floating-actions { top: 158px; right: 12px; bottom: auto; gap: 7px; }
  .floating-item { width: 58px; }
  .floating-pending { width: 54px; height: 54px; font-size: 10px; }
  .home-footer { padding: 30px 6% 90px; }
  .bottom-nav { height: calc(58px + env(safe-area-inset-bottom)); padding-top: 3px; }
  .bottom-nav a, .bottom-nav button { gap: 1px; font-size: 10px; }
  .bottom-nav svg { width: 21px; height: 21px; }
}

.comparison-pair-trigger {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}
.comparison-pane {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f0efed;
}
.comparison-pane img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s ease;
}
.comparison-pair-trigger:hover img { transform: scale(1.025); }
.comparison-pair-trigger:focus-visible { outline-offset: 4px; }
.comparison-label {
  position: absolute;
  z-index: 1;
  left: 7px;
  bottom: 7px;
  padding: 3px 7px;
  background: rgb(255 255 255 / 90%);
  color: var(--home-ink);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
}
.comparison-pane.is-final::after,
.gallery-case-image.is-final::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 54px;
  height: 22px;
  background: url("assets/watermark.png") center / contain no-repeat;
  opacity: .72;
  content: "";
  pointer-events: none;
}
.comparison-card .card-description { min-height: 2.8em; }
.gallery-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gallery-case-compare-toggle {
  border: 1px solid #777064;
  background: transparent;
  color: var(--paper);
  padding: 9px 14px;
  font-size: 12px;
  white-space: nowrap;
}
.gallery-case-compare-toggle:hover { background: #ece5d7; color: #151513; }
.gallery-comparison { max-width: 1120px; margin: 20px auto 0; }
.gallery-comparison-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery-comparison-pair figure { min-width: 0; margin: 0; }
.gallery-case-image {
  position: relative;
  height: min(calc(100dvh - 250px), 720px);
  min-height: 220px;
  overflow: hidden;
  background: #f0efed;
}
.gallery-case-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-comparison-pair figcaption { padding-top: 8px; color: #c1b9ab; font-size: 12px; letter-spacing: .04em; }
.gallery-comparison > p { margin-top: 14px; color: #a9a296; font-size: 12px; line-height: 1.6; }
#gallery .gallery-thumbs { overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: thin; }
#gallery .gallery-thumbs button { flex: none; }

@media (max-width: 700px) {
  .comparison-card .card-description { min-height: 0; }
  .comparison-label { left: 4px; bottom: 4px; padding: 2px 5px; font-size: 9px; }
  .comparison-pane.is-final::after { right: 3px; bottom: 3px; width: 38px; height: 17px; }
  .gallery-header-actions { gap: 7px; }
  .gallery-case-compare-toggle { padding: 7px 9px; font-size: 11px; }
  .gallery-comparison { margin-top: 10px; }
  .gallery-comparison-pair { gap: 7px; }
  .gallery-case-image { height: min(calc(100dvh - 190px), 520px); min-height: 180px; }
  .gallery-case-image.is-final::after { right: 3px; bottom: 3px; width: 38px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-track { scroll-behavior: auto; }
  .works-grid { scroll-behavior: auto; scroll-snap-type: x proximity; }
  .home-shell .work-card .image-button img { transition: none; }
  .works-carousel-controls button { transition: none; }
}

.case-comparison-display { max-width: 1000px; margin: 34px auto 70px; }
.case-composite { margin: 0; text-align: center; }
.case-composite img { width: auto; max-width: 100%; max-height: min(78vh, 1000px); margin: 0 auto; object-fit: contain; }
.case-composite figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.case-album-title { margin: 0 0 32px; font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-weight: 400; letter-spacing: .06em; }
@media (max-width: 700px) {
  .case-comparison-display { margin: 24px auto 46px; }
  .case-composite img { max-height: 70vh; }
  .case-album-title { margin-bottom: 22px; }
}
