@font-face {
  font-family: Lora;
  src: url("/__lora/assets/lora-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Lora;
  src: url("/__lora/assets/lora-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/__lora/assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/__lora/assets/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --ap-ink: #202724;
  --ap-light: #faf4e9;
  --ap-paper: #f7f3e9;
  --ap-stone: #ebe2d1;
  --ap-teal: #183131;
  --ap-dark: #122220;
  --ap-muted: #56564f;
  --ap-gutter: clamp(16px, 5.8vw, 84px);
  --ap-content-width: 1220px;
}

html { scroll-padding-top: calc(var(--page-gutter) + 52px); }
body.ap-case { margin: 0; background: var(--ap-dark); color: var(--ap-ink); font: 500 1rem/1.6 Manrope, sans-serif; }
.ap-case::after { content: none; }
.ap-case main { padding: 0; border-top: var(--page-gutter) solid var(--background); background: var(--ap-paper); }
.ap-case :is(.site-header, .case-toolbar, .site-footer) { font: 400 1rem/1.5 var(--sans); }
.ap-case .case-toolbar { background: var(--background); }
.ap-case :is(h1, h2, p, figure) { margin: 0; }
.ap-case :is(h1,h2) { font-family: Lora, Georgia, serif; font-weight: 500; letter-spacing: -0.057em; }
.ap-slide img { display: block; width: 100%; height: auto; }
.ap-case :focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.ap-wrap { width: min(var(--ap-content-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; }
.ap-slide { padding-block: clamp(42px, 6.2vw, 102px); }

.ap-slide.ap-hero {
  --ap-hero-shade: linear-gradient(95deg, #12221ff2 0%, #152622e8 22%, #182823b5 49%, #1c2c2433 79%, #1d30292e 100%);
  isolation: isolate;
  position: relative;
  padding-block: 0;
  background: #2c3d37;
  color: var(--ap-light);
}
.ap-hero .ap-hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.ap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--background), transparent clamp(65px, 8vw, 110px)), var(--ap-hero-shade);
}
.ap-hero-grid { display: grid; align-items: center; min-height: clamp(500px, 78svh, 820px); padding-block: clamp(42px, 8vw, 120px); }
.ap-hero h1 { font-size: clamp(3.1rem, 9.6vw, 9.4rem); line-height: 0.99; }
.ap-hero p { max-width: 26ch; margin-top: clamp(17px, 3vw, 32px); color: #f0e5d5; font-size: clamp(1.13rem, 2.1vw, 1.57rem); line-height: 1.44; }

.ap-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "copy visual"; align-items: center; gap: clamp(22px, 5.5vw, 84px); }
.ap-grid--reversed { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); grid-template-areas: "visual copy"; }
.ap-copy { grid-area: copy; min-width: 0; }
.ap-copy h2, .ap-outcome h2 { font-size: clamp(2.05rem, 5vw, 4.45rem); line-height: 1.05; text-wrap: balance; }
.ap-copy h2 { max-width: 17ch; }
.ap-copy p, .ap-outcome p { max-width: 47ch; color: var(--ap-muted); font-size: clamp(1rem, 1.66vw, 1.2rem); }
.ap-copy h2 + p, .ap-outcome h2 + p { margin-top: clamp(13px, 2vw, 24px); }
.ap-copy p + p { margin-top: 11px; }
.ap-task-photo, .ap-progress-photo { overflow: clip; border-radius: clamp(11px, 2vw, 26px); background: #d6c9b6; }
.ap-task-photo { grid-area: visual; }
.ap-task-photo img { aspect-ratio: 4 / 3; object-fit: cover; }

.ap-brief { background: #ede4d5; }
.ap-phone-stage { grid-area: visual; display: grid; place-items: center; background: radial-gradient(ellipse closest-side, #edd9b994 0%, transparent 100%); }
.ap-phone-stage .ap-device { width: clamp(184px, 21vw, 247px); }
.ap-device { filter: drop-shadow(0 18px 25px #25241c3b); }

.ap-plan { background: var(--ap-teal); color: var(--ap-light); }
.ap-plan .ap-copy p { color: #e7dac6; }
.ap-grid--plan { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.ap-device-pair { grid-area: visual; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 25px); justify-self: center; width: min(100%, 510px); }
.ap-device-pair figure { min-width: 0; display: grid; justify-items: center; gap: 12px; align-content: start; }
.ap-device-pair .ap-device { width: min(100%, clamp(156px, 17vw, 214px)); filter: drop-shadow(0 16px 25px #080f0f90); }
.ap-device-pair figcaption { color: #e2ceb2; font-size: 0.85rem; line-height: 1.3; text-align: center; }

.ap-budget .ap-phone-stage { background: radial-gradient(ellipse closest-side, #d2dac7b3 0%, transparent 100%); }
.ap-budget .ap-budget-note { margin-top: clamp(16px, 2.4vw, 28px); color: #4a4f41; font-size: 0.92rem; }
.ap-budget-note strong { padding-inline-end: 0.12em; color: #23514d; font-weight: 800; }

.ap-reports { padding-block: clamp(38px, 5.25vw, 88px); background: #e9e2d6; }
.ap-reports-copy { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: clamp(20px, 6vw, 82px); align-items: end; }
.ap-reports-copy h2 + p { margin-top: 0; }
.ap-report-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.36fr); gap: clamp(16px, 5vw, 68px); align-items: center; margin-top: clamp(24px, 4vw, 56px); }
.ap-progress-photo img { aspect-ratio: 1.85; object-fit: cover; }
.ap-team-phone { display: grid; justify-items: center; }
.ap-team-phone .ap-device { width: min(100%, clamp(158px, 17.5vw, 215px)); }

.ap-slide.ap-outcome { padding-block: clamp(56px, 10vw, 136px) clamp(24px, 4vw, 56px); background: var(--ap-dark); color: var(--ap-light); }
.ap-outcome-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ap-outcome h2 { max-width: 17ch; }
.ap-outcome p { color: #e4dfd0; }
.ap-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 24px; margin-top: clamp(22px, 3vw, 34px); border-radius: 999px; background: #ecd6b3; color: #1e322d; text-decoration: none; font-weight: 800; }
.ap-contact:hover { background: #f8e6c7; }
.ap-contact:focus-visible { outline-color: #f8e6c7; }
.ap-case-ending {
  --gutter: var(--ap-gutter);
  --case-content-width: var(--ap-content-width);
  --case-end: var(--ap-dark);
  --case-next-ink: var(--ap-light);
  --case-next-hover: #edd5ac;
  --case-next-font: var(--serif);
}

@media (max-width: 740px) {
  .ap-grid, .ap-grid--reversed, .ap-grid--plan, .ap-reports-copy { grid-template-columns: minmax(0, 1fr); }
  .ap-grid { grid-template-areas: "copy" "visual"; }
  .ap-hero-grid { min-height: clamp(410px, 67svh, 590px); align-items: end; }
  .ap-slide.ap-hero {
    --ap-hero-shade: linear-gradient(0deg, #12221ff5 0%, #152622e8 28%, #1828239c 64%, #1c2c2447 100%);
  }
  .ap-hero h1 { font-size: clamp(2.8rem, 11vw, 5.7rem); }
  .ap-hero .ap-hero-photo { object-position: 71% center; }
  .ap-phone-stage .ap-device { width: clamp(170px, 51vw, 225px); }
  .ap-device-pair { width: min(100%, 430px); }
  .ap-reports-copy { gap: 0; }
  .ap-reports-copy h2 + p { margin-top: 13px; }
}

@media (max-width: 540px) {
  .ap-slide { padding-block: 38px; }
  .ap-hero h1 { white-space: nowrap; }
  .ap-report-visual { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.86fr); gap: 14px; }
  .ap-progress-photo img { aspect-ratio: 0.81; object-position: 55% center; }
}
