/* The smaller case tiles keep their existing grid cells and viewport-based heights. */
.scene-version #projects .brand-card--tochka { --case-photo: url("brands/tochka-studio.jpg"); --case-crop: 62% 40%; }
.scene-version #projects .brand-card--shoko { --case-photo: url("brands/shoko-coffee.jpg"); --case-crop: 48% 60%; }
.scene-version #projects .brand-card--12storeez { --case-photo: url("brands/12storeez-fitting.jpg"); --case-crop: 60% 38%; }
.scene-version #projects .brand-card:not(.brand-card--featured)::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 41%; z-index: -1;
  background: var(--case-photo) var(--case-crop) / cover no-repeat;
  border-radius: 65% 0 0 65% / 95% 0 0 95%; filter: saturate(.62) contrast(.92);
}
.scene-version #projects .brand-card:not(.brand-card--featured) :is(.brand-name,.brand-visual) {
  width: 64%; padding-inline: 8px;
}
.scene-version #projects .brand-card:not(.brand-card--featured) .brand-logo { max-width: 94%; object-fit: contain; }
.scene-version #projects .brand-card--shoko .brand-name { font-size: clamp(18px, 2.18vw, 34px); }

.scene-version #result, .scene-version #articles { padding-inline: clamp(16px, 2.5vw, 44px); }
.finale-sheet {
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; max-width: 1536px; min-height: min(790px, calc(100svh - 112px));
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) clamp(188px, 22vw, 345px);
  padding: clamp(30px, 6vh, 80px) 0 clamp(30px, 6vh, 80px) clamp(20px, 4vw, 72px);
  border-radius: clamp(22px, 2.5vw, 40px); color: var(--forest); background: #eff0e9;
}
.finale-sheet::before, .finale-sheet::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.finale-sheet::before {
  background: url("result-light.jpg") 50% 56% / cover no-repeat;
  filter: saturate(.49); opacity: .79;
}
.finale-sheet::after {
  background: linear-gradient(102deg, rgb(247 246 238 / .9) 0%, rgb(247 246 238 / .82) 30%, rgb(247 246 238 / .36) 68%, rgb(247 246 238 / .08) 100%);
}
.finale-copy { width: min(100%, 800px); justify-self: center; text-align: center; padding: 0 clamp(10px, 2vw, 36px); }
.scene-version #result .finale-copy h2 {
  margin: 0 auto; width: 100%; max-width: 17ch; color: var(--forest);
  font-size: clamp(43px, 5.7vw, 89px); line-height: 1.02; letter-spacing: -.055em;
}
.scene-version #result .finale-copy h2 em, .journal-cover h2 em { font-family: var(--font-accent); font-weight: 400; }
.scene-version #result .finale-question {
  margin: clamp(16px, 2.3vh, 26px) auto 0; max-width: 46ch;
  color: #344437; font-size: clamp(17px, 1.55vw, 23px); line-height: 1.36; text-wrap: balance;
}
.inquiry { margin: clamp(25px, 5vh, 58px) auto 0; width: min(100%, 610px); display: grid; gap: 12px; }
.inquiry-fields { display: grid; grid-template-columns: .86fr 1.14fr; gap: 10px; }
.inquiry-fields label { display: block; min-width: 0; }
.inquiry-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.inquiry input, .inquiry-submit { font: inherit; color: var(--forest); width: 100%; appearance: none; border: 0; border-radius: 18px; }
.inquiry input {
  background: rgb(255 255 251 / .96); height: clamp(50px, 7vh, 64px); padding: 0 17px; font-size: clamp(14px, 1.15vw, 17px);
}
.inquiry input::placeholder { color: #686f65; opacity: 1; }
.inquiry input:focus-visible, .inquiry-submit:focus-visible, .journal-peek:focus-visible, .journal-contents a:focus-visible {
  outline: 3px solid #667b63; outline-offset: 3px;
}
.inquiry-submit {
  background: var(--lime); min-height: clamp(61px, 9vh, 85px);
  font-size: clamp(23px, 2.25vw, 35px); letter-spacing: -.035em; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer;
  transition: background-color .25s ease;
}
.inquiry-submit:hover { background: #cee783; }
.inquiry-submit:disabled { cursor: default; }
.scene-version #result .inquiry-status {
  margin: 0; min-height: 2.4em; color: #475345; font-size: 13px; line-height: 1.25; text-align: center;
}
.journal-peek {
  justify-self: end; width: 100%; display: grid; gap: 12px; color: var(--forest); text-decoration: none;
  align-self: end; margin-bottom: clamp(8px, 2vh, 24px); text-align: center; border-radius: 20px;
}
.journal-peek img {
  width: 100%; height: clamp(115px, 21vh, 210px); object-fit: cover; object-position: 45% 50%;
  border-radius: 110px 0 0 110px; filter: saturate(.5) contrast(.88); transition: transform .6s ease; transform-origin: right;
}
.journal-peek:hover img { transform: scale(1.025); }
.journal-peek span { font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; }

.journal-layout {
  width: min(100%, 1280px); display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
  align-items: stretch; gap: clamp(20px, 4vw, 68px);
}
.journal-cover { position: relative; min-height: 30vh; border-radius: 28px; overflow: hidden; isolation: isolate; background: #3a4035; }
.journal-cover img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.journal-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 32%,rgb(19 29 20 / .78)); }
.scene-version #articles h2 {
  position: absolute; bottom: clamp(20px, 3.5vw, 48px); left: clamp(20px, 3.5vw, 48px); right: 14px;
  width: auto; margin: 0; text-align: left; color: var(--bone); font-size: clamp(42px, 4.5vw, 76px);
  letter-spacing: -.05em; line-height: 1.04;
}
.journal-contents { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.journal-contents a {
  height: 100%; min-height: clamp(56px, 9vh, 94px); display: flex; gap: 16px;
  align-items: center; justify-content: space-between; padding: 13px clamp(16px,2vw,32px);
  border-radius: 18px; background: var(--mist); color: var(--forest); text-align: left; text-decoration: none;
  font-size: clamp(19px, 2vw, 31px); letter-spacing: -.03em; line-height: 1.15; transition: background-color .3s ease;
}
.journal-contents a:hover { background: #e6eadb; }
.journal-contents em { font-family: var(--font-accent); }

@media (max-width:700px) {
  .scene-version #projects .brand-card:not(.brand-card--featured)::before {
    inset: 0 0 auto; width: 100%; height: 39%;
    border-radius: 0 0 58% 18% / 0 0 30% 12%;
  }
  .scene-version #projects .brand-card:not(.brand-card--featured) .brand-visual {
    inset: auto 0 24px; width: 100%; height: 36%; padding: 4px 8px;
  }
  .scene-version #projects .brand-card:not(.brand-card--featured) .brand-logo { max-width: 100%; max-height: 100%; }
  .scene-version #projects .brand-card:not(.brand-card--featured) .brand-name {
    inset: auto 0 8px; width: 100%; font-size: clamp(11px, 3.2vw, 15px); padding: 0 2px;
  }
  .scene-version #projects .brand-card--shoko::before { background-position: 50% 59%; }
  .scene-version #projects .brand-card--12storeez::before { background-position: 50% 30%; }
  .scene-version #result, .scene-version #articles { padding-inline: 12px; }
  .finale-sheet {
    min-height: min(755px, calc(100svh - var(--header-height) - 44px)); grid-template-columns: 1fr;
    align-content: center; gap: clamp(4px,2.4vh,20px); padding: clamp(14px,3vh,28px) 0;
  }
  .finale-copy { padding: 0 clamp(14px,5vw,30px); }
  .finale-sheet::before { background-position: 61% center; }
  .finale-sheet::after { background: linear-gradient(110deg,rgb(250 249 242 / .88),rgb(250 249 242 / .66) 62%,rgb(250 249 242 / .30)); }
  .scene-version #result .finale-copy h2 { font-size: clamp(35px, 9.3vw, 55px); }
  .scene-version #result .finale-question { margin-top: 14px; font-size: clamp(15px, 4.2vw, 19px); }
  .inquiry { margin-top: clamp(16px,3.3vh,32px); gap: 8px; }
  .inquiry-fields { grid-template-columns: 1fr; gap: 8px; }
  .inquiry input { height: clamp(44px,5.9vh,54px); font-size: 16px; }
  .inquiry-submit { min-height: clamp(50px,7vh,64px); font-size: 25px; }
  .scene-version #result .inquiry-status { font-size: 12px; }
  .journal-peek { width: min(65%,250px); display: flex; flex-direction: row-reverse; align-items: center; gap: 9px; margin: 0; }
  .journal-peek img { width: 40%; height: clamp(44px,8vh,72px); }
  .journal-peek span { font-size: 14px; line-height: 1.2; text-align: right; }
  .journal-layout { grid-template-columns: 1fr; gap: 13px; max-width: 510px; }
  .journal-cover { height: clamp(86px,20vh,188px); min-height: 0; border-radius: 20px; }
  .scene-version #articles h2 { bottom: 14px; left: 20px; font-size: clamp(34px,9vw,52px); }
  .journal-contents { gap: 6px; }
  .journal-contents a { min-height: clamp(48px,7.5vh,66px); padding: 9px 15px; font-size: clamp(17px,4.6vw,22px); border-radius: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .journal-peek:hover img { transform: none; }
}
@media (max-width:700px) and (max-height:650px) {
  .finale-sheet { min-height: 0; gap: 6px; padding-block: 12px; }
  .scene-version #result .finale-copy h2 { font-size: clamp(32px, 8.8vw, 41px); }
  .scene-version #result .finale-question { margin-top: 9px; }
  .inquiry { margin-top: 12px; gap: 6px; }
  .scene-version #result .inquiry-status { min-height: 1.5em; }
}
@media (max-width:700px) {
  .journal-peek { width: min(75%, 265px); }
  .journal-peek span { text-wrap: balance; }
}
