@font-face {
  font-family: Instrument Sans;
  src: url("./fonts/instrument-sans.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: Instrument Sans;
  src: url("./fonts/instrument-sans-medium.ttf") format("truetype");
  font-display: swap;
  font-weight: 500 700;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-italic.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: italic;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --soft: #f7f7f7;
  --ink: #191919;
  --muted: #555;
  --accent: #69703a;
  --action-hover: #3b3b3b;
  --line: #e2e2e2;
  --error: #9b2626;
  --motion-duration: 200ms;
  --serif: "Instrument Serif", Georgia, 'Times New Roman', serif;
  --layout-gap: clamp(.75rem, 2.8vw, 2rem);
  --section-padding: clamp(3rem, 6vw, 6rem);
  --section-intro-gap: 2rem;
  --card-padding: clamp(1.125rem, 3vw, 2rem);
  --field-inline-padding: 1rem;
  --file-field-padding: .4rem;
  font: 100% / 1.55 "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after, dialog::backdrop {
  box-sizing: border-box;
  transition: all var(--motion-duration, 200ms) ease;
}
body, h1, h2, h3, figure, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
section[id], #tellimusvorm { scroll-margin-top: 2rem; }
.container { width: min(100% - clamp(2rem, 7vw, 8rem), 76rem); margin-inline: auto; }

.skip-link {
  color: var(--paper);
  background: var(--ink);
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  transform: translateY(calc(-100% - 1rem));
}
.skip-link:focus { transform: none; }

.site-header, footer, .price-choice {
  --surface-shadow: 0 var(--surface-shadow-offset, 8px) 32px #2637470b;
  box-shadow: var(--surface-shadow);
}
.site-header, footer {
  position: relative;
  background: var(--paper);
}
.site-header {
  --header-height: 5rem;
  --wordmark-inset: 1rem;
  z-index: 1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}
.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  /* Match the horizontal inset of the P inside the square. */
  padding-inline-start: calc(var(--header-height) * 1.303);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img {
  position: absolute;
  z-index: 1;
  inset-inline-start: 0;
  inset-block-start: calc(50% - var(--header-height) / 2 + var(--wordmark-inset));
  width: var(--header-height);
  height: auto;
}
.wordmark:focus-visible img { outline: inherit; outline-offset: inherit; }
.wordmark-name { font: 1.625rem / 1 var(--serif); }
.menu-toggle:not([hidden]) { display: grid; }
.menu-toggle, .menu-close {
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-icon, .close-icon {
  position: relative;
  width: 1.25rem;
  height: 1rem;
}
.menu-toggle .menu-icon {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.menu-icon::before, .menu-icon::after, .close-icon::before, .close-icon::after {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  background: currentColor;
}
.menu-toggle .menu-icon::before { transform: translateY(-6px); }
.menu-toggle .menu-icon::after { transform: translateY(6px); }
.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
nav { display: flex; align-items: center; gap: clamp(.85rem, 3.4vw, 2.35rem); }
nav a {
  color: var(--ink);
  font-size: .9375rem;
  padding-block: .2rem;
  text-decoration: underline 1px transparent;
  text-underline-offset: .32em;
  white-space: nowrap;
}
nav a:is(:hover, :focus-visible) {
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}
.header-inner nav a { color: var(--muted); }

main > section { padding-block: var(--section-padding); }
.hero {
  --hero-gutter: max(clamp(1rem, 3.5vw, 4rem), (100vw - 76rem) / 2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--layout-gap);
  align-items: center;
}
.hero-copy::before, .section-heading::before {
  content: "";
  display: block;
  background: center / contain no-repeat;
  filter: drop-shadow(-2px 4px 3px rgb(25 25 25 / 35%));
  pointer-events: none;
}
.hero-copy::before {
  inline-size: clamp(9.75rem, 13.5vw, 13rem);
  aspect-ratio: 366 / 357;
  margin-block-end: .35rem;
  translate: -8px;
  background-image: url("./images/motiiv-p-labipaistev.webp");
}
h1, h2, h3 { font-family: var(--serif); }
h1, h2 { font-weight: 400; }
h3 { font-weight: 600; letter-spacing: 0.5px; }
h1 {
  font-size: clamp(3rem, 5.65vw, 6rem);
  line-height: 1.01;
}
h1 em { font-weight: 400; }
.hero-intro {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}
.hero-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1rem);
  max-width: 29rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: clamp(.75rem, 1.5vw, .875rem);
  line-height: 1.35;
}
.hero-detail-value {
  display: block;
  margin-bottom: .35rem;
  color: var(--ink);
  font: clamp(1.75rem, 3.2vw, 2.375rem) / 1 var(--serif);
  text-decoration: none;
}
.hero-actions, .form-actions { margin-top: 1.7rem; display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.75rem;
  font-size: .9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--paper);
  background: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #7F8552; }
.button[aria-disabled="true"] { opacity: .7; cursor: wait; }
.header-cta { padding: .5rem 1.75rem; }
.text-link { color: var(--ink); text-underline-offset: .27em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--muted); text-decoration-thickness: 2px; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  width: auto;
  height: 115%;
  max-width: none;
  /* Offset the blank margin to the left of the rotated artwork. */
  transform: translate(-4.6%, -50%) rotate(45deg);
}
.gallery-image img { width: 100%; height: auto; }

.gallery-section .section-heading::before {
  aspect-ratio: 270 / 277;
  background-image: url("./images/motiiv-keerud-labipaistev.webp");
}
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  row-gap: 1rem;
  margin-block-end: var(--section-intro-gap);
}
.gallery-section .section-intro h2 { align-self: start; }
.section-intro p { max-width: 42ch; color: var(--muted); }
h2 { font-size: clamp(2.3rem, 4.2vw, 4.15rem); line-height: 1.04; }
.gallery-stage { position: relative; }
.gallery-stage:has([data-gallery-outgoing]) { overflow-x: clip; }
.gallery-controls { margin-block-start: 1.5rem; }
.gallery:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem var(--layout-gap);
  scroll-margin-block-start: 2rem;
}
.gallery[data-gallery-outgoing] {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}
.gallery figure { min-width: 0; }
.gallery-image { position: relative; display: block; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.gallery-image img {
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-image:hover img { transform: scale(1.018); }
.gallery-photo-count {
  position: absolute;
  inset-block-start: 32px;
  inset-inline-end: 32px;
  inline-size: calc(1lh + .5rem + 2px);
  aspect-ratio: 1;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
}
.gallery-photo-count > span { transform: translateY(.5px); }
#muumiga-malestuskarp img, #vaikese-myga-malestuskarp img { object-position: center 22%; }
#nimepilt-ukssarvikuga img { object-position: center 44%; }
#karu-ohupallidega img { object-position: center 61%; }
#sebra .gallery-image img { object-position: center 28%; }
.gallery figcaption { padding-top: .7rem; }
.gallery h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.25; }
.gallery figcaption p { color: var(--muted); font-size: .875rem; margin-top: .15rem; }

.services { border-top: 1px solid var(--line); }
.section-heading::before {
  inline-size: clamp(5.25rem, 7.5vw, 7rem);
  margin-block-end: .75rem;
}
.services .section-heading::before {
  aspect-ratio: 335 / 324;
  background-image: url("./images/motiiv-lehed-labipaistev.webp");
}
.price-list, .steps { margin: 0; padding: 0; list-style: none; }
.price-list { display: grid; gap: max(1.5rem, var(--layout-gap)) var(--layout-gap); }
.price-choice {
  --price-border-width: 1px;
  --price-padding: calc(var(--card-padding) + 1px - var(--price-border-width));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2rem);
  height: 100%;
  padding: var(--price-padding);
  border: var(--price-border-width) solid var(--line);
  text-decoration: none;
  transition-property: background-color, border-color, box-shadow;
}
.price-choice:has(.price-badge) { --price-border-width: 2px; }
.price-choice:hover, .price-choice:focus-visible {
  border-color: var(--muted);
  background: var(--soft);
}
.price-choice:hover {
  box-shadow: var(--surface-shadow), inset 0 0 0 calc(2px - var(--price-border-width)) var(--muted);
}
.price-badge {
  position: absolute;
  inset-block-start: calc(var(--price-border-width) / -2);
  inset-inline-start: var(--price-padding);
  transform: translateY(-50%);
  padding: .25rem .75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--paper));
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.price-choice:is(:hover, :focus-visible) .price-badge {
  background-color: var(--muted);
  color: var(--paper);
}
.price-service h3, .steps h3, .privacy-card h2, .privacy-copy h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  line-height: 1.13;
}
.price-service p { margin-top: .5rem; }
.price-service p, .price-note, .steps li p { color: var(--muted); }
.price-choice-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price-choice-label { color: var(--muted); font-size: .875rem; }
.price-note { margin-block-start: var(--section-intro-gap); }
.price-cta { margin-top: .65rem; }

.about { background: var(--soft); }
.about-inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2rem;
}
.about img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.about h2 { margin-bottom: 1.15rem; }
.about p + p, .order-copy p + p { margin-top: .85rem; }
.about p, .order-copy p { color: var(--muted); }

.process .section-heading::before {
  aspect-ratio: 322 / 332;
  background-image: url("./images/motiiv-rosett-labipaistev.webp");
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.step-number {
  display: block;
  color: var(--muted);
  font: clamp(2.5rem, 4.5vw, 4rem) / 1 var(--serif);
  letter-spacing: -.045em;
  margin-bottom: 1rem;
}
.steps li p { max-width: 31ch; margin-top: .6rem; }

.order {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.8rem;
}
.order h2 { margin-bottom: 1.25rem; }
.order-copy p { max-width: 42ch; }
form, label { display: grid; }
form { gap: 1.1rem; }
.fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .95rem var(--layout-gap);
}
label { gap: .35rem; font-weight: 600; }
label small, .order-types legend small { font-size: .875rem; color: var(--muted); font-weight: 400; }
input:not([type="checkbox"]), textarea, .order-type-trigger {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #8a8a8a;
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: .55rem var(--field-inline-padding);
  border-radius: 2px;
  font-weight: 400;
}
input:not([type="checkbox"], [aria-invalid="true"]):focus,
textarea:focus, .order-type-trigger:focus { border-color: var(--ink); }
.order-types { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.order-types legend { padding: 0; font-weight: 600; }
.order-type-menu { position: relative; margin-block-start: .35rem; }
.order-type-menu::details-content {
  opacity: 0;
  transition: opacity var(--motion-duration) ease,
    content-visibility var(--motion-duration) allow-discrete;
}
.order-type-menu[open]::details-content { opacity: 1; }
.order-type-menu:not([open]) .order-type-options { pointer-events: none; }
.order-type-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  list-style: none;
  cursor: pointer;
}
.order-type-trigger::-webkit-details-marker { display: none; }
.order-type-trigger::after {
  content: "";
  flex: 0 0 .5rem;
  height: .5rem;
  margin-inline-end: .2rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-25%) rotate(45deg);
}
.order-type-menu[open] .order-type-trigger::after { transform: translateY(25%) rotate(225deg); }
.order-types[aria-invalid="true"] .order-type-trigger { border-color: var(--error); }
.order-type-options {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  inset-block-start: calc(100% + .3rem);
  max-height: min(22rem, 55dvh);
  overflow: auto;
  padding: .25rem;
  border: 1px solid #8a8a8a;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 4px 16px #19191920;
}
.order-type-options label {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .4rem .65rem;
  font-weight: 400;
  cursor: pointer;
}
.order-type-options label:hover, .order-type-options label:has(:focus-visible) { background: var(--soft); }
.order-type-options input {
  flex: 0 0 auto;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.order-type-chips {
  flex-wrap: wrap;
  gap: .4rem;
  margin: .55rem 0 0;
  padding: 0;
  list-style: none;
  transition: display var(--motion-duration) allow-discrete;
}
.order-type-chips:not([hidden]) { display: flex; }
.order-type-chips > li {
  opacity: 1;
  transition: opacity var(--motion-duration) ease,
    display var(--motion-duration) allow-discrete;
}
.order-type-chips > li[hidden] { opacity: 0; pointer-events: none; }
@starting-style {
  .order-type-chips > li:not([hidden]) { opacity: 0; }
}
.gallery-photo-count, .order-type-chip {
  display: inline-flex;
  align-items: center;
  padding-block: .25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
}
.order-type-chip {
  gap: .5rem;
  padding-inline: .9rem;
  background: var(--ink);
  color: var(--paper);
  text-align: start;
  cursor: pointer;
}
.order-type-chip:hover { background: var(--action-hover); }
.order-type-chip::after {
  content: "";
  flex: 0 0 .5rem;
  block-size: .5rem;
  background:
    linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%);
}
.price-choice[data-service-flight], .order-type-chips > [data-service-flight] { visibility: hidden; }
.price-choice[data-service-flight] { opacity: 0; }
.service-flight {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 3;
  pointer-events: none;
}
.service-flight, .service-flight > * { transition: none; }
.service-flight > .price-choice { position: absolute; inset: 0 auto auto 0; transform-origin: top left; }
.service-flight > .order-type-chip { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
textarea { resize: vertical; }
.file-field { display: grid; gap: .4rem; }
input[type="file"] { padding: var(--file-field-padding); }
input::file-selector-button {
  font: inherit;
  color: var(--ink);
  background: var(--soft);
  border: 0;
  padding: .35rem calc(var(--field-inline-padding) - var(--file-field-padding));
  margin-inline-end: .55rem;
  cursor: pointer;
  transition: background-color var(--motion-duration) ease;
}
input::file-selector-button:hover { background: var(--line); }
[aria-invalid="true"] { border-color: var(--error); }
.form-note, .form-status { color: var(--muted); font-size: .9375rem; }
.form-actions { margin-top: 0; gap: .65rem 1rem; }
.field-error, .form-status[data-error] { color: var(--error); }
.field-error { font-size: .9375rem; }
.field-error:not(:empty) { margin-top: .35rem; }
.response { padding-block: 4rem; }
.response h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.25rem; }
.response p + p { margin-top: 1rem; }

footer {
  --surface-shadow-offset: -8px;
  color: var(--muted);
  font-size: .9375rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 5.25rem;
  gap: .75rem 1.15rem;
  padding-block: 1.25rem;
}
.footer-tagline {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: var(--ink);
  font: 1.375rem / 1.15 var(--serif);
  text-decoration: none;
}
.footer-tagline img { flex: none; width: 2.5rem; height: auto; }
.footer-meta, .footer-copyright { display: flex; align-items: baseline; gap: 1rem; }
.footer-meta { flex-wrap: wrap; row-gap: .5rem; }

.privacy-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .9375rem;
}
.privacy-dialog[open] { display: flex; flex-direction: column; }
.privacy-dialog:target:not([open], [data-privacy-enhanced]) {
  display: block;
  position: static;
  height: auto;
}
.privacy-dialog:target:not([open], [data-privacy-enhanced]) .close-dialog { display: none; }
.animated-dialog::backdrop { background: #17211d80; }
@media (prefers-reduced-motion: no-preference) {
  .animated-dialog::backdrop { transition: opacity 150ms ease; }
  .animated-dialog[data-dialog-closing]::backdrop { opacity: 0; }
  @starting-style {
    .animated-dialog[open]::backdrop { opacity: 0; }
  }
}
.privacy-card {
  position: relative;
  flex: none;
  width: min(34rem, 100%);
  margin: auto;
  padding: var(--card-padding);
  overflow-wrap: anywhere;
  background: var(--paper);
  box-shadow: 0 4px 24px #3a413f30;
}
.privacy-card header {
  margin-block-end: .75rem;
  padding-inline-end: 2.75rem;
}
.privacy-copy { display: grid; gap: .75rem; }
.privacy-copy h3 { margin-block-end: .5rem; }
.privacy-copy p + p { margin-block-start: .5rem; }

.menu-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 4.25rem 1rem;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper);
  opacity: 0;
  transition: all var(--motion-duration) ease,
    display var(--motion-duration) allow-discrete,
    overlay var(--motion-duration) allow-discrete;
}
.menu-dialog[open] {
  display: grid;
  align-items: safe center;
  justify-items: center;
  opacity: 1;
}
@starting-style {
  .menu-dialog[open] { opacity: 0; }
}
.menu-dialog::backdrop { background: transparent; }
.menu-close {
  position: fixed;
  inset-block-start: max(1rem, env(safe-area-inset-top));
  inset-inline-end: max(1rem, 3.5vw, env(safe-area-inset-right));
  display: grid;
}
.menu-content, .menu-content nav {
  display: grid;
  gap: 40px;
  justify-items: center;
  text-align: center;
}
.menu-content:focus { outline: none; }
.menu-content nav a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: .25rem .55rem;
  font: inherit;
}
.menu-content .header-cta { font-size: 1rem; }

.photo-dialog {
  position: fixed;
  overflow: auto;
  width: max-content;
  max-width: min(94vw, 65rem);
  max-height: 94vh;
  margin: auto;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 0;
}
.photo-dialog figure { position: relative; }
.photo-dialog img { max-height: 80vh; width: auto; margin-inline: auto; object-fit: contain; }
.photo-dialog:has(.photo-controls:not([hidden])) img { max-height: min(80vh, calc(94dvh - 4rem)); }
.icon-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.icon-button:hover { background: var(--soft); }
.close-dialog {
  position: absolute;
  top: .65rem;
  right: .65rem;
}
.close-dialog .close-icon { width: 1rem; }
.carousel-controls:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.carousel-controls .icon-button::before {
  content: "";
  inline-size: 1.5rem;
  block-size: 1.5rem;
  background: url("./images/nool.svg") center / contain no-repeat;
}
.carousel-previous::before { transform: scaleX(-1); }
.carousel-count { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.gallery-carousel { --gallery-arrow-gap: 32px; }
.gallery-carousel[data-side-controls] { position: relative; }
.gallery-carousel[data-side-controls] .gallery-controls:not([hidden]) { display: contents; }
.gallery-carousel[data-side-controls] .gallery-controls .carousel-count {
  position: absolute;
  inset: 0 auto auto 0;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.gallery-carousel[data-side-controls] .icon-button {
  position: absolute;
  inset-block-start: var(--gallery-arrow-center, 50%);
  translate: 0 -50%;
  transition-property: background-color;
}
.gallery-carousel[data-side-controls] .carousel-previous { inset-inline-end: calc(100% + var(--gallery-arrow-gap)); }
.gallery-carousel[data-side-controls] .carousel-next { inset-inline-start: calc(100% + var(--gallery-arrow-gap)); }
.photo-controls { padding: .5rem 1rem; }
body:has(.photo-dialog[open], .menu-dialog[open]),
:root:has(.privacy-dialog[open]) { overflow: hidden; }

@media (min-width: 680px) {
  .hero-inner { position: relative; }
  .hero-copy { grid-area: 1 / 1 / 2 / 8; z-index: 1; }
  .hero-photo {
    position: absolute;
    grid-area: 1 / 5 / 2 / -1;
    inset-block: calc(-1 * var(--section-padding));
    inset-inline-start: 0;
    inset-inline-end: calc(-1 * var(--hero-gutter));
    pointer-events: none;
  }
  .hero-photo img { inset-block-start: calc(50% - 100px); }
}

@media (min-width: 761px) {
  .header-inner, .section-intro, .gallery:not([hidden]), .price-list, .about-inner, .steps, .order {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--layout-gap);
  }
  .wordmark { grid-column: 1 / 4; justify-self: start; }
  .header-inner nav { grid-column: 4 / 10; justify-self: center; }
  .header-cta { grid-column: 10 / -1; justify-self: end; white-space: nowrap; }
  .price-list > li { grid-column: span 6; }
  .section-intro h2 { grid-column: span 8; }
  .section-intro > p { grid-column: 9 / -1; }
  .services .section-intro > p { justify-self: end; text-align: end; }
  .gallery figure, .steps > li, .order-copy, .about-inner > img { grid-column: span 4; }
  .gallery .gallery-wide { grid-column: span 6; }
  .about-copy, .order > form { grid-column: 5 / -1; }
  .footer-meta { margin-inline-start: auto; }
}

@media (min-width: 1100px) {
  .hero-copy { grid-column-end: 7; }
  .hero-photo img { inset-block-start: calc(50% - 50px); height: 94%; }
  .price-list > li { grid-column: span 3; }
}

@media (max-width: 760px) {
  .site-header {
    --header-height: 4.5rem;
    --wordmark-inset: .75rem;
  }
  .header-inner {
    flex-wrap: wrap;
    padding-block: .65rem;
  }
  .header-inner nav { width: 100%; flex-wrap: wrap; }
  .footer-meta { flex-basis: 100%; }
  .section-heading::before {
    inline-size: min(7rem, 100%);
  }
  .about img { order: 1; max-width: 28rem; justify-self: center; }
}

@media (width < 680px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-photo { display: none; }
  .hero-copy::before { inline-size: min(13rem, 100%); }
  h1 { font-size: clamp(3.05rem, 10vw, 5.4rem); }
  .hero-intro { margin-top: 1rem; }
  .hero-details { max-width: none; }
  .hero-actions { margin-top: 1.3rem; }
}

@media (max-width: 510px) {
  .gallery:not([hidden]), .fields-row, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { display: grid; grid-template-columns: 3.4rem 1fr; column-gap: .75rem; }
  .steps li p { grid-column: 2; max-width: none; }
  .steps h3 { align-self: center; }
  .step-number { margin-bottom: 0; }
  .hero-actions { gap: 1rem; }
}

@media (max-width: 420px) {
  nav { gap: clamp(.9rem, 5vw, 1.5rem); }
  .footer-meta { flex-direction: column; }
  .footer-divider { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { --reveal-start: 100px; }

  [data-reveal-pending]:not(:focus-within, :target) {
    opacity: 0;
    transition: none;
  }
  [data-reveal-visible]:not(:focus-within, :target) {
    animation: content-reveal 280ms ease-out backwards;
    animation-delay: var(--reveal-delay, 0ms);
    transition: none;
  }

  @supports (animation-timeline: view()) and (animation-range: entry 0px entry 150px) {
    [data-scroll-reveal]:not(:focus-within, :target) {
      --reveal-entry: calc(var(--reveal-start) + var(--reveal-offset, 0px));
      animation: content-reveal 1ms linear both;
      animation-timeline: view();
      animation-range: entry var(--reveal-entry) entry calc(var(--reveal-entry) + 150px);
    }
  }

  @media (min-width: 761px) {
    #galerii-vaade-1 > :is(:nth-child(2), :nth-child(5)),
    #galerii-vaade-2 > :is(:nth-child(2), :nth-child(4)), .price-list > :nth-child(even),
    .steps > :nth-child(2) {
      --reveal-offset: 48px;
      --reveal-delay: 80ms;
    }
    #galerii-vaade-1 > :nth-child(3), #galerii-vaade-2 > :nth-child(5), .steps > :nth-child(3) {
      --reveal-offset: 96px;
      --reveal-delay: 160ms;
    }
  }
  @media (min-width: 1100px) {
    .price-list > :nth-child(3) {
      --reveal-offset: 96px;
      --reveal-delay: 160ms;
    }
    .price-list > :nth-child(4) {
      --reveal-offset: 144px;
      --reveal-delay: 240ms;
    }
  }
}

@keyframes content-reveal {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-duration: 0ms; scroll-behavior: auto; }
  dialog::backdrop { transition-duration: 0ms; }
}
