:root {
  color-scheme: light;
  --ink: #252528;
  --muted: #53565c;
  --paper: #fff;
  --wash: #f5f2ed;
  --line: #dfdbd4;
  --accent: #215f62;
  --page-gutter: 36px;
  font-family: "Karla Variable", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:where(:not(.site-header a, .button, .gallery-grid a, .service-link, .profile-portfolio, .skip)),
.profile-portfolio strong {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size .22s ease, color .2s ease;
}
a:where(:not(.site-header a, .button, .gallery-grid a, .service-link, .profile-portfolio, .skip)):is(:hover, :focus-visible),
.profile-portfolio:is(:hover, :focus-visible) strong { background-size: 100% 1px; }
.markdown-copy :where(p, li) a, .contact-panel p a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: "Rubik Variable", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.wrap { width: min(1120px, 100% - 2 * var(--page-gutter)); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-150%); padding: .8rem; background: var(--paper); }
.skip:focus { transform: translateY(0); z-index: 2; }
.site-header { background: var(--paper); }
.header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding-block: clamp(18px, 3vw, 32px) .7rem;
}
.logo { width: clamp(154px, 15vw, 188px); height: auto; }
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .1rem clamp(15px, 3.4vw, 38px);
}
.menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .42rem;
  color: var(--muted);
  font-size: .96rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.menu a::after {
  content: '';
  position: absolute;
  inset: auto 0 5px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.menu a:is(:hover, :focus-visible, [aria-current]) { color: var(--ink); }
.menu a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }

.hero { padding-block: clamp(26px, 4.5vw, 65px) clamp(66px, 10vw, 138px); }
.hero-grid { display: grid; justify-items: center; gap: clamp(44px, 7vw, 92px); }
.hero-image {
  width: min(100%, 480px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  animation: arrive .65s ease both;
}
.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem clamp(28px, 5vw, 64px);
  width: min(100%, 720px);
  animation: arrive .55s .1s ease both;
}
.hero h1 { font-size: clamp(1.95rem, 3.6vw, 3.2rem); }
.hero-name { margin-top: .35rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.26rem); }
.hero-action { flex: 0 1 215px; }
.hero-action p { margin-top: .6rem; color: var(--muted); }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 46px;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--ink);
  transition: background-color .2s ease, color .2s ease;
  color: var(--paper);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--accent); color: var(--paper); }

.offer {
  padding-block: clamp(46px, 8vw, 105px);
  color: #f8f6f3;
  background: #000 url("/media/oferta-aparat.webp") center top / max(100%, 650px) auto no-repeat;
}
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 32px; }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
.offer h2 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
.section-intro p { max-width: 35ch; }
.about p, .contact-intro p { color: var(--muted); }
.offer .section-intro p, .services p { color: #d6d2ce; }
.offer :focus-visible { outline-color: #d4ece7; }
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(25px, 4.5vw, 46px) clamp(18px, 3vw, 30px);
}
.service-card {
  min-width: 0;
  border: 1px solid #363537;
  background: #181719;
  transition: border-color .2s ease;
}
.service-card:hover, .service-card:focus-within { border-color: #aaa296; }
.service-link { display: block; text-decoration: none; }
.service-link:hover { color: #fff; }
.service-photo { display: block; overflow: hidden; background: #2b292b; }
.service-photo img { width: 100%; aspect-ratio: 1.32; height: auto; object-fit: cover; transition: opacity .2s ease; }
.service-link:hover img { opacity: .9; }
.service-title { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .85rem .95rem 0; }
.service-title span { color: #b4d5cc; transition: transform .22s ease; }
.service-link:is(:hover, :focus-visible) .service-title span { transform: translate(3px, -2px); }
.services h3 { font-size: clamp(1rem, 2.1vw, 1.3rem); }
.services p { margin-top: .35rem; padding: 0 .95rem 1rem; max-width: 42ch; }

.info { border-top: 1px solid var(--line); background: var(--wash); }
.about { padding-block: clamp(35px, 6vw, 68px); }
.about p { max-width: 59ch; margin-top: .6rem; }
.about-more { display: inline-block; margin-top: .9rem; color: var(--accent); font-weight: 650; }
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: end;
  padding-block: clamp(30px, 5vw, 58px);
  border-top: 1px solid var(--line);
}
.contact-intro p { margin: .7rem 0; max-width: 34ch; }
.contact-trigger[hidden] { display: none; }
.contact-dialog {
  width: min(100% - 24px, 470px);
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: #fffefa;
  box-shadow: 0 22px 75px rgb(30 25 19 / 22%);
}
.contact-dialog[open] { animation: arrive .22s ease both; }
.contact-dialog::backdrop { background: rgb(25 23 22 / 55%); }
.contact-panel { padding: clamp(20px, 5vw, 34px); }
.contact-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.contact-dialog-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.contact-close {
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--wash);
  font-size: 1.4rem;
  line-height: 1;
}
.contact-close:hover { color: var(--ink); background: #eae6df; }
.contact-form label { display: block; min-width: 0; margin-bottom: 1rem; font-size: .94rem; font-weight: 650; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: .25rem 0;
  border: 0;
  border-bottom: 1px solid #9f998f;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: 400 1rem/1.5 "Karla Variable", Arial, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form :is(input, textarea):focus {
  border-color: var(--accent);
  box-shadow: 0 1px var(--accent);
  outline-offset: 2px;
}
.contact-form textarea { resize: vertical; min-height: 5.15rem; }
.form-footer { display: flex; justify-content: end; }
.contact-form button { border-radius: 3px; }
.contact-form button:disabled { color: var(--muted); background: var(--wash); cursor: default; }
.contact-form[aria-busy="true"] button { cursor: progress; }
.form-availability { margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.form-availability a { font-weight: 650; }
.captcha-notice { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.grecaptcha-badge { visibility: hidden; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-state { margin-bottom: .75rem; padding: .55rem .7rem; border-left: 2px solid currentColor; }
.form-state.success { color: #174d3b; background: #e3f1e8; }
.form-state.error { color: #842923; background: #f8e8e4; }
address { font-style: normal; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem 1.5rem; padding-block: 17px; border-top: 1px solid var(--line); }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; font-size: .9rem; color: var(--muted); }
.footer nav a, .footer .footer-settings { display: inline-flex; align-items: center; min-height: 44px; }
.footer-settings { padding: 0; border: 0; color: var(--ink); background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
.footer .footer-settings[hidden] { display: none; }
.footer-settings:is(:hover, :focus-visible) { background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.cookie-consent {
  position: fixed;
  z-index: 5;
  inset: auto max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) auto;
  width: min(406px, 100% - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: clamp(16px, 4vw, 22px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--paper);
  box-shadow: 0 5px 24px rgb(27 31 30 / 14%);
}
.cookie-consent:not([hidden]) { animation: arrive .22s ease both; }
.cookie-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cookie-header h2 { font-size: 1.3rem; }
.cookie-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  margin: -8px -8px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--wash);
  color: var(--ink);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-close:is(:hover, :focus-visible) { background: #eae6df; color: var(--ink); }
.cookie-close:focus-visible { outline-offset: 2px; }
.cookie-consent p { margin-top: .4rem; color: var(--muted); font-size: .92rem; line-height: 1.42; }
.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .55rem;
  margin-top: .85rem;
  padding: .65rem .75rem;
  background: var(--wash);
  line-height: 1.25;
  cursor: pointer;
}
.cookie-option strong { display: block; font-size: .92rem; font-weight: 700; }
.cookie-option small, .cookie-switch-state { color: var(--muted); font-size: .8rem; }
.cookie-switch {
  appearance: none;
  display: grid;
  align-items: center;
  width: 44px;
  height: 24px;
  margin: 0;
  padding: 2px;
  border: 1px solid #777b82;
  border-radius: 999px;
  background: #777b82;
  cursor: pointer;
}
.cookie-switch::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .16s ease;
}
.cookie-switch:checked { border-color: var(--accent); background: var(--accent); }
.cookie-switch:checked::before { transform: translateX(20px); }
@media (forced-colors: active) {
  .cookie-switch { appearance: auto; display: block; width: 24px; }
  .cookie-switch::before { content: none; }
}
.cookie-consent .cookie-preview { font-size: .78rem; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .7rem; margin-top: .65rem; }
.cookie-actions a { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent); font-size: .84rem; }
.cookie-actions button {
  min-height: 44px;
  padding: .4rem .85rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--paper);
  color: var(--accent);
  font: inherit;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.cookie-actions button:is(:hover, :focus-visible) { background: var(--wash); color: var(--accent); }
.legal-page { max-width: 760px; padding-block: clamp(32px, 6vw, 76px) clamp(48px, 8vw, 96px); }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.legal-copy > h2 { margin-top: clamp(1.6rem, 3vw, 2.2rem); font-size: 1.26rem; }
.legal-copy > p { max-width: 70ch; }

.gallery-page, .profile-page { padding-block: clamp(28px, 6vw, 74px) clamp(40px, 8vw, 90px); }
.gallery-page { padding-block-end: 0; }
.gallery-page > .offer { margin-block-start: clamp(40px, 8vw, 90px); }
.pricing-page { max-width: 860px; padding-block: clamp(36px, 7vw, 86px) clamp(56px, 9vw, 112px); }
.pricing-page h1 { font-size: clamp(2.25rem, 6vw, 3.8rem); }
.pricing-copy > p:first-child { margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.2rem); }
.markdown-copy.pricing-copy > h2 { margin-block: clamp(1.9rem, 5vw, 3.4rem) .8rem; font-size: clamp(1.35rem, 3.3vw, 1.9rem); }
.pricing-copy table { width: 100%; border-collapse: collapse; font-size: clamp(.89rem, 2.4vw, 1rem); }
.pricing-copy :is(th, td) { padding: .72rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricing-copy th { font-size: .8rem; color: var(--muted); }
.pricing-copy :is(th, td):last-child { width: 34%; padding-inline-start: .75rem; text-align: right; }
.pricing-copy td:last-child { font-weight: 650; }
.pricing-contact { margin-top: clamp(1.8rem, 4vw, 2.75rem); }
.profile-intro h1 { font-size: clamp(2.25rem, 6vw, 3.85rem); }
.profile-intro p { max-width: 54ch; margin-top: .75rem; color: var(--muted); font-size: clamp(1.12rem, 2.2vw, 1.35rem); }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  margin-top: clamp(24px, 4.6vw, 50px);
}
.profile-aside { grid-column: 2; grid-row: 1; width: min(100%, 350px); justify-self: end; }
.profile-portrait { margin: 0; }
.profile-portrait img { width: 100%; height: auto; }
.profile-portfolio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .85rem;
  padding-block: .4rem;
  color: var(--ink);
}
.profile-portfolio small { display: block; color: var(--muted); }
.profile-portfolio > span:last-child { color: var(--accent); font-size: 1.25rem; }
.profile-body { grid-column: 1; grid-row: 1; }
.profile-body > :first-child { margin-top: 0; }
.profile-body > h2 { margin-top: 2rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.profile-body > h2:first-child { margin-top: 0; }
.profile-body > ul { padding-left: 1.25rem; }
.profile-body li + li { margin-top: .45rem; }
.profile-contact { margin-top: clamp(26px, 4vw, 44px); }
.back { display: inline-block; margin-bottom: .85rem; color: var(--muted); }
.gallery-heading h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.gallery-title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.5rem; }
.gallery-page > .markdown-copy > :not(.gallery-section) {
  margin-inline: max(var(--page-gutter), (100% - 1120px) / 2);
}
.markdown-copy > p, .markdown-copy > ul, .markdown-copy > ol { margin-top: .75rem; max-width: 62ch; color: var(--muted); }
.markdown-copy > h2, .markdown-copy > h3 { margin-top: 1.4rem; }
.markdown-copy > blockquote { max-width: 62ch; margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--accent); }
.markdown-copy > pre { max-width: 100%; overflow: auto; padding: .8rem; background: var(--wash); }
.gallery-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin-top: 1.4rem;
}
.gallery-navigation a { padding-block: .2rem; }
.gallery-section {
  margin-top: clamp(34px, 5.2vw, 72px);
  padding-top: clamp(16px, 2.8vw, 30px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.gallery-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-bottom: 14px;
}
.gallery-section h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.gallery-controls { display: flex; align-items: center; gap: 8px; }
.gallery-controls[hidden], .gallery-thumbs[hidden] { display: none; }
.gallery-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
}
.gallery-controls button span {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
}
.gallery-controls [data-strip-prev] span { transform: translateX(1px) rotate(-135deg); }
.gallery-controls button:hover { color: var(--ink); background: #eae6df; }
.gallery-grid {
  --photo-height: clamp(240px, 39vw, 550px);
  --photo-gap: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--photo-gap);
  overflow-x: auto;
  padding-block: 4px 9px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y pinch-zoom;
  overflow-anchor: none;
  scrollbar-width: thin;
  scrollbar-color: #999 var(--wash);
}
.gallery-grid a {
  flex: 0 0 auto;
  display: block;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.gallery-grid a img {
  cursor: zoom-in;
}
.gallery-grid a:focus-visible { outline: none; }
.gallery-grid a:focus-visible img { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-grid img {
  width: auto;
  height: var(--photo-height);
  max-width: min(84vw, 960px);
  object-fit: contain;
  transition: opacity .26s ease;
}
.gallery-grid:has([data-current]) a:not([data-current]) img { opacity: .72; }
.gallery-grid:has([data-current]) a:not([data-current]):is(:hover, :focus-visible) img { opacity: .88; }
.gallery-grid a:only-child { margin-inline: auto; }
.gallery-grid a:only-child img { height: auto; max-height: var(--photo-height); }
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .85rem;
}
.gallery-thumbs button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
}
.gallery-thumbs img { width: auto; height: 38px; max-width: 88px; object-fit: contain; }
.gallery-thumbs button:hover { background: var(--wash); }
.gallery-thumbs button[aria-current] { border-color: var(--accent); }
.gallery-thumbs button:focus-visible { outline-offset: 0; }
.gallery-contact { margin-top: clamp(24px, 5vw, 48px); }
body:has(.lightbox[open], .contact-dialog[open]) { overflow: hidden; }
.lightbox {
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 12px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.lightbox[open] { animation: arrive .22s ease both; }
.lightbox::backdrop { background: rgb(20 18 16 / 85%); }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.lightbox-control { min-width: 42px; padding: .2rem .65rem; background: transparent; color: var(--ink); }
.lightbox-control:disabled { visibility: hidden; }
.lightbox-view { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; background: var(--wash); }
.lightbox img { width: 100%; height: min(76dvh, 820px); object-fit: contain; }

.panel { width: min(480px, 100% - 42px); margin: 9vh auto; padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.inbox-panel { width: min(760px, 100% - 42px); }
.inbox-heading, .inbox-meta, .inbox-nav { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.inbox-heading h2 { font-size: 1.45rem; }
.inbox-heading { margin-bottom: .8rem; }
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-list li { padding: .9rem 0; border-top: 1px solid var(--line); }
.inbox-list p { margin-top: .35rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.inbox-email { overflow-wrap: anywhere; }
.inbox-meta time, .inbox-email { color: var(--muted); font-size: .9rem; }
.inbox-nav { margin-top: 1rem; }
.panel .logo { width: 105px; margin-bottom: 1rem; }
.panel h1 { font-size: 2.4rem; margin-bottom: 1.2rem; }
.panel label { display: block; margin: .8rem 0; }
.panel input { display: block; width: 100%; color: var(--ink); background: var(--paper); font: inherit; border: 1px solid #767980; border-radius: 0; padding: .55rem; margin: .28rem 0; }
.panel button { margin-top: .4rem; }
.error { color: #872925; margin-bottom: .65rem; }

@media (max-width: 740px) {
  :root { --page-gutter: 18px; }
  .header-row { padding-block: 1rem .6rem; }
  .menu { gap: .1rem clamp(8px, 3.2vw, 22px); }
  .hero { padding-top: 27px; }
  .hero-caption { flex-direction: column; text-align: center; gap: 16px; }
  .hero-action { flex-basis: auto; }
  .hero-action p { max-width: 30ch; }
  .section-intro { display: block; margin-bottom: 22px; }
  .section-intro p { margin-top: .7rem; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { --photo-height: clamp(220px, 66vw, 360px); --photo-gap: 10px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside, .profile-body { grid-area: auto; justify-self: start; }
  .lightbox-view { gap: 0; }
  .lightbox-view .lightbox-control { min-width: 32px; padding: .1rem; }
}

@media (max-width: 359px) {
  .menu { gap: .1rem .5rem; }
  .menu a { font-size: .91rem; }
  .services { grid-template-columns: 1fr; }
}

@keyframes arrive {
  from { opacity: .8; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .profile-portfolio > span:last-child { transition: transform .2s ease; }
  .profile-portfolio:hover > span:last-child { transform: translate(2px, -2px); }
}

@keyframes rise-in {
  from { opacity: var(--rise-start-opacity, .72); transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .about, .contact-intro { --rise-start-opacity: 1; }
  .section-intro, .service-card, .about, .contact-intro,
  .gallery-section-head, .profile-portrait, .profile-portfolio, .profile-body > h2 {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gallery-grid { scroll-behavior: auto; }
}

.prints-page { padding-block: clamp(36px, 6vw, 80px) clamp(55px, 9vw, 115px); }
.print-heading h1, .print-product h1 { font-size: clamp(2.25rem, 6vw, 3.8rem); }
.print-heading p { margin-top: .8rem; max-width: 53ch; color: var(--muted); font-size: 1.1rem; }
.print-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin-top: 1.45rem; }
.print-nav a { padding-block: .3rem; }
.print-caption { margin-top: .45rem; text-align: center; font-size: .93rem; }
.print-collection-description { max-width: 62ch; margin-top: .3rem; color: var(--muted); }
.print-product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: clamp(22px, 5vw, 65px); }
.print-preview-frame { aspect-ratio: 5 / 4; max-height: 72dvh; }
.print-preview-frame img { width: 100%; height: 100%; object-fit: contain; }
.print-thumbnails { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: .85rem; }
.print-thumbnails a { display: block; width: clamp(47px, 12vw, 68px); aspect-ratio: 1; padding: 3px; border: 1px solid var(--line); }
.print-thumbnails a:is(:hover, [aria-current]) { border-color: var(--accent); }
.print-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.print-preview-status { color: var(--muted); margin-top: .4rem; text-align: center; }
.print-preview-status:empty { margin: 0; }
.print-product-copy h1 { margin-bottom: .75rem; hyphens: auto; overflow-wrap: anywhere; }
.print-description { white-space: pre-line; color: var(--muted); overflow-wrap: anywhere; }
.print-form { margin-top: 1.6rem; }
.print-form h2 { font-size: 1.65rem; margin: 1.3rem 0 .45rem; }
.print-form label, .prints-admin label { display: grid; gap: .25rem; margin-block: .65rem; font-weight: 650; font-size: .92rem; }
.print-form :is(input:not([type=checkbox]), select, textarea), .prints-admin :is(input:not([type=file]), select, textarea) {
  width: 100%; padding: .55rem .45rem; min-height: 42px; border: 0; border-bottom: 1px solid #a59f94; border-radius: 0; font: inherit; font-weight: 400; color: var(--ink); background: #faf9f6;
}
.print-form [hidden] { display: none; }
.print-form .print-consent { display: flex; align-items: start; gap: .65rem; margin-top: 1.15rem; padding-block: .4rem; min-height: 44px; font-weight: 450; cursor: pointer; }
.print-consent input { flex: none; width: 24px; height: 24px; margin: 0; }
.print-price { font-size: 1.3rem; font-weight: 650; margin-top: .8rem; }
.print-form button { margin-top: .75rem; }
.print-form button:disabled { color: var(--muted); background: var(--wash); cursor: default; }
.print-form .form-state, .print-form .form-availability { margin-block: .75rem; }
.prints-admin { width: min(860px, 100% - 2 * var(--page-gutter)); }
.admin-print-nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-block: 1rem; }
.admin-print-nav [aria-current] { color: var(--accent); font-weight: 650; }
.admin-print-group { padding-block: 1rem; border-top: 1px solid var(--line); }
.admin-print-group li { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-block: .3rem; }
.admin-print-group ul { padding-inline-start: .5rem; }
.admin-print-group small { color: var(--muted); }
@media (max-width: 740px) { .print-product { grid-template-columns: minmax(0, 1fr); } }
