/* Antikcheck: site styles
   One family (Newsreader, self-hosted), one ground, one ink, one accent.
   Layout: split stage (sticky object picture beside a reading column), broken by full-bleed fields. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-normal.woff2") format("woff2-variations"), url("../fonts/newsreader-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* colour */
  --paper: #F0EFEB;
  --card: #F9F9F7;
  --surface: #E4E3DF;
  --ink: #231913;
  --ink-soft: #5F534A;
  --accent: #C42B4E;       /* the crimson of the Antikcheck logo */
  --accent-deep: #A3213F;
  --accent-ink: #FAFAF9;
  --tobacco: #4A3226;
  --tobacco-ink: #EEEDE9;
  --tobacco-soft: #CDBBA7;
  --loden: #434B2F;
  --loden-2: #4C5536;
  --loden-ink: #EDEDE8;
  --loden-soft: #C2C7B2;
  --greige: #CAC2B6;
  --stage: #8E8C89;
  --night: #19130F;

  /* type: five steps */
  --step-small: 0.875rem;                                   /* 14 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* 17 to 19 */
  --step-lead: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem); /* 21 to 26 */
  --step-head: clamp(2rem, 1rem + 3.6vw, 4.25rem);          /* 32 to 68 */
  --step-display: clamp(2.5rem, 0.9rem + 5.8vw, 8rem);      /* 40 to 128 */

  /* space */
  --m: clamp(16px, 1.7vw, 28px);   /* page margin, used everywhere */
  --gap: 12px;
  --inset: clamp(20px, 2.2vw, 36px); /* inner text edge shared by card, intro and stage label */
  --section: clamp(96px, 10vw, 152px);
  --bar-h: 76px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-size: var(--step-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--card); padding: 12px 18px; }
.skip:focus { top: 16px; }

h1, h2 { font-weight: 300; letter-spacing: -0.025em; line-height: 1.02; }
h3 { font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }

/* ---------- Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 calc(var(--m) + var(--inset));
  background: var(--paper);
}
.bar__mark { display: block; flex: 0 0 auto; }
.bar__mark img { height: 42px; width: auto; }
main [id] { scroll-margin-top: var(--bar-h); }
.bar__nav { display: flex; gap: clamp(16px, 1.9vw, 28px); margin-left: auto; font-size: var(--step-body); }
.bar__nav a { text-decoration: none; padding: 6px 0; transition: color 0.2s; }
.bar__nav a:hover, .bar__nav a.is-current { color: var(--accent); }
.bar__call {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-size: var(--step-body); font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, transform 0.15s var(--ease-out);
}
.bar__call:hover { background: var(--accent-deep); }
.bar__call:active, .button:active { transform: scale(0.97); }
.bar__call-short { display: none; }
.bar__menu { display: none; height: 42px; padding: 0 14px; background: var(--surface); border: 0; font-size: var(--step-body); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--paper); padding: calc(var(--bar-h) + 40px) var(--m) 40px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav a { display: block; font-size: var(--step-head); font-weight: 300; letter-spacing: -0.02em; line-height: 1.25; text-decoration: none; }
.menu__contact { margin-top: 40px; font-size: var(--step-lead); line-height: 1.6; }

/* ---------- Split stage ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--m); }
.split__main { min-width: 0; }
.split--a { padding-top: var(--bar-h); }
.split__stage { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h) - var(--m)); align-self: start; min-height: 540px; scroll-margin-top: var(--bar-h); }

/* Hero card */
.card {
  position: relative;
  min-height: calc(100svh - var(--bar-h) - var(--m));
  display: grid; grid-template-rows: 1fr;
  background: var(--card);
}
.card__body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px var(--inset); }
.card__title { font-size: var(--step-display); font-weight: 300; letter-spacing: -0.035em; line-height: 0.96; }
.card__lead { max-width: 44ch; margin: 28px auto 40px; text-wrap: balance; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-body); font-weight: 500; text-decoration: none; letter-spacing: 0.005em;
  transition: background-color 0.2s, transform 0.15s var(--ease-out);
}
.button:hover { background: var(--accent-deep); }
.button--light { background: var(--card); color: var(--ink); }
.button--light:hover { background: #FFFFFF; }

/* Intro beside the stage */
.intro { padding: var(--section) var(--inset) var(--section); }
.intro__title { font-size: var(--step-head); }
.intro__text { max-width: 30rem; margin-top: 40px; }
.intro__text p + p { margin-top: 1em; }
.intro__first { font-size: var(--step-lead); line-height: 1.35; font-weight: 400; }
.lens-picker { max-width: 30rem; margin-top: clamp(48px, 5vw, 72px); background: var(--surface); padding: 28px 28px 20px; }
.lens-picker__title { font-size: var(--step-lead); }
.lens-picker__hint { margin-top: 8px; color: var(--ink-soft); font-size: var(--step-small); line-height: 1.45; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint-fine { display: none; } .hint-touch { display: inline; } }
.objects { margin-top: 18px; }
.objects__item {
  position: relative; display: grid; gap: 2px; width: 100%; text-align: left;
  padding: 9px 0 9px 26px; background: none; border: 0;
  transition: transform 0.25s var(--ease-out), color 0.2s;
}
.objects__item::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; border-radius: 50%;
  box-sizing: border-box; border: 1.5px solid currentColor; opacity: 0.45;
  transition: background-color 0.25s, opacity 0.25s, transform 0.25s var(--ease-out);
}
.objects__name { font-size: var(--step-body); line-height: 1.25; }
.objects__meta { font-size: var(--step-small); color: var(--ink-soft); }
.objects__item:hover { transform: translateX(4px); }
.objects__item.is-active { color: var(--accent-deep); }
.objects__item.is-active::before { background: var(--accent); opacity: 1; transform: scale(1.1); }

/* The object stage */
.stage { position: relative; height: 100%; background: var(--stage); overflow: hidden; }
.stage__frame { position: absolute; inset: 0; }
.stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 72%;
  opacity: 0; transition: opacity 1.6s ease;
  transform-origin: 50% 55%;
}
.stage__img.is-active { opacity: 1; }
.stage__img.was-active { transform: scale(1.04); }
.stage.is-cycling .stage__img.is-active { animation: drift 9s var(--ease-out) both; }
.stage.is-zooming .stage__img.is-active { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.045); } }
.stage.is-zooming .stage__frame { cursor: none; }
.loupe {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: clamp(170px, 16vw, 250px); aspect-ratio: 1; border-radius: 50%;
  background-repeat: no-repeat; background-color: var(--stage);
  pointer-events: none; opacity: 0;
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0) translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s, transform 0.12s linear;
}
.loupe.is-on { opacity: 1; transform: translate3d(var(--x), var(--y), 0) translate(-50%, -50%) scale(1); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px rgba(35, 25, 19, 0.28), 0 22px 48px rgba(20, 12, 8, 0.38); /* taste-skill-ignore: the loupe floats above the picture */ }
.label {
  position: absolute; left: var(--inset); bottom: var(--inset); z-index: 4;
  max-width: min(23rem, calc(100% - 2 * var(--inset) - 120px));
  padding: 14px 18px 16px; background: var(--card);
  font-size: var(--step-small); line-height: 1.42;
  transition: opacity 0.35s;
}
.label.is-swapping { opacity: 0; }
.label__title { display: block; font-size: var(--step-body); line-height: 1.25; margin-bottom: 4px; }
.label__line { display: block; }
.stage__lens {
  position: absolute; right: var(--inset); bottom: var(--inset); z-index: 4;
  display: none; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px;
  background: var(--card); border: 0; font-size: var(--step-body);
  transition: background-color 0.2s, color 0.2s, transform 0.15s var(--ease-out);
}
.stage__lens:active { transform: scale(0.96); }
.stage__lens[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: none), (pointer: coarse) { .js .stage__lens { display: inline-flex; } }

/* ---------- Services: four at a glance ---------- */
.services { background: var(--tobacco); color: var(--tobacco-ink); padding: var(--section) calc(var(--m) + var(--inset)); }
.services__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 48px; }
.services__title { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.035em; }
.services__note { max-width: 22ch; font-size: var(--step-lead); line-height: 1.3; color: var(--tobacco-soft); text-align: right; }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 5.5vw, 88px) clamp(40px, 5vw, 96px); margin-top: clamp(64px, 6.5vw, 104px); }
.service {
  display: grid; grid-template-columns: clamp(132px, 12vw, 200px) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  grid-template-areas: "fig title" "fig when" "fig points";
  column-gap: clamp(20px, 2.4vw, 36px); align-content: start;
}
.service__fig { grid-area: fig; }
.service__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--night); }
.service__title { grid-area: title; font-size: var(--step-lead); }
.service__when { grid-area: when; margin-top: 8px; line-height: 1.45; color: var(--tobacco-soft); }
.service__points { grid-area: points; display: grid; gap: 10px; align-content: start; margin-top: 20px; }
.service__points li { padding-left: 1.1em; text-indent: -1.1em; line-height: 1.4; }
.service__points li::before { content: "\2192"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--tobacco-soft); }

/* ---------- About ---------- */
.split--b { padding-top: 0; padding-bottom: 0; }
.split--b .split__stage { top: var(--bar-h); margin-block: var(--m); }
.pstage { position: relative; height: 100%; background: var(--greige); display: grid; place-items: center; overflow: hidden; }
.pstage__frame { position: relative; height: min(80%, 820px); aspect-ratio: 840 / 1752; }
.pstage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.pstage__img.is-active { opacity: 1; }
.pstage__caption { position: absolute; left: var(--inset); bottom: var(--inset); font-size: var(--step-small); color: var(--ink); transition: opacity 0.4s; }
.letter { padding: var(--section) var(--inset); }
.letter > * { max-width: 34rem; margin-inline: auto; }
.letter__title { font-size: var(--step-head); }
.letter__body { margin-top: 40px; }
.letter__body p + p { margin-top: 1.05em; }
.letter__body p:first-child { font-size: var(--step-lead); line-height: 1.38; }
.signoff { margin-top: 40px; display: grid; }
.signoff__name { font-style: italic; font-size: var(--step-lead); line-height: 1.2; }
.signoff__role { font-size: var(--step-small); color: var(--ink-soft); }
.cv { margin-top: clamp(72px, 7vw, 104px); }
.cv__title { font-size: var(--step-lead); margin-top: 56px; }
.cv__title:first-child { margin-top: 0; }
.cv__list { margin-top: 20px; }
.cv__list div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.cv__list div:nth-child(odd) { background: transparent; }
.cv__list dt { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.portrait-inline { display: none; }
.press { margin-top: 12px; }
.press li { display: grid; gap: 2px; padding: 18px 0; }
.press__pub { font-size: var(--step-small); color: var(--ink-soft); }
.press__title { font-size: var(--step-lead); line-height: 1.25; }
.press__line { font-style: italic; color: var(--ink-soft); }

/* ---------- Process slip ---------- */
.process {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
  padding: var(--section) var(--m);
  background: var(--surface);
}
.process__text { grid-column: 1 / span 5; padding-left: var(--inset); position: sticky; top: calc(var(--bar-h) + 40px); }
.process__title { font-size: var(--step-head); }
.process__lead { max-width: 24ch; margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; }
.process__fig { margin-top: 48px; width: min(280px, 100%); }
.process__video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tobacco); }
.process__fig figcaption { margin-top: 10px; font-size: var(--step-small); line-height: 1.4; color: var(--ink-soft); }
.slip {
  grid-column: 7 / span 6; width: min(580px, 100%);
  padding: 44px clamp(24px, 3vw, 44px) 60px;
  background: var(--card); font-variant-numeric: tabular-nums;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cpath d='M0 0H20L10 10Z'/%3E%3C/svg%3E") bottom left / 20px 10px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='10' height='10'/%3E%3C/svg%3E") top / 100% calc(100% - 10px) no-repeat;
          mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cpath d='M0 0H20L10 10Z'/%3E%3C/svg%3E") bottom left / 20px 10px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='10' height='10'/%3E%3C/svg%3E") top / 100% calc(100% - 10px) no-repeat;
}
.slip__group + .slip__group { margin-top: 30px; }
.slip__group h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.slip li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: var(--step-body); line-height: 1.35; }
.slip__what { flex: 0 1 auto; }
.slip__dots { flex: 1 1 24px; min-width: 24px; border-bottom: 3px dotted rgba(35, 25, 19, 0.42); transform: translateY(-4px); }
.slip__when { flex: 0 0 auto; color: var(--ink-soft); white-space: nowrap; }
.slip__total { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; margin-top: 30px; padding: 10px 16px; background: var(--ink); color: var(--card); font-weight: 500; }

/* ---------- Fee ---------- */
.fee { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--section) var(--m); }
.fee__head { grid-column: 1 / span 3; padding-left: var(--inset); }
.fee__title { font-size: var(--step-head); }
.fee__fig { margin-top: 44px; }
.fee__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fee__fig figcaption { margin-top: 10px; font-size: var(--step-small); line-height: 1.4; color: var(--ink-soft); }
.fee__body { grid-column: 5 / span 8; padding-right: var(--inset); }
.fee__list { max-width: 46rem; padding-top: clamp(14px, 1.6vw, 26px); display: grid; gap: clamp(28px, 3vw, 40px); }
.fee__list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
.fee__list dt { font-size: var(--step-lead); line-height: 1.3; }
.fee__price { font-size: var(--step-lead); line-height: 1.3; text-align: right; white-space: nowrap; font-variant-numeric: lining-nums; }
.fee__desc { grid-column: 1 / -1; margin-top: 4px; max-width: 56ch; font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
  padding: var(--section) calc(var(--m) + var(--inset));
  background: var(--loden); color: var(--loden-ink);
}
.contact__head { grid-column: 1 / span 7; }
.contact__title { font-size: var(--step-head); }
.contact__lead { max-width: 30ch; margin: 20px 0 36px; font-size: var(--step-lead); line-height: 1.35; }
.contact__face { grid-column: 9 / span 4; justify-self: end; width: clamp(150px, 14vw, 216px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.contact__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-top: clamp(72px, 7vw, 112px); }
.contact__list dt { font-size: var(--step-small); color: var(--loden-soft); }
.contact__list dd { margin-top: 6px; font-size: var(--step-lead); line-height: 1.3; }
.contact__list a { text-decoration: none; transition: color 0.2s; }
.contact__list a:hover { color: #FFFFFF; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--bar-h)); background: var(--paper); }
.footer__art { position: relative; overflow: hidden; background: var(--stage); }
.footer__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.footer__panel { display: flex; flex-direction: column; padding: 72px calc(var(--m) + var(--inset)) 32px; }
.footer__mark { align-self: flex-start; display: block; }
.footer__mark img { height: clamp(52px, 4.8vw, 72px); width: auto; }
.footer__menu { margin-top: 64px; display: grid; gap: 10px; justify-items: start; }
.footer__menu a { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; text-decoration: none; transition: transform 0.3s var(--ease-out), color 0.2s; }
.footer__menu:hover a { color: var(--ink-soft); }
.footer__menu a:hover { color: var(--accent); transform: translateX(12px); }
.footer__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; font-size: var(--step-small); line-height: 1.6; }
.footer__blocks a { text-decoration: none; }
.footer__blocks a:hover { text-decoration: underline; color: var(--accent); }
.footer__legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Reveal (only when the script runs; a timer in the head shows everything if it does not) ---------- */
/* Phones read without waiting: the entrance runs from 900px up. */
@media (min-width: 900px) {
  .js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in, .reveal-all [data-reveal] { opacity: 1; transform: none; }
}


/* ---------- Legal pages and 404 ---------- */
.bar__back { text-decoration: none; }
.legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: calc(var(--bar-h) + clamp(72px, 8vw, 128px)) var(--m) var(--section); }
.legal__head { grid-column: 1 / span 4; padding-left: var(--inset); }
.legal__sticky { position: sticky; top: calc(var(--bar-h) + 40px); }
.legal__title { font-size: var(--step-head); }
.legal__fig { margin-top: 44px; width: min(260px, 100%); }
.legal__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.legal__fig figcaption { margin-top: 10px; font-size: var(--step-small); line-height: 1.45; color: var(--ink-soft); }
.legal__body { grid-column: 6 / -1; max-width: 46rem; padding-right: var(--inset); }
.legal__body h2 { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; margin: 48px 0 12px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p + p { margin-top: 0.9em; }
.legal__lead { font-size: var(--step-lead); line-height: 1.38; margin-bottom: 56px; }
.legal__list { padding-left: 1.1em; display: grid; gap: 8px; }
.legal__date { margin-top: 48px !important; color: var(--ink-soft); font-size: var(--step-small); }
.legal a { text-decoration-color: rgba(196, 43, 78, 0.5); }
.legal a:hover { color: var(--accent); }
.legal-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding: 40px calc(var(--m) + var(--inset)); background: var(--surface); color: var(--ink); font-size: var(--step-small); }
.legal-footer__mark { display: block; }
.legal-footer__mark img { height: 40px; width: auto; }
.legal-footer p { flex: 1 1 320px; }
.legal-footer nav { display: flex; gap: 24px; }
.legal-footer a { color: inherit; }
.notfound { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--m); }
.notfound__card { display: grid; grid-template-rows: 1fr; background: var(--card); }
.notfound__body { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px var(--inset); }
.notfound__logo { height: 46px; width: auto; margin-bottom: clamp(32px, 6vh, 64px); }
.notfound__title { font-size: var(--step-head); max-width: 12ch; margin-bottom: 24px; }
.notfound__lead { max-width: 34ch; margin-bottom: 36px; }
.notfound__fig { position: relative; overflow: hidden; background: var(--stage); }
.notfound__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .legal { display: block; padding: calc(var(--bar-h) + 64px) var(--m) 96px; }
  .legal__head { padding-left: 0; margin-bottom: 40px; }
  .legal__sticky { position: static; }
  .legal__fig { width: 46%; margin-top: 28px; }
  .legal-footer { padding: 40px var(--m); }
  .page-legal .bar__menu { display: inline-flex; align-items: center; }
  .notfound { grid-template-columns: 1fr; }
  .notfound__fig { height: 50svh; order: -1; }
}

/* ---------- Small screens: one column, one pair of margins ---------- */
@media (max-width: 899px) {
  :root { --bar-h: 60px; --m: 20px; --inset: 0px; }
  .bar { gap: 12px; padding: 0 var(--m); }
  .bar__mark img { height: 32px; }
  .bar__nav { display: none; }
  .bar__call { margin-left: auto; height: 40px; padding: 0 14px; }
  .bar__call-long { display: none; }
  .bar__call-short { display: inline; }
  .bar__menu { display: inline-flex; align-items: center; height: 40px; }

  .split { display: flex; flex-direction: column; gap: 0; padding: 0 var(--m); }
  .split--a { padding-top: calc(var(--bar-h) + 4px); }
  .split--a .split__stage { order: -1; }
  .split__stage { position: relative; top: 0; height: 64svh; min-height: 400px; align-self: stretch; width: 100%; }
  .card { min-height: 0; margin: -24px 12px 0; z-index: 2; }
  .card__body { padding: 72px 20px 44px; }
  .intro { padding: 88px 0 96px; }
  .lens-picker { padding: 22px 20px 14px; }
  .split--a .split__stage { isolation: isolate; z-index: 1; }
  .label { left: 12px; right: 12px; bottom: 36px; max-width: none; padding: 10px 12px 11px; }
  .label__title { margin-bottom: 0; }
  .label__line[data-l2] { display: none; }
  .stage__lens { right: 12px; top: 12px; bottom: auto; height: 46px; }

  .services { padding: 96px var(--m) 104px; }
  .services__note { text-align: left; }
  .services__grid { grid-template-columns: 1fr; gap: 56px; margin-top: 48px; }
  .service { grid-template-columns: 160px minmax(0, 1fr); }

  .split--b .split__stage { height: 72svh; margin: var(--m) 0 0; }
  .pstage__frame { height: 86%; }
  .letter { padding: 80px 0 96px; }
  .portrait-inline { display: block; width: 100%; margin: 40px 0 8px; background: var(--greige); padding: 28px 0 0; }
  .portrait-inline img { width: 58%; margin: 0 auto; }
  .cv__list div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }


  .process { display: block; padding: 96px var(--m) 104px; }
  .process__text { position: static; padding-left: 0; }
  .process__fig { width: 58%; margin-top: 36px; }
  .slip { width: 100%; margin-top: 48px; padding: 30px 18px 46px; }
  .slip li { flex-wrap: wrap; }
  .slip__what { flex: 1 1 60%; }

  .fee { display: block; padding: 96px var(--m) 104px; }
  .fee__head { padding-left: 0; }
  .fee__fig { width: 58%; margin-top: 32px; }
  .fee__body { padding: 48px 0 0; }
  .fee__list { padding-top: 0; }

  .contact { display: flex; flex-direction: column; align-items: flex-start; padding: 88px var(--m) 96px; }
  .contact__face { order: -1; width: 96px; margin-bottom: 28px; }
  .contact__lead { margin: 16px 0 28px; }
  .contact__list { width: 100%; grid-template-columns: 1fr; margin-top: 56px; gap: 28px; }

  .footer { display: block; min-height: 0; }
  .footer__art { height: 52svh; }
  .footer__panel { padding: 48px var(--m) 28px; }
  .footer__menu { margin-top: 36px; }
  .footer__blocks { grid-template-columns: 1fr; margin-top: 44px; }
}

@media (max-width: 899px) and (min-width: 600px) {
  :root { --m: 32px; }
  .split--a .split__stage { height: min(calc(100vw - 2 * var(--m)), 80svh); }
  .card { margin-inline: 40px; }
  .slip { max-width: none; }
  .portrait-inline img { width: 44%; }
  .process__fig, .fee__fig { width: 40%; }
  .process__lead, .services__note { max-width: 32ch; }
  .contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
  .contact__head { grid-column: 1; }
  .contact__face { grid-column: 2; order: 0; width: 140px; margin: 0; }
  .contact__list { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

@media (max-width: 599px) {
  .fee__list div { grid-template-columns: 1fr; }
  .fee__price { text-align: left; }
  .service { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "fig title" "fig when" "points points"; column-gap: 18px; }
  .service__points { margin-top: 18px; }
}

@media print {
  .bar, .menu, .stage__lens, .loupe, .skip { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split__stage, .process__text { position: static !important; height: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity 0.4s linear; }
  .stage__img { transition: opacity 0.2s linear; }
  .stage.is-cycling .stage__img.is-active { animation: none; }
}
