:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #181d19;
  --muted: #5d655e;
  --line: #d2d2c9;
  --moss: #19362f;
}
* { box-sizing: border-box; }
html { font-family: Arial, "Segoe UI", sans-serif; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 19px; font-weight: 900; letter-spacing: -.045em; white-space: nowrap; }
.brand img { width: 41px; height: 41px; }
.brand strong { font-weight: 400; letter-spacing: -.035em; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 700; }
nav a[aria-current] { border-bottom: 2px solid var(--ink); }
nav a:hover { text-decoration: underline; }
h1, h2, p { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 49px; padding: 12px 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 700 14px Arial, "Segoe UI", sans-serif; text-decoration: none; cursor: pointer; transition: background .16s, color .16s; }
.button:hover { background: var(--ink); color: #fff; }
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: var(--moss); }
.button:focus-visible, a:focus-visible, .comparison:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8baa56; outline-offset: 4px; }
.home-stage { padding: 34px 0 35px; }
.example-grid { display: grid; grid-template-columns: 2.5066fr 2.2327fr 1.3409fr; gap: 12px; transition: grid-template-columns .28s ease; }
.comparison { position: relative; margin: 0; min-width: 0; cursor: pointer; z-index: 0; }
.comparison:nth-child(1) { --image-ratio: 1900 / 758; }
.comparison:nth-child(2) { --image-ratio: 1900 / 851; }
.comparison:nth-child(3) { --image-ratio: 1900 / 1417; }
.photo-pair { position: relative; aspect-ratio: var(--image-ratio); background: transparent; overflow: hidden; opacity: 1; transition: opacity .12s ease; }
.comparison.is-fading .photo-pair { opacity: 0; }
.photo-pair img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-pair .photo-before { display: none; object-fit: cover; }
.comparison.is-original .photo-after { display: none; }
.comparison.is-original .photo-before { display: block; }
.comparison.is-original .photo-pair { aspect-ratio: 8 / 5; }
@media (hover: hover) and (min-width: 701px) {
  .example-grid:has(.comparison:first-child:hover) { grid-template-columns: 3.1333fr 2.2327fr 1.3409fr; }
  .example-grid:has(.comparison:nth-child(2):hover) { grid-template-columns: 2.5066fr 2.7909fr 1.3409fr; }
  .example-grid:has(.comparison:last-child:hover) { grid-template-columns: 2.5066fr 2.2327fr 1.6761fr; }
  .comparison:hover { box-shadow: 0 12px 35px #0003; background: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
  .example-grid, .photo-pair { transition: none; }
}
.gallery-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 17px 0 0; }
.home-copy { max-width: 800px; border-top: 1px solid var(--line); padding: 100px 0 110px; margin: 0 auto; text-align: center; }
.home-copy h2, .page-head h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.065em; }
.home-copy h2 { font-size: clamp(42px, 5vw, 70px); line-height: 1.08; margin-bottom: 20px; }
.home-copy p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 20px; }
.page-head { max-width: 840px; padding: 85px 0 35px; }
.page-head h1 { font-size: clamp(50px, 6.5vw, 85px); line-height: 1; margin: 15px 0 22px; }
.page-head > p:last-child { font-size: 20px; color: var(--muted); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .75fr); gap: 25px; align-items: start; margin: 12px 0 100px; }
.panel, .aside { border-top: 1px solid var(--ink); padding: 26px 0; }
.panel h2, .aside h2 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; letter-spacing: -.04em; margin: 0 0 14px; }
.aside p, .download-panel p { color: var(--muted); }
.panel label { display: block; font-weight: 700; margin: 0 0 7px; }
.panel input, .panel textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; padding: 12px 14px; margin-bottom: 21px; }
.panel textarea { resize: vertical; }
.panel .hint { margin: -11px 0 22px; color: var(--muted); font-size: 14px; }
.form-status { min-height: 26px; }
.form-status.error { color: #a22222; }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 15px 0; }
.download-panel h2 { font-family: Georgia, "Times New Roman", serif; font-size: 36px; margin: 10px 0; }
.platform { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.availability { max-width: 320px; border-left: 2px solid var(--ink); padding-left: 16px; }
.below { margin-bottom: 90px; }
.success { min-height: 50vh; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; }
.footer-row div { display: flex; gap: 22px; }
footer a { color: var(--muted); }
.admin-panel { margin: 12px 0 90px; }
.admin-access { display: flex; align-items: flex-start; gap: 14px; }
.admin-access input { max-width: 500px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 14px; }
td { word-break: break-word; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { gap: 14px; align-items: flex-start; flex-direction: column; padding: 15px 0; }
  .brand img { width: 36px; height: 36px; }
  nav { gap: 20px; }
  .home-stage { padding-top: 14px; }
  .example-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .comparison { flex: 0 0 min(82vw, 390px); scroll-snap-align: start; }
  .gallery-hint { font-size: 12px; }
  .home-copy { padding: 70px 0 85px; }
  .home-copy p { font-size: 18px; }
  .form-layout { grid-template-columns: 1fr; gap: 15px; }
  .download-panel { align-items: flex-start; flex-direction: column; }
  .page-head { padding-top: 60px; }
  .admin-access { flex-direction: column; }
  .admin-access input { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-before, .button { transition: none; }
}
