:root {
  --paper: #d9e0d9;
  --surface: #f1f1e9;
  --ink: #17291f;
  --muted: #536159;
  --sage: #244a37;
  --line: #a7b2a8;
  --focus: #0b5fb8;
  --radius: 4px;
  --max: 1500px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
  line-height: 1.5;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(245px, .245fr) minmax(0, .755fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "copy comparison" "note comparison";
  gap: 20px clamp(18px, 2.6vw, 42px);
  padding: 16px 0 22px;
}
.hero-copy {
  grid-area: copy;
  align-self: end;
  padding: 0 0 clamp(20px, 5vh, 52px) clamp(10px, 2vw, 34px);
  animation: opening-copy 760ms var(--ease) both;
}
.hero h1 {
  max-width: 11ch;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(3rem, 4.6vw, 5rem);
  font-weight: 560;
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-copy p {
  max-width: 24ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  text-wrap: pretty;
}

.compare-slider {
  --split: 50;
  grid-area: comparison;
  position: relative;
  min-width: 0;
  min-height: calc(100dvh - 38px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  isolation: isolate;
  cursor: ew-resize;
  box-shadow: 0 34px 90px rgba(26, 47, 35, .17);
  animation: opening-comparison 920ms var(--ease) both;
}
.compare-slider > img,
.compare-before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-before {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: calc(var(--split) * 1%);
  overflow: hidden;
}
.compare-before img {
  width: var(--compare-width);
  max-width: none;
  object-position: left center;
}
.compare-divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: calc(var(--split) * 1%);
  width: 2px;
  transform: translateX(-1px);
  background: rgba(247, 247, 241, .96);
  pointer-events: none;
}
.compare-handle {
  position: absolute;
  z-index: 6;
  left: calc(var(--split) * 1%);
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(247, 247, 241, .95);
  border-radius: 50%;
  background: var(--sage);
  color: #f8faf5;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(24, 44, 33, .28);
  pointer-events: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}
.compare-label {
  position: absolute;
  z-index: 5;
  top: 14px;
  padding: 8px 10px;
  background: rgba(247, 247, 241, .94);
  color: var(--ink);
  font-size: .62rem;
  font-weight: 760;
  letter-spacing: .065em;
  line-height: 1.25;
  pointer-events: none;
}
.label-original { left: 14px; }
.label-staged { right: 14px; }
.compare-range {
  position: absolute;
  z-index: 7;
  inset: 0 -27px;
  width: calc(100% + 54px);
  height: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}
.compare-range::-webkit-slider-runnable-track { height: 100%; border: 0; background: transparent; }
.compare-range::-moz-range-track { height: 100%; border: 0; background: transparent; }
.compare-range::-webkit-slider-thumb {
  width: 54px;
  height: 54px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}
.compare-range::-moz-range-thumb { width: 54px; height: 54px; border: 0; background: transparent; cursor: ew-resize; }
.compare-range:focus { outline: 0; }
.compare-range:focus-visible ~ .compare-handle {
  outline: 4px solid var(--focus);
  outline-offset: 5px;
  box-shadow: 0 0 0 9px rgba(247, 247, 241, .86), 0 12px 28px rgba(24, 44, 33, .3);
}
.compare-range:active ~ .compare-handle {
  transform: translate(-50%, -50%) scale(.94);
  background: #183d2b;
  box-shadow: 0 7px 18px rgba(24, 44, 33, .32);
}
.demo-disclosure {
  grid-area: note;
  align-self: end;
  max-width: 35ch;
  margin: 0 0 4px clamp(10px, 2vw, 34px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #425249;
  font-size: .82rem;
  line-height: 1.5;
  text-wrap: pretty;
  animation: opening-note 900ms var(--ease) both;
}
.demo-disclosure strong { color: var(--ink); font-weight: 680; }

@keyframes opening-copy {
  from { opacity: .45; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes opening-comparison {
  from { opacity: .62; transform: translateY(10px) scale(.994); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes opening-note {
  0%, 28% { opacity: .35; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.gallery,
.plans { padding: clamp(90px, 11vw, 170px) 0; }
.gallery { padding-top: clamp(120px, 14vw, 210px); }
.section-head {
  display: grid;
  gap: 12px;
  width: min(720px, calc(100% - clamp(56px, 22vw, 340px)));
  margin: 0 auto clamp(38px, 6vw, 72px) clamp(28px, 11vw, 170px);
}
h2 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(2.45rem, 4.4vw, 4.75rem);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-head p { max-width: 55ch; color: var(--muted); text-wrap: pretty; }
.gallery-instruction { display: block; margin-top: 7px; color: #425249; font-size: .9em; }
.pairs { display: block; }
.pair-card { width: 96%; min-width: 0; margin: 0 0 clamp(110px, 15vw, 220px); }
.pair-card:nth-child(even) { width: 88%; margin-left: auto; }
.pair-card:nth-child(3) { width: 100%; }
.pair-card:nth-child(5) { width: 90%; margin-inline: auto; }
.pair-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  overflow: hidden;
  background: var(--surface);
}
.pair-shot { position: relative; min-width: 0; overflow: hidden; }
.enlarge-trigger {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}
.pair-shot img {
  width: 100%;
  aspect-ratio: 1.72 / 1;
  object-fit: cover;
  transition: transform 500ms var(--ease), filter 300ms var(--ease);
}
.state-label {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 9px;
  background: rgba(247, 247, 241, .94);
  color: var(--ink);
  font-size: .64rem;
  font-weight: 760;
  letter-spacing: .065em;
  line-height: 1.25;
  pointer-events: none;
}
.enlarge-trigger:focus-visible { outline: 4px solid var(--focus); outline-offset: -5px; }
.enlarge-trigger:active img { transform: scale(.992); filter: saturate(.96); }
.pair-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1260px, calc(100% - 56px));
  margin: 16px auto 0;
  color: var(--muted);
  font-size: .86rem;
}
.pair-caption strong { color: var(--ink); font-weight: 650; }

.plans { padding-top: clamp(80px, 10vw, 150px); background: #e3e7e0; }
.plans .section-head { margin-left: auto; }
.plan-stage {
  width: min(1420px, calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 18px;
  align-items: center;
}
.plan-stage figure { position: relative; min-width: 0; overflow: hidden; background: #f4f3eb; }
.plan-stage img {
  width: 100%;
  height: min(74vw, 820px);
  padding: clamp(18px, 3vw, 44px);
  object-fit: contain;
  transition: transform 500ms var(--ease);
}
.plan-stage .state-label { top: 14px; bottom: auto; }

.reveal { opacity: 1; transform: none; }
.js .reveal:not(.is-visible) { opacity: 0; transform: scale(.975); }
.reveal { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }

.credits { padding: 64px 0 34px; border-top: 1px solid var(--line); }
details { max-width: 980px; }
summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 650;
  cursor: pointer;
}
summary:hover { color: #0f3d28; }
summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
summary:active { color: #071b11; }
.credit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 34px;
  padding: 14px 0 28px;
  color: var(--muted);
  font-size: .84rem;
}
footer { padding: 24px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
footer a { display: inline-flex; min-height: 44px; align-items: center; }
footer a:hover { color: var(--ink); }
footer a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
footer a:active { color: #071b11; }

#lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #f4f6f0;
}
#lightbox::backdrop { background: rgba(15, 25, 19, .88); }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(15, 25, 19, .88); }
.lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1500px);
  height: min(calc(100dvh - 32px), 1000px);
  margin: 16px auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  min-width: 56px;
  min-height: 48px;
  border: 1px solid rgba(244, 246, 240, .6);
  border-radius: 10px;
  background: #edf0e9;
  color: #1e3026;
  font-weight: 650;
  cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.lightbox-close { justify-self: end; padding: 0 20px; }
.lightbox-media { min-height: 0; display: grid; place-items: center; touch-action: pan-y; }
.lightbox-media img {
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  object-fit: contain;
  border-radius: 10px;
  animation: lightbox-in 320ms var(--ease);
}
.lightbox-footer { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 14px; }
.lightbox-caption { min-width: 0; text-align: center; line-height: 1.3; }
.lightbox-caption strong { display: block; font-size: .75rem; letter-spacing: .06em; }
.lightbox-caption > span:not(.lightbox-counter) { display: block; margin-top: 4px; color: #cbd3cb; font-size: .82rem; }
.lightbox-counter { display: block; margin-top: 6px; color: #f4f6f0; font-size: .76rem; font-variant-numeric: tabular-nums; }
.lightbox-prev,
.lightbox-next { font-size: 1.35rem; }
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible { outline: 4px solid #75b9ff; outline-offset: 3px; }
.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active { transform: translateY(1px) scale(.97); background: #dce3da; }
@keyframes lightbox-in { from { opacity: .35; transform: scale(.975); } to { opacity: 1; transform: scale(1); } }

@media (hover: hover) and (pointer: fine) {
  .enlarge-trigger:hover img { transform: scale(1.018); filter: saturate(1.03); }
  .lightbox-close:hover,
  .lightbox-prev:hover,
  .lightbox-next:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 24px); }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "copy" "comparison" "note";
    gap: 16px;
    padding: 14px 0 32px;
  }
  .hero-copy { padding: 6px 0 2px; }
  .hero h1 { max-width: 12ch; font-size: clamp(2.6rem, 12vw, 3.45rem); }
  .hero-copy p { margin-top: 14px; font-size: .95rem; }
  .compare-slider { height: 61dvh; min-height: 440px; max-height: 540px; }
  .demo-disclosure { max-width: 62ch; margin: 2px 0 0; padding-top: 12px; font-size: .79rem; }
  .compare-label { top: 10px; max-width: calc(50% - 34px); padding: 7px; font-size: .57rem; }
  .label-original { left: 10px; }
  .label-staged { right: 10px; }
  .compare-handle { width: 52px; height: 52px; }
  .compare-range { inset: 0 -26px; width: calc(100% + 52px); }
  .gallery, .plans { padding: 82px 0; }
  .gallery { padding-top: 102px; }
  .section-head, .plans .section-head { width: auto; margin: 0 12px 34px; }
  .pairs { display: grid; grid-template-columns: 1fr; gap: 76px; }
  .pair-card, .pair-card:nth-child(n) { width: 100%; margin: 0; }
  .pair-media { grid-template-columns: 1fr; gap: 7px; padding: 7px; border-radius: var(--radius); }
  .pair-shot { border-radius: 2px; }
  .pair-shot img { aspect-ratio: 3 / 2; }
  .pair-caption { width: auto; margin: 12px 2px 0; align-items: flex-start; }
  .plan-stage { width: auto; margin: 0 12px; grid-template-columns: 1fr; gap: 10px; }
  .plan-stage img { height: auto; min-height: 360px; max-height: 540px; padding: 20px; }
  .credit-list { grid-template-columns: 1fr; }
  .lightbox-shell { width: calc(100% - 16px); height: calc(100dvh - 16px); margin: 8px; gap: 8px; padding: 10px; }
  .lightbox-close { min-height: 44px; padding-inline: 16px; }
  .lightbox-media img { max-height: calc(100dvh - 176px); }
  .lightbox-footer { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
  .lightbox-prev, .lightbox-next { min-width: 48px; min-height: 48px; }
  .lightbox-caption > span:not(.lightbox-counter) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
}
