:root {
  color-scheme: light;
  --paper: #f2f3f4;
  --ink: #1f211f;
  --muted: #66635d;
  --soft: rgba(31, 33, 31, 0.56);
  --line: rgba(31, 33, 31, 0.16);
  --line-strong: rgba(31, 33, 31, 0.28);
  --ui-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --nav-space: 116px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ui-font);
  overflow-x: hidden;
}

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

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

.scheme-detail-page,
.scheme-hero,
.scheme-plan-scene,
.scheme-logic,
.scheme-image-text,
.scheme-gallery,
.scheme-closing {
  background: var(--paper);
}

.scheme-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(34px, 5.6vw, 96px);
  align-items: stretch;
  min-height: 100vh;
  padding: calc(var(--nav-space) + 34px) clamp(22px, 5.8vw, 112px) clamp(48px, 7vw, 104px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  padding-bottom: clamp(12px, 5vh, 62px);
}

.scheme-kicker,
.gallery-kicker,
.detail-label {
  display: block;
  color: rgba(31, 33, 31, 0.5);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.24em;
  line-height: 1.35;
  text-transform: uppercase;
}

.scheme-kicker {
  margin: 0 0 28px;
}

.hero-copy h1 {
  max-width: 540px;
  margin: 0 0 clamp(28px, 4.3vw, 52px);
  font-family: var(--serif);
  font-size: clamp(48px, 6.4vw, 104px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-copy h1 small {
  display: block;
  margin-top: 16px;
  font-family: var(--ui-font);
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 300;
  line-height: 1.22;
}

.hero-line {
  max-width: 410px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(15px, 1.05vw, 18px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
}

.hero-copy-body,
.section-copy p,
.logic-point p,
.gallery-copy p,
.closing-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 0.98vw, 16px);
  line-height: 2.05;
}

.discover-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 14px;
  margin-top: clamp(34px, 5vw, 58px);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: rgba(31, 33, 31, 0.78);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.discover-link::before {
  content: "↓";
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1;
}

.hero-media {
  align-self: end;
  height: min(76vh, 760px);
  min-height: 520px;
  margin: 0;
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.image-caption {
  margin-top: 14px;
  color: rgba(31, 33, 31, 0.48);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.scheme-plan-scene {
  display: grid;
  min-height: 100vh;
  padding: clamp(56px, 7vw, 96px) clamp(22px, 5.8vw, 112px);
  place-items: center;
}

.wide-plan {
  width: min(100%, 1320px);
  margin: 0;
  overflow: hidden;
}

.wide-plan img {
  max-height: 82vh;
  margin: 0 auto;
  object-fit: cover;
}

.wide-plan figcaption {
  max-width: 920px;
  margin: clamp(24px, 3vw, 38px) auto 0;
  color: rgba(31, 33, 31, 0.62);
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 30px);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.scheme-logic {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  min-height: 100vh;
  padding: clamp(74px, 11vw, 150px) clamp(22px, 6vw, 118px);
}

.section-copy {
  max-width: 620px;
}

.section-copy h2,
.gallery-copy h2,
.closing-copy h2 {
  margin: 0 0 clamp(28px, 4.8vw, 58px);
  font-family: var(--serif);
  font-size: clamp(42px, 6.2vw, 96px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

.section-copy .scheme-kicker,
.gallery-copy .gallery-kicker {
  margin-bottom: 22px;
}

.logic-points {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
}

.logic-point {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.logic-point h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.logic-point .detail-label {
  margin-bottom: 16px;
}

.scheme-image-text {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(70px, 9vw, 132px) clamp(22px, 6vw, 118px);
}

.scheme-image-text figure {
  margin: 0;
  overflow: hidden;
}

.scheme-image-text img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scheme-image-text .section-copy {
  justify-self: end;
}

.scheme-gallery {
  min-height: 100vh;
  padding: clamp(76px, 10vw, 144px) clamp(22px, 6vw, 118px);
}

.gallery-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 92px);
}

.gallery-copy h2 {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(260px, 0.64fr);
  gap: clamp(18px, 2.8vw, 42px);
  align-items: start;
}

.gallery-main,
.gallery-side figure {
  margin: 0;
  overflow: hidden;
}

.gallery-main img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-side {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
}

.gallery-side img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scheme-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(34px, 7vw, 112px);
  align-items: end;
  min-height: 100vh;
  padding: clamp(76px, 10vw, 144px) clamp(22px, 6vw, 118px) clamp(60px, 8vw, 118px);
}

.closing-copy {
  max-width: 680px;
}

.closing-image {
  margin: 0;
  overflow: hidden;
}

.closing-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 980px) {
  :root {
    --nav-space: 96px;
  }

  .scheme-hero,
  .scheme-logic,
  .scheme-image-text,
  .gallery-copy,
  .gallery-grid,
  .scheme-closing {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
    padding-bottom: 0;
  }

  .hero-media {
    height: auto;
    min-height: 0;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .scheme-image-text .section-copy {
    justify-self: start;
  }

  .scheme-image-text figure,
  .closing-image {
    width: min(78vw, 560px);
  }
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  :root {
    --nav-space: 76px;
  }

  .scheme-hero {
    padding: calc(var(--nav-space) + 30px) 18px 52px;
  }

  .scheme-plan-scene,
  .scheme-logic,
  .scheme-image-text,
  .scheme-gallery,
  .scheme-closing {
    padding: 58px 18px;
  }

  .hero-copy h1,
  .section-copy h2,
  .gallery-copy h2,
  .closing-copy h2 {
    font-size: clamp(42px, 13vw, 68px);
    line-height: 1.05;
  }

  .hero-copy h1 small {
    font-size: 22px;
  }

  .scheme-kicker {
    margin-bottom: 20px;
  }

  .image-caption {
    text-align: left;
    white-space: normal;
  }

  .wide-plan img,
  .gallery-main img,
  .gallery-side img,
  .scheme-image-text img,
  .closing-image img {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  .hero-media img,
  .wide-plan img,
  .gallery-main img,
  .gallery-side img,
  .scheme-image-text img,
  .closing-image img {
    transform: scale(1.14);
    transform-origin: center;
  }

  .wide-plan figcaption {
    text-align: left;
  }

  .scheme-image-text figure,
  .closing-image {
    width: 100%;
  }
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.scheme-detail-page {
  --nav-height: 128px;
  --content-offset: 66px;
  --white: #ffffff;
  overflow-x: visible;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(320px, 32vw) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  height: 100vh;
  padding-top: var(--content-offset);
  background: var(--paper);
  color: var(--ink);
}

.project-intro {
  display: flex;
  height: calc(100vh - var(--content-offset));
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(34px, 6vh, 74px) clamp(42px, 6vw, 104px) 42px clamp(42px, 9vw, 118px);
}

.project-kicker {
  margin: 0 0 clamp(28px, 4.8vh, 58px);
  color: rgba(31, 33, 31, 0.48);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.24em;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-title {
  max-width: 560px;
  margin: 0 0 clamp(28px, 4.3vw, 52px);
  font-family: var(--serif);
  font-size: clamp(52px, 5.8vw, 108px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

.project-title small {
  display: block;
  margin-top: 18px;
  font-family: var(--ui-font);
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 300;
  line-height: 1.22;
}

.intro-line {
  max-width: 430px;
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(15px, 1.05vw, 18px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
}

.intro-copy {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 0.98vw, 16px);
  line-height: 2.05;
}

.discover-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 14px;
  min-width: 176px;
  margin-top: clamp(34px, 5vw, 58px);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: rgba(31, 33, 31, 0.78);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.discover-link::before {
  content: "↓";
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1;
}

.hero-media {
  height: calc(100vh - var(--content-offset));
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}

.caption-scene {
  --caption-top-space: 42px;
  --caption-bottom-space: 118px;
  --caption-text-height: 36px;
  display: grid;
  grid-template-rows:
    minmax(0, calc(100vh - var(--caption-top-space) - var(--caption-bottom-space) - var(--caption-text-height)))
    var(--caption-bottom-space)
    var(--caption-text-height);
  height: 100vh;
  padding-top: var(--caption-top-space);
  background: var(--paper);
}

.caption-scene img {
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption-line {
  display: grid;
  grid-row: 3;
  align-items: center;
  justify-items: center;
  min-height: var(--caption-text-height);
  padding: 0 24px;
  color: rgba(31, 33, 31, 0.58);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 32px);
  font-style: italic;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.caption-line p {
  max-width: 1120px;
  margin: 0;
}

.caption-line .caption-en {
  display: block;
  margin-top: 8px;
  font-size: 0.44em;
  font-style: normal;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.case-sticky-scroll {
  --frame-y: clamp(64px, 11vh, 126px);
  --frame-x: clamp(64px, 5vw, 120px);
  --canvas-pad-top: 50px;
  --canvas-pad-left: 50px;
  --canvas-pad-right: 50px;
  --canvas-pad-bottom: 50px;
  position: relative;
  min-height: calc(330vh + var(--canvas-pad-top));
  padding: var(--frame-y) var(--frame-x);
  background: var(--paper);
}

.case-sticky-frame {
  position: sticky;
  top: calc(var(--canvas-pad-top) * -1);
  height: calc(100vh + var(--canvas-pad-top));
  min-height: 0;
}

.case-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(34px, 5.2vw, 92px);
  width: 100%;
  height: 100%;
  padding: var(--canvas-pad-top) var(--canvas-pad-right) var(--canvas-pad-bottom) var(--canvas-pad-left);
  background: #ffffff;
  overflow: hidden;
}

.case-story-viewport {
  height: calc(100% + var(--canvas-pad-bottom));
  overflow: hidden;
}

.case-story-strip {
  display: grid;
  gap: clamp(42px, 7vh, 76px);
  transform: translate3d(0, calc(var(--story-shift, 0) * -1px), 0);
  will-change: transform;
}

.case-story-image {
  width: 100%;
  height: calc(100vh - (var(--frame-y) * 2) - var(--canvas-pad-top));
  min-height: 0;
  object-fit: cover;
}

.case-sticky-copy {
  display: flex;
  justify-self: end;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 0 clamp(22px, 3vh, 42px);
}

.case-copy-main {
  max-width: 520px;
}

.case-copy-kicker {
  margin: 0 0 clamp(26px, 4.4vh, 48px);
  font-family: var(--serif);
  font-size: clamp(14px, 1.08vw, 20px);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.32;
  text-transform: uppercase;
}

.case-copy-title {
  margin: 0 0 clamp(28px, 4vh, 44px);
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 86px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.case-copy-title small {
  display: block;
  margin-top: 18px;
  font-family: var(--ui-font);
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 300;
  line-height: 1.2;
}

.case-copy-body {
  max-width: 460px;
  margin: 0;
  color: #6a655f;
  font-size: clamp(14px, 0.96vw, 16px);
  line-height: 2.02;
}

.case-project-meta {
  max-width: 460px;
  margin: 0;
  opacity: var(--meta-opacity, 0);
  transform: translateY(calc((1 - var(--meta-opacity, 0)) * 18px));
  transition: opacity 0.2s linear, transform 0.2s linear;
}

.case-project-meta div {
  margin-top: 15px;
}

.case-project-meta dt {
  display: inline;
  margin-right: 8px;
  font-family: var(--serif);
  font-size: clamp(14px, 0.95vw, 18px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.case-project-meta dd {
  display: inline;
  margin: 0;
  color: #2b2a27;
  font-family: var(--serif);
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.5;
}

.case-project-meta .meta-services dd {
  display: block;
  margin-top: 9px;
  line-height: 1.7;
}

.closing-gallery {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--content-offset) 0 0;
  background: var(--paper);
}

.carousel-track {
  position: relative;
  width: 100vw;
  height: calc(100vh - var(--content-offset));
  overflow: hidden;
  cursor: grab;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  user-select: none;
}

.carousel-track.is-dragging {
  cursor: grabbing;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.carousel-track img.is-active {
  z-index: 3;
  opacity: 1;
}

.film-strip-track {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.film-strip-track > img {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  flex: 0 0 100%;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 1 !important;
  transform: none !important;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 34px;
  border: 0;
  background: transparent;
  color: rgba(236, 234, 226, 0.92);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-arrow:focus {
  outline: none;
}

.carousel-arrow.prev {
  left: clamp(18px, 4vw, 72px);
}

.carousel-arrow.next {
  right: clamp(18px, 4vw, 72px);
}

.carousel-count {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 6;
  color: rgba(236, 234, 226, 0.9);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  transform: translateX(-50%);
}

@media (max-width: 860px) {
  .scheme-detail-page {
    --nav-height: 88px;
    --content-offset: 58px;
  }

  .project-hero {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding-top: var(--content-offset);
  }

  .project-intro {
    height: auto;
    padding: 44px 42px 38px;
  }

  .project-kicker {
    margin-bottom: 24px;
  }

  .project-title {
    font-size: clamp(42px, 13vw, 68px);
    line-height: 1.05;
  }

  .project-title small {
    font-size: 22px;
  }

  .hero-media {
    height: auto;
    min-height: 0;
    padding: 0 18px 38px;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .caption-scene {
    display: block;
    height: auto;
    padding: var(--content-offset) 18px 44px;
  }

  .caption-scene img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .caption-line {
    min-height: 0;
    margin-top: 26px;
    padding: 0 4px;
    font-size: clamp(18px, 5vw, 30px);
    line-height: 1.25;
    white-space: normal;
  }

  .case-sticky-scroll {
    min-height: auto;
    padding: 18px;
  }

  .case-sticky-frame {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }

  .case-canvas {
    display: block;
    height: auto;
    padding: 30px 18px 34px;
  }

  .case-sticky-copy {
    display: block;
    padding: 0 0 28px;
  }

  .case-copy-kicker {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .case-copy-title {
    margin-bottom: 22px;
    font-size: clamp(42px, 13vw, 64px);
    line-height: 1.05;
  }

  .case-copy-title small {
    margin-top: 10px;
    font-size: 22px;
  }

  .case-copy-body {
    font-size: 14px;
    line-height: 1.9;
  }

  .case-project-meta {
    margin-top: 26px;
    opacity: 1;
    transform: none;
  }

  .case-project-meta div {
    margin-top: 12px;
  }

  .case-story-viewport {
    height: auto;
    overflow: visible;
  }

  .case-story-strip {
    gap: 22px;
    transform: none !important;
  }

  .case-story-image {
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
  }

  .closing-gallery {
    min-height: 100svh;
    padding: var(--content-offset) 0 0;
  }

  .carousel-track {
    width: 100%;
    height: calc(100svh - var(--content-offset));
    background: var(--paper);
  }

  .carousel-track img,
  .film-strip-track > img {
    object-fit: contain;
    object-position: center;
  }

  .carousel-arrow {
    top: calc(var(--content-offset) + ((100svh - var(--content-offset)) / 2));
    width: 40px;
    height: 40px;
    color: rgba(31, 33, 31, 0.86);
    background: rgba(242, 243, 244, 0.58);
    border: 1px solid rgba(31, 33, 31, 0.12);
    border-radius: 999px;
    font-size: 28px;
    text-shadow: none;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
  }

  .carousel-count {
    bottom: 24px;
    padding: 7px 10px;
    background: rgba(242, 243, 244, 0.62);
    border: 1px solid rgba(31, 33, 31, 0.1);
    border-radius: 999px;
    color: rgba(31, 33, 31, 0.66);
    backdrop-filter: blur(10px);
  }

  .carousel-arrow.prev {
    left: 14px;
  }

  .carousel-arrow.next {
    right: 14px;
  }
}
