:root {
  --ground: #F6E4E6;
  --hero: #E7BFC5;
  --plum: #4A2531;
  --accent: #9E3F57;
  --scene: #C97F8E;
  --cream: #FFF8F8;
  --accent-text: #86334B;
  --plum-soft: #7A5361;
  --line: rgb(74 37 49 / 0.16);
  --shadow: 0 30px 60px -32px rgb(74 37 49 / 0.45);

  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-script: 'Pinyon Script', 'Brush Script MT', cursive;
  --f-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 96px;
  --gutter: 16px;
  --max: 1200px;
  --arch: 280px 280px 24px 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--plum);
  background: var(--ground);
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.services :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--hero);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--plum);
  color: var(--cream);
  text-decoration: none;
  border-radius: 999px;
}

.skip-link:focus {
  top: 0.5rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Typography */

.label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.label--dark {
  color: var(--hero);
}

.display-title,
.hero-title,
.panel-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
}

.display-title {
  margin-top: 0.4rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.script-line,
.script-title {
  font-family: var(--f-script);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.script-line {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  color: var(--accent);
}

.script-title {
  margin-top: 0.4rem;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  color: var(--hero);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.6rem;
  border: 1.5px solid var(--plum);
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-solid {
  background: var(--plum);
  color: var(--cream);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--plum);
}

.btn-outline:hover {
  background: var(--plum);
  color: var(--cream);
}

/* Header: floating pill */

.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  height: 0;
  padding-inline: var(--gutter);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 1100px;
  min-height: 64px;
  margin-inline: auto;
  padding: 0.5rem 0.75rem 0.5rem 1.5rem;
  background: rgb(255 248 248 / 0.92);
  border: 1px solid rgb(74 37 49 / 0.14);
  border-radius: 999px;
}

@supports (backdrop-filter: blur(10px)) {
  .nav {
    backdrop-filter: blur(20px) saturate(140%);
  }
}

.brand {
  margin-right: auto;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--plum);
  font: inherit;
  cursor: pointer;
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle-bars {
  position: relative;
  transform: translateY(-3px);
}

.nav-toggle-bars::before {
  content: '';
  position: absolute;
  top: 7px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(-90deg);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--accent);
}

@media (max-width: 899px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 0.5rem 1.5rem 1rem;
    background: rgb(255 248 248 / 0.97);
    border: 1px solid rgb(74 37 49 / 0.14);
    border-radius: 28px;
  }

  .js .nav-links {
    display: none;
  }

  .js .nav-links.is-open {
    display: block;
  }

  .nav-links a {
    padding: 0.9rem 0;
    min-height: 48px;
    font-size: 13px;
  }

  .nav-links li + li {
    border-top: 1px solid var(--line);
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .nav-links {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    padding: 0;
    background: none;
    border: 0;
  }

  html:not(.js) .nav {
    flex-wrap: wrap;
    border-radius: 28px;
  }
}

@media (min-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-left: 2rem;
  }

  .brand {
    margin-right: 0;
    justify-self: start;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    gap: 2.25rem;
  }

  .nav-links a {
    padding: 0.5rem 0;
  }

  .nav-call {
    justify-self: end;
  }
}

main > section {
  scroll-margin-top: var(--nav-h);
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  background: var(--hero);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  overflow: clip;
  padding: 7rem var(--gutter) 9rem;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  max-width: var(--max);
  margin-inline: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
}

.hero-copy .script-line {
  margin-bottom: -0.25em;
  color: var(--accent-text);
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.hero-title {
  font-size: clamp(4.5rem, 21vw, 8.125rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--plum);
}

.hero-tagline {
  max-width: 32ch;
  margin-top: 1rem;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.fan {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin-inline: auto;
  aspect-ratio: 3 / 4.15;
}

.fan-slot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--w, 100%);
  transform: translate3d(-50%, calc(var(--par, 0) * var(--k, 0) * 1px), 0);
}

.fan-slot--center {
  --k: 0.05;
  z-index: 3;
}

.fan-slot--left,
.fan-slot--right {
  display: none;
}

.fan-frame {
  position: relative;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--scene);
  box-shadow: var(--shadow);
  transform-origin: 50% 100%;
  transform: translate3d(var(--dx, 0), 0, 0) rotate(var(--rot, 0deg));
}

.fan-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan-script {
  position: absolute;
  left: -0.5rem;
  bottom: 1.5rem;
  z-index: 5;
  padding: 0.3rem 1.1rem 0.45rem;
  border-radius: 999px;
  background: rgb(246 228 230 / 0.88);
  color: var(--accent-text);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  white-space: nowrap;
}

@keyframes fan-out {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(var(--dx, 0), 0, 0) rotate(var(--rot, 0deg));
  }
}

@media (min-width: 768px) {
  .hero {
    padding-top: 8.5rem;
    padding-bottom: 12rem;
  }

  .hero-title {
    font-size: 5.5rem;
  }

  .fan {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    aspect-ratio: 1 / 0.86;
    perspective: none;
    transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  }

  .fan-slot--center {
    --w: 54%;
  }

  .fan-slot--left,
  .fan-slot--right {
    display: block;
    --w: 46%;
    --k: 0.16;
    bottom: 4%;
    z-index: 1;
  }

  .fan-slot--left .fan-frame {
    --dx: -68%;
    --rot: -9deg;
  }

  .fan-slot--right .fan-frame {
    --dx: 68%;
    --rot: 9deg;
  }

  .fan-script {
    left: -1rem;
    bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    min-height: min(640px, calc(100dvh - 22rem));
  }

  .hero-title {
    font-size: 8.125rem;
  }

  .fan {
    max-width: 660px;
    margin-inline: 0 auto;
    aspect-ratio: 1 / 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fan-frame {
    animation: fan-out 0.9s var(--spring) both;
  }

  .fan-slot--center .fan-frame {
    --dx: 0px;
    animation-name: none;
  }

  .fan-slot--left .fan-frame {
    animation-delay: 0.15s;
  }

  .fan-slot--right .fan-frame {
    animation-delay: 0.3s;
  }
}

/* Sections */

.section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Rose stem */

.has-stem {
  overflow: clip;
}

.has-stem > .container {
  padding-left: 56px;
}

@media (min-width: 768px) {
  .has-stem > .container {
    padding-left: 120px;
  }
}

@media (min-width: 1440px) {
  .has-stem > .container {
    padding-left: var(--gutter);
  }
}

.rose-stem {
  position: absolute;
  top: clamp(2.5rem, 7vw, 5rem);
  left: 6px;
  z-index: 0;
  width: 44px;
  height: 176px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  pointer-events: none;
}

.rose-stem use {
  vector-effect: non-scaling-stroke;
}

@media (min-width: 768px) {
  .rose-stem {
    left: 20px;
    width: 80px;
    height: 320px;
  }
}

@media (min-width: 1440px) {
  .rose-stem {
    left: calc((100vw - var(--max)) / 2 - 120px);
    width: 100px;
    height: 400px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rose-stem {
      animation: draw-stem linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 45%;
    }
  }

  @supports not (animation-timeline: view()) {
    .js .rose-stem {
      stroke-dashoffset: 1;
      transition: stroke-dashoffset 2.6s var(--ease);
    }

    .js .rose-stem.is-drawn {
      stroke-dashoffset: 0;
    }
  }
}

@keyframes draw-stem {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* Dobrodošli */

.welcome-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.welcome-arch {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--hero);
}

.welcome-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-copy {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.welcome-copy > p:not(.label) {
  max-width: 52ch;
}

.welcome-copy .display-title {
  margin-top: -0.4rem;
  letter-spacing: 0.04em;
}

.welcome-detail {
  width: 160px;
  margin-top: 0.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  background: var(--hero);
}

.welcome-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .welcome-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }

  .welcome-arch {
    width: min(100%, 460px);
    margin-inline: auto 0;
  }

  .welcome-detail {
    width: 200px;
  }
}

/* Usluge (dark) */

.services {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--plum);
  color: var(--cream);
}

.svc-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.svc-row {
  position: relative;
}

.svc-row::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgb(255 248 248 / 0.15);
}

.js .svc-row.reveal {
  transform: translateY(56px);
}

.js .svc-row.reveal.is-in {
  transform: none;
}

.js .svc-row::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.2s;
}

.js .svc-row.is-in::after {
  transform: scaleX(1);
}

.svc-link {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  grid-template-areas:
    'num name name'
    '. sub from';
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 1.25rem 4.75rem 1.25rem 0;
  color: var(--cream);
  text-decoration: none;
  transition: opacity 0.4s var(--ease);
}

.svc-num {
  grid-area: num;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--hero);
}

.svc-name {
  grid-area: name;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(2.25rem, 10vw, 4.5rem);
  line-height: 1.08;
  transition: transform 0.5s var(--ease);
}

.svc-sub {
  grid-area: sub;
  font-size: 0.95rem;
  color: rgb(255 248 248 / 0.82);
}

.svc-from {
  grid-area: from;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--hero);
}

.svc-thumb {
  position: absolute;
  top: 50%;
  right: 0;
  width: 56px;
  height: 74px;
  overflow: hidden;
  border-radius: 56px 56px 10px 10px;
  background: var(--hero);
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.svc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-word {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  background: var(--hero);
  color: var(--plum);
  font-family: var(--f-script);
  font-size: 1rem;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.svc-float {
  display: none;
}

.svc-link.is-active .svc-name {
  transform: translateX(10px);
}

@media (hover: none), (pointer: coarse) {
  .svc-list.has-active .svc-link:not(.is-active) {
    opacity: 0.45;
  }

  .svc-link.is-active .svc-thumb {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@media (min-width: 900px) {
  .svc-link {
    grid-template-columns: 3.5rem minmax(0, 1fr) 13rem 7rem;
    grid-template-areas: 'num name sub from';
    align-items: center;
    padding: 1.1rem 0;
  }

  .svc-name {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
  }

  .svc-from {
    justify-self: end;
    font-size: 1.05rem;
  }

  .svc-thumb {
    display: none;
  }

  .svc-link.is-active .svc-name {
    transform: translateX(24px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .svc-list.has-active .svc-link:not(.is-active) {
    opacity: 0.35;
  }

  .svc-float {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    display: block;
    width: 260px;
    height: 340px;
    margin: -170px 0 0 -130px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    will-change: transform;
  }

  .svc-float.is-on {
    opacity: 1;
  }

  .svc-float-item {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--arch);
    background: var(--hero);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  }

  .svc-float-item.is-on {
    opacity: 1;
    transform: none;
  }

  .svc-float-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .svc-float-item .svc-word {
    font-size: 3.25rem;
  }
}

/* Radovi: klaster */

.works {
  overflow-x: clip;
}

.works-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.works-lead {
  margin-top: 0.75rem;
  max-width: 36ch;
}

.world-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.world-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.world-links a:hover {
  color: var(--accent);
}

.cluster {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.cl-tile {
  position: absolute;
  left: var(--mx, var(--x));
  top: var(--my, var(--y));
  z-index: 1;
  display: block;
  width: var(--mw, var(--w));
  text-decoration: none;
  will-change: transform, opacity;
}

.cl-tile--wide {
  display: none;
}

.cl-tile:hover,
.cl-tile:focus-visible {
  z-index: 6;
}

.cl-tile--center {
  z-index: 3;
}

.cl-float {
  display: block;
  animation: cl-float calc(5s + var(--i) * 0.45s) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.8s);
}

.cl-card {
  position: relative;
  display: block;
  aspect-ratio: var(--asp);
  overflow: hidden;
  border-radius: 22px;
  background: var(--hero);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.cl-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  display: grid;
  max-width: calc(100% - 1rem);
  padding: 0.35rem 0.85rem 0.45rem;
  border-radius: 18px;
  background: rgb(255 248 248 / 0.95);
  color: var(--plum);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.cl-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
}

.cl-script {
  font-family: var(--f-script);
  font-size: 1.05rem;
  color: var(--accent-text);
}

.cl-tile:hover .cl-card,
.cl-tile:focus-visible .cl-card {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.cl-tile:hover .cl-label,
.cl-tile:focus-visible .cl-label {
  opacity: 1;
  transform: none;
}

@keyframes cl-float {
  from { transform: translate3d(0, -4px, 0); }
  to { transform: translate3d(0, 4px, 0); }
}

@media (min-width: 900px) {
  .works-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
  }

  .cl-tile {
    left: var(--x);
    top: var(--y);
    width: var(--w);
  }

  .cl-tile--wide {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-float {
    animation: none;
  }
}

/* Svaki nokat je mali vrt */

.vrt {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--ground);
  overflow: clip;
}

.vrt-inner {
  position: relative;
  z-index: 2;
}

.vrt-line {
  padding-inline: var(--gutter);
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.5rem, 15vw, 6.9rem);
  line-height: 1.1;
  text-align: center;
  color: var(--plum);
}

.word {
  display: inline-block;
  opacity: var(--o, 1);
  transform: translate3d(0, calc((1 - var(--o, 1)) * 32px), 0);
}

.mq {
  margin-top: 2.5rem;
  overflow: hidden;
}

.mq + .mq {
  margin-top: 1rem;
}

.mq-track {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: mq-slide 70s linear infinite;
}

.mq--rev .mq-track {
  animation-direction: reverse;
}

.mq:hover .mq-track {
  animation-play-state: paused;
}

.mq-item {
  flex: none;
  width: 150px;
  margin-right: 0.75rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 16px 16px;
  background: var(--hero);
}

.mq-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vrt-sub {
  margin-top: 2.25rem;
  padding-inline: var(--gutter);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
  color: var(--accent-text);
}

@keyframes mq-slide {
  to { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 768px) {
  .mq-item {
    width: 220px;
    margin-right: 1rem;
  }

  .vrt-line {
    font-size: 6.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mq-track {
    width: auto;
    margin-inline: auto;
    animation: none;
  }

  .mq {
    display: flex;
    justify-content: center;
  }

  .mq-item[aria-hidden='true'] {
    display: none;
  }
}

/* Petals */

.petals {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: clip;
  pointer-events: none;
}

.hero .petals {
  z-index: 4;
}

.petal {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 1.33);
  opacity: var(--o);
  animation: petal-fall var(--d) linear infinite;
  animation-delay: calc(var(--d) * var(--ph) * -1);
  will-change: transform;
}

.petal-sway {
  display: block;
  width: 100%;
  height: 100%;
  animation: petal-sway var(--sd) ease-in-out infinite alternate;
  animation-delay: calc(var(--sd) * var(--ph2) * -1);
}

.petal-sway svg {
  width: 100%;
  height: 100%;
  color: var(--c);
  animation: petal-flutter var(--fd) ease-in-out infinite;
  animation-delay: calc(var(--fd) * var(--ph2) * -1);
}

.petals.is-paused .petal,
.petals.is-paused .petal-sway,
.petals.is-paused .petal-sway svg {
  animation-play-state: paused;
}

.petals--static .petal,
.petals--static .petal-sway,
.petals--static .petal-sway svg {
  animation: none;
}

.petals--static .petal {
  top: var(--y);
  transform: rotate(var(--r));
}

@keyframes petal-fall {
  from { transform: translate3d(0, -60px, 0); }
  to { transform: translate3d(0, var(--fall, 900px), 0); }
}

@keyframes petal-sway {
  from { transform: translate3d(calc(var(--sa) * -1), 0, 0); }
  to { transform: translate3d(var(--sa), 0, 0); }
}

@keyframes petal-flutter {
  0% { transform: perspective(160px) rotateZ(-24deg) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(160px) rotateZ(22deg) rotateX(68deg) rotateY(48deg); }
  100% { transform: perspective(160px) rotateZ(-24deg) rotateX(0deg) rotateY(0deg); }
}

/* Cjenik */

.price-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.price-note {
  margin-top: 1rem;
  max-width: 40ch;
  font-size: 0.95rem;
  color: var(--plum-soft);
}

.price-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.pill {
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--plum);
  border-radius: 999px;
  background: transparent;
  color: var(--plum);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pill:hover {
  background: rgb(74 37 49 / 0.08);
}

.pill[aria-pressed='true'] {
  background: var(--plum);
  color: var(--cream);
}

html:not(.js) .price-cats {
  display: none;
}

.price-card {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.js .price-group:not(.is-active) {
  display: none;
}

.price-group + .price-group {
  margin-top: 2.5rem;
}

.js .price-group + .price-group {
  margin-top: 0;
}

.price-group-title {
  margin-bottom: 0.75rem;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  padding: 0.7rem 0;
  vertical-align: baseline;
}

.price-table thead th {
  padding-block: 0 0.6rem;
  padding-left: 0.5rem;
  vertical-align: bottom;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
  color: var(--plum-soft);
}

.price-table thead th:not(:first-child) {
  width: 4.75rem;
}

.price-table tbody tr {
  border-top: 1px solid var(--line);
}

.price-table tbody th {
  padding-right: 0.75rem;
  font-weight: 400;
  text-align: left;
  overflow-wrap: anywhere;
}

.price-table td {
  padding-left: 0.5rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-anchor {
  color: var(--plum-soft);
}

.price-current {
  font-weight: 500;
}

@media (min-width: 768px) {
  .price-table thead th {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .price-table thead th:not(:first-child) {
    width: 8rem;
  }
}

@media (min-width: 960px) {
  .price-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }

  .price-intro {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
  }
}

/* O meni + kontakt */

.about-card {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  border-radius: 32px;
  background: var(--hero);
}

.about-media {
  width: 100%;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  background: var(--scene);
}

.about-body {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.75rem;
}

.about-body .script-line {
  color: var(--accent-text);
  margin-bottom: -0.25em;
}

.about-name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
}

.about-text {
  max-width: 44ch;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  width: 100%;
  margin-top: 0.75rem;
}

.contact-list > div:last-child {
  grid-column: 1 / -1;
}

.contact-list dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.contact-list dd {
  margin-top: 0.1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-list a {
  display: inline-block;
  margin-block: -0.6rem;
  padding-block: 0.6rem;
  text-underline-offset: 0.2em;
}

.contact-list a:hover {
  color: var(--accent-text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.directions {
  margin-top: 1.5rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border: 1.5px solid var(--hero);
  border-radius: 28px;
}

.directions-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}

.directions p {
  margin-top: 0.4rem;
  max-width: 60ch;
}

.directions {
  display: grid;
  gap: 1.25rem;
}

.directions-copy .btn {
  margin-top: 1rem;
}

.directions-map {
  overflow: hidden;
  border-radius: 20px;
  background: var(--hero);
  aspect-ratio: 4 / 3;
}

.map-consent {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1.25rem;
  text-align: center;
}

.map-consent p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.5;
}

html:not(.js) .map-consent .btn {
  display: none;
}

.directions-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px) {
  .directions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 3rem;
    align-items: center;
  }

  .directions-map {
    aspect-ratio: 16 / 9;
  }

  .about-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .about-body {
    padding: 0.5rem 1rem 0.5rem 0;
  }
}

/* Footer */

.site-footer {
  padding-block: 3rem;
  background: var(--plum);
  color: var(--cream);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: 0.22em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
}

.footer-copy {
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-links button {
  display: inline-block;
  padding-block: 0.75rem;
  text-underline-offset: 0.2em;
}

.footer-links button {
  padding-inline: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer-credit {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 248 248 / 0.2);
  font-size: 0.875rem;
}

.footer-credit a {
  text-underline-offset: 0.2em;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

/* World panels (dialogs) */

.world-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--plum);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.world-dialog::backdrop {
  background: var(--ground);
}

.world-dialog[open] {
  animation: panel-in 0.5s var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.panel {
  display: grid;
  gap: 2rem;
  max-width: 1240px;
  min-height: 100%;
  margin-inline: auto;
  padding: 5.5rem var(--gutter) 3rem;
}

.panel-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

.panel-close:hover {
  background: var(--accent);
}

.panel-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-media {
  position: relative;
  width: min(100%, 380px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--hero);
}

.panel-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-body {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 1rem;
}

.panel-body .script-line {
  margin-bottom: -0.35em;
}

.panel-title {
  font-size: clamp(3rem, 9vw, 5.5rem);
}

.panel-lead {
  max-width: 48ch;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: var(--hero);
}

.gallery-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:focus-visible {
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    align-items: start;
    padding-top: 6rem;
  }

  .panel-media {
    position: sticky;
    top: 6rem;
    width: min(100%, calc((100dvh - 9rem) * 0.75));
    margin-inline: auto;
  }

}

html:not(.js) .world-dialog,
html.no-dialog .world-dialog {
  position: static;
  display: block;
  height: auto;
  overflow: visible;
  border-top: 1px solid var(--line);
}

html:not(.js) .panel-close,
html.no-dialog .panel-close {
  display: none;
}

html:not(.js) .panel,
html.no-dialog .panel {
  padding-top: 3rem;
}

/* Lightbox */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(38 16 25 / 0.96);
  color: var(--hero);
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: rgb(38 16 25 / 0.9);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 4rem var(--gutter) 1.5rem;
  touch-action: pan-y;
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  object-fit: contain;
  border-radius: 16px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption {
  max-width: 60ch;
  text-align: center;
  font-size: 0.95rem;
  color: var(--hero);
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 248 248 / 0.35);
  border-radius: 999px;
  background: rgb(38 16 25 / 0.6);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lightbox-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-close {
  top: 0.75rem;
  right: 0.75rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 639px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

html.is-locked {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Pravne stranice */

.legal {
  padding-block: 9rem 5rem;
}

.nav.nav--simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-inner {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
}

.legal p,
.legal ul {
  margin-top: 0.75rem;
  max-width: 62ch;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal a:not(.btn) {
  text-underline-offset: 0.2em;
}

.legal-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.legal-list dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.legal-list dd {
  margin: 0.1rem 0 0;
}

.legal-back {
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .legal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2rem;
  }
}

/* Kolačići */

.cookie-bar {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--hero);
  border-radius: 24px;
  background: var(--cream);
  color: var(--plum);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

@starting-style {
  .cookie-bar {
    opacity: 0;
    transform: translateY(16px);
  }
}

.cookie-bar.is-leaving {
  opacity: 0;
  transform: translateY(16px);
  transition-duration: 0.18s;
  transition-timing-function: ease-in;
}

.cookie-bar a,
.cookie-more a {
  text-underline-offset: 0.2em;
}

.cookie-bar-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.cookie-text-btn {
  min-height: 48px;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.cookie-dialog {
  width: min(34rem, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--cream);
  color: var(--plum);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cookie-dialog::backdrop {
  background: rgb(74 37 49 / 0.45);
}

.cookie-dialog[open] {
  animation: cookie-in 0.25s var(--ease);
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.cookie-form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
}

.cookie-form h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}

.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.cookie-option-text {
  display: grid;
  gap: 0.15rem;
}

.cookie-option strong {
  font-weight: 500;
}

.cookie-option-text span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--plum-soft);
}

.cookie-actions {
  padding-top: 0.5rem;
}

.cookie-more {
  font-size: 0.95rem;
}

.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  margin: 0;
  border: 1.5px solid var(--plum-soft);
  border-radius: 999px;
  background: transparent;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--plum-soft);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.switch:checked {
  border-color: var(--plum);
  background: var(--plum);
}

.switch:checked::before {
  background: var(--cream);
  transform: translateX(20px);
}

.switch:disabled {
  opacity: 0.55;
  cursor: default;
}
