:root {
  --ink: #101111;
  --paper: #f7f7f5;
  --white: #ffffff;
  --line: rgba(16, 17, 17, 0.18);
  --yellow: #ffde59;
  --orange: #ff914d;
  --red: #ff3131;
  --green: #00bf63;
  --cyan: #0cc0df;
  --violet: #cb6ce6;
  --blue: #004aad;
  --header-height: 72px;
  --handwriting-font: "Segoe Script", "Snell Roundhand", "Apple Chancery", "Bradley Hand", cursive;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(247, 247, 245, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.mini-brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.color-yellow { color: #d6a900; }
.color-orange { color: #e46924; }
.color-red { color: #ed2525; }
.color-green { color: #008d49; }
.color-cyan { color: #008ca9; }
.color-violet { color: #9e43b6; }
.color-blue { color: var(--blue); }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 750;
}

.language-switch button {
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: rgba(16, 17, 17, 0.48);
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 750;
}

.text-link span:last-child {
  transition: transform 180ms ease;
}

.text-link:hover span:last-child {
  transform: translate(3px, 3px);
}

.text-link-island {
  width: 58px;
  height: auto;
  flex: 0 0 auto;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.text-link:hover .text-link-island {
  transform: translate(4px, 2px) scale(1.04);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--white);
}

.hero-art,
.hero-wash {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  overflow: hidden;
}

.hero-art-fallback,
.hero-fluid {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
}

.hero-art-fallback {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-fluid {
  display: block;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero.fluid-ready .hero-fluid {
  opacity: 1;
}

.hero-wash {
  z-index: -2;
  background: rgba(255, 255, 255, 0.32);
}

.hero-copy {
  position: absolute;
  bottom: 12vh;
  left: 7vw;
  z-index: 3;
  width: min(740px, 72vw);
  text-shadow: 0 1px 24px rgba(255, 255, 255, 0.42);
}

.hero-copy .eyebrow,
.hero-tagline,
.hero-intro {
  color: var(--ink);
}

.calisto-word {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 116px;
  font-weight: 400;
  line-height: 0.92;
}

.hero-tagline {
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 500;
}

.hero-intro {
  max-width: 520px;
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}

.scroll-cue {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
}

.scroll-cue i {
  display: block;
  width: 42px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: pulse-line 1.8s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { transform: scaleX(0.35); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
}

.story {
  position: relative;
  min-height: auto;
  padding: 150px max(6vw, 24px);
  background: var(--paper);
}

.story-intro {
  position: relative;
  top: auto;
  width: min(560px, 43vw);
  z-index: 2;
}

.story h2,
.gallery h2,
.about h2,
.instagram h2,
.visit h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  font-weight: 400;
  line-height: 1.04;
}

.story h2.story-handwritten {
  max-width: 720px;
  font-family: var(--handwriting-font);
  font-size: clamp(62px, 5.2vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
  transform: rotate(-0.45deg);
}

.ink-word {
  display: inline-block;
  white-space: nowrap;
}

.ink-letter {
  position: relative;
  display: inline-block;
  transform-origin: left 70%;
}

.ink-letter::after {
  content: "";
  position: absolute;
  right: -0.035em;
  bottom: 0.08em;
  width: 0.09em;
  height: 0.065em;
  border-radius: 62% 38% 58% 42%;
  background: currentColor;
  box-shadow: -0.06em 0.015em 0 -0.025em currentColor;
  opacity: 0;
  pointer-events: none;
}

.js .story-handwritten.is-writing-ready .ink-letter {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  filter: blur(0.8px);
  transform: translateY(0.09em) rotate(calc(var(--ink-wobble) - 4deg)) scaleX(0.78);
}

.js .story-handwritten.is-writing-ready.is-writing .ink-letter {
  animation: ink-write 1000ms cubic-bezier(.18,.72,.23,1) forwards;
  animation-delay: calc(var(--ink-order) * 260ms);
}

.js .story-handwritten.is-writing-ready.is-writing .ink-letter::after {
  animation: ink-nib 1000ms cubic-bezier(.18,.72,.23,1) forwards;
  animation-delay: calc(var(--ink-order) * 260ms);
}

@keyframes ink-write {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(0.8px);
    transform: translateY(0.09em) rotate(calc(var(--ink-wobble) - 4deg)) scaleX(0.78);
  }
  42% {
    opacity: 0.85;
    filter: blur(0.18px);
  }
  100% {
    opacity: 1;
    clip-path: inset(-12% -8% -18% 0);
    filter: blur(0);
    transform: translateY(0) rotate(var(--ink-wobble)) scaleX(1);
  }
}

@keyframes ink-nib {
  0%, 8% {
    opacity: 0;
    transform: translateX(-0.13em) scale(0.45);
  }
  24%, 78% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateX(0.055em) scale(0.78);
  }
}

.story-intro > p:last-child {
  max-width: 500px;
  margin: 30px 0 0;
  font-size: 18px;
  line-height: 1.7;
}

.collections {
  background: var(--white);
}

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: stretch;
  min-height: 88vh;
  overflow: hidden;
}

.chapter:nth-of-type(even) {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
}

.chapter:nth-of-type(even) .chapter-media {
  grid-column: 2;
  grid-row: 1;
}

.chapter:nth-of-type(even) .chapter-copy {
  grid-column: 1;
  grid-row: 1;
}

.chapter-media {
  min-height: 88vh;
  overflow: hidden;
}

.chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}

.chapter:hover .chapter-media img {
  transform: scale(1.025);
}

.chapter-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88vh;
  padding: 90px 7vw;
}

.chapter-number {
  position: absolute;
  top: 42px;
  right: 42px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.chapter h3 {
  max-width: 540px;
  margin: 0;
  font-family: var(--handwriting-font);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.about h2#about-title {
  font-family: var(--handwriting-font);
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.chapter-copy > p:last-child {
  max-width: 470px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.chapter-glass .chapter-copy { background: #dff3f6; }
.chapter-ceramics .chapter-copy { background: #f7f7f5; }
.chapter-material .chapter-copy { background: #ecebe8; }
.chapter-colour .chapter-copy { background: #f6e6fb; }

.gallery {
  padding: 150px 4vw 8vw;
  background: #101111;
  color: var(--white);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: end;
  gap: 36px;
  padding: 0 2vw 100px;
}

.gallery-heading .eyebrow {
  align-self: start;
}

.gallery-heading > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: #222;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
}

.gallery-item span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.gallery-item:hover span,
.gallery-item:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.item-a { grid-column: span 4; grid-row: span 2; min-height: 620px; }
.item-b { grid-column: span 4; min-height: 360px; }
.item-c { grid-column: span 4; grid-row: span 2; min-height: 620px; }
.item-d { grid-column: span 4; min-height: 360px; }
.item-e { grid-column: span 3; min-height: 430px; }
.item-f { grid-column: span 5; min-height: 430px; }
.item-g { grid-column: span 7; min-height: 390px; }
.item-h { grid-column: span 5; min-height: 610px; }
.item-i { grid-column: span 7; min-height: 390px; }
.item-j { grid-column: span 4; min-height: 620px; }
.item-k { grid-column: span 4; min-height: 420px; }
.item-l { grid-column: span 4; min-height: 620px; }

.about {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 92vh;
  background: var(--white);
}

.about-image {
  min-height: 92vh;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 6vw;
}

.about-copy p:not(.eyebrow) {
  margin: 30px 0 36px;
  font-size: 17px;
  line-height: 1.75;
}

.instagram {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  min-height: 72vh;
  background: #f1f7ff;
  border-top: 1px solid var(--line);
}

.instagram-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 6vw;
}

.instagram-title h2 {
  overflow-wrap: anywhere;
  font-size: 48px;
}

.instagram-title .button {
  margin-top: 34px;
}

.instagram-strip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}

.instagram-slides {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 72vh;
  padding: 8px;
  gap: 8px;
  grid-auto-rows: minmax(220px, 1fr);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  opacity: 1;
}

.instagram-strip .instagram-slide {
  display: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  transition: transform 500ms ease, opacity 300ms ease;
}

.instagram-strip .instagram-slide.is-grid-visible {
  display: block;
}

.instagram-slides-transition {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 3000ms cubic-bezier(.45, 0, .15, 1);
}

.instagram-slides-transition.is-dissolving {
  opacity: 0;
}

.instagram-slideshow.is-transitioning > .instagram-slides:not(.instagram-slides-transition) {
  pointer-events: none;
}

.instagram-slides.is-revealing .instagram-slide.is-grid-visible {
  animation: instagram-image-settle 3600ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes instagram-image-settle {
  from { transform: scale(1.018); }
  to { transform: scale(1); }
}

.lightbox-trigger {
  cursor: pointer;
}

.brush-cursor {
  --paint-color: var(--cyan);
  --brush-tilt: -7deg;
  --brush-wood-dark: #2a140d;
  --brush-wood-mid: #754022;
  --brush-wood-light: #c18754;
  --brush-metal-dark: #4b351e;
  --brush-metal-mid: #9b7440;
  --brush-metal-light: #e5c986;
  --brush-bristle-dark: #261812;
  --brush-bristle-mid: #70503b;
  --brush-bristle-light: #b98e67;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 950;
  display: none;
  width: 82px;
  height: 123px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 110ms ease;
  will-change: transform;
}

.brush-cursor svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translate(-41px, -5px) rotate(var(--brush-tilt));
  transform-origin: 41px 5px;
  transition: transform 120ms cubic-bezier(.2,.8,.2,1);
}

.brush-cursor.is-visible {
  opacity: 1;
}

.brush-cursor.is-pressing svg {
  transform: translate(-41px, -2px) rotate(calc(var(--brush-tilt) - 5deg)) scale(0.96);
}

.brush-wood-dark-stop {
  stop-color: var(--brush-wood-dark);
}

.brush-wood-mid-stop {
  stop-color: var(--brush-wood-mid);
}

.brush-wood-light-stop {
  stop-color: var(--brush-wood-light);
}

.brush-metal-dark-stop {
  stop-color: var(--brush-metal-dark);
}

.brush-metal-mid-stop {
  stop-color: var(--brush-metal-mid);
}

.brush-metal-light-stop {
  stop-color: var(--brush-metal-light);
}

.brush-bristle-dark-stop {
  stop-color: var(--brush-bristle-dark);
}

.brush-bristle-mid-stop {
  stop-color: var(--brush-bristle-mid);
}

.brush-bristle-light-stop {
  stop-color: var(--brush-bristle-light);
}

.brush-handle {
  fill: url(#real-brush-wood);
  stroke: color-mix(in srgb, var(--brush-wood-dark) 88%, #000);
  stroke-width: 1.15;
}

.brush-handle-highlight,
.brush-handle-grain {
  fill: none;
  stroke-linecap: round;
}

.brush-handle-highlight {
  stroke: rgba(255, 232, 197, 0.34);
  stroke-width: 1.45;
}

.brush-handle-grain {
  stroke: color-mix(in srgb, var(--brush-wood-dark) 64%, transparent);
  stroke-width: 0.82;
}

.brush-ferrule {
  fill: url(#real-brush-metal);
  stroke: color-mix(in srgb, var(--brush-metal-dark) 84%, #111);
  stroke-width: 1.05;
}

.brush-ferrule-seam,
.brush-ferrule-glint {
  fill: none;
  stroke-linecap: round;
}

.brush-ferrule-seam {
  stroke: rgba(34, 27, 20, 0.34);
  stroke-width: 0.8;
}

.brush-ferrule-glint {
  stroke: rgba(255, 250, 224, 0.58);
  stroke-width: 1.3;
}

.brush-bristles {
  fill: url(#real-brush-bristles);
  stroke: color-mix(in srgb, var(--brush-bristle-dark) 86%, #000);
  stroke-width: 0.85;
}

.brush-bristle-sheen {
  fill: rgba(255, 239, 210, 0.09);
}

.brush-bristle-lines {
  fill: none;
  stroke: color-mix(in srgb, var(--brush-bristle-light) 46%, transparent);
  stroke-width: 0.64;
  stroke-linecap: round;
}

.brush-paint {
  fill: var(--paint-color);
  opacity: 0.94;
  filter: drop-shadow(0 0.7px 0 rgba(255, 255, 255, 0.24));
  transition: fill 140ms ease;
}

.paint-burst {
  --splash-color: var(--cyan);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.paint-splash-core {
  position: absolute;
  inset: -9px;
  background: var(--splash-color);
  border-radius: 58% 42% 64% 36% / 47% 62% 38% 53%;
  box-shadow:
    9px -5px 0 -7px var(--splash-color),
    -8px 7px 0 -6px var(--splash-color),
    5px 10px 0 -7px var(--splash-color);
  filter: drop-shadow(0 2px 1px rgba(16, 17, 17, 0.18));
  animation: paint-splash 560ms cubic-bezier(.18,.75,.22,1) forwards;
}

.paint-drop {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--drop-size);
  height: var(--drop-size);
  border-radius: 50%;
  background: var(--splash-color);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: paint-drop 620ms cubic-bezier(.16,.76,.26,1) forwards;
  animation-delay: var(--drop-delay);
}

@keyframes paint-splash {
  0% { opacity: 0; transform: scale(0.2) rotate(-10deg); }
  24% { opacity: 1; transform: scale(1.35) rotate(8deg); }
  68% { opacity: 0.92; transform: scale(1.65) rotate(14deg); }
  100% { opacity: 0; transform: scale(1.85) rotate(18deg); }
}

@keyframes paint-drop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  20% { opacity: 1; }
  74% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drop-x)), calc(-50% + var(--drop-y))) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  body.brush-cursor-enabled .lightbox-trigger {
    cursor: none;
  }

  body.brush-cursor-enabled .brush-cursor {
    display: block;
  }
}

.instagram-strip .instagram-product {
  padding: clamp(6px, 0.8vw, 12px);
  background: #fff;
  object-fit: contain;
}

.visit {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 9vw;
  min-height: 82vh;
  align-items: center;
  overflow: hidden;
  padding: 110px 8vw;
  background-color: #f6e7a7;
  background-image:
    linear-gradient(90deg, rgba(255, 252, 236, 0.74), rgba(255, 247, 211, 0.6)),
    url("/assets/maslinica-background-hrvoje-serdar-htz.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.visit-copy {
  position: relative;
  z-index: 2;
}

.visit-copy p:last-child {
  max-width: 620px;
  margin: 30px 0 0;
  font-size: 18px;
  line-height: 1.7;
}

.visit-details {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(16, 17, 17, 0.35);
}

.visit-details > div,
.visit-details > a {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(16, 17, 17, 0.35);
}

.visit-details > div {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.visit-details span {
  font-size: 13px;
  font-weight: 750;
}

.visit-details strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.visit-details small {
  font-size: 12px;
}

.visit-details > a span:last-child {
  font-size: 20px;
  transition: transform 180ms ease;
}

.visit-details > a:hover span:last-child {
  transform: translate(4px, -4px);
}

.visit-details .solta-icon {
  width: 92px;
  height: auto;
  flex: 0 0 auto;
  transform: none;
  transform-origin: center;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.visit-details > a:hover .solta-icon {
  transform: translateX(4px) scale(1.04);
}

.visit-coordinates {
  position: absolute;
  right: -20px;
  bottom: -45px;
  margin: 0;
  color: rgba(16, 17, 17, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 150px;
  white-space: nowrap;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 34px;
  align-items: end;
  padding: 90px 6vw 40px;
  background: var(--white);
  color: var(--ink);
  text-shadow: 0 1px 24px rgba(255, 255, 255, 0.58);
}

.footer-art,
.footer-wash {
  position: absolute;
  inset: 0;
}

.footer-art {
  z-index: -3;
  overflow: hidden;
}

.footer-art-fallback,
.footer-fluid {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
}

.footer-art-fallback {
  object-fit: cover;
  transform: scale(1.02);
}

.footer-fluid {
  display: block;
  opacity: 0;
  transition: opacity 700ms ease;
}

.site-footer.fluid-ready .footer-fluid {
  opacity: 1;
}

.footer-wash {
  z-index: -2;
  background: rgba(255, 255, 255, 0.32);
}

.footer-brand {
  display: flex;
  gap: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1;
}

.site-footer p {
  margin: 0;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a {
  color: var(--ink);
}

.site-footer small {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(16, 17, 17, 0.24);
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 32px;
  border: 0;
  background: rgba(10, 10, 10, 0.96);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(10, 10, 10, 0.96);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-width: min(1100px, 78vw);
  height: calc(100vh - 64px);
  margin: 0 auto;
}

.lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox figcaption {
  padding-top: 14px;
  text-align: center;
  font-size: 13px;
}

.lightbox figcaption:empty {
  display: none;
}

.lightbox button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 32px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 420px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .calisto-word {
    gap: 8px;
    font-size: 88px;
  }

  .hero-copy {
    left: 5vw;
  }

  .story h2,
  .gallery h2,
  .about h2,
  .visit h2 {
    font-size: 56px;
  }

  .story h2.story-handwritten {
    font-size: 60px;
  }

  .chapter h3 {
    font-size: 48px;
  }

  .gallery-heading {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .gallery-heading > p:last-child {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    padding: 0 16px;
  }

  .menu-toggle {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease, top 180ms ease;
  }

  .menu-toggle > span:first-child {
    top: 18px;
  }

  .menu-toggle > span:nth-child(2) {
    top: 25px;
  }

  .menu-open .menu-toggle > span:first-child {
    top: 22px;
    transform: rotate(45deg);
  }

  .menu-open .menu-toggle > span:nth-child(2) {
    top: 22px;
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: flex;
    height: calc(100svh - var(--header-height));
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 50px 24px;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 400;
  }

  .menu-open .site-nav {
    transform: translateX(0);
  }

  .no-js .menu-toggle {
    display: none;
  }

  .no-js .site-nav {
    position: static;
    height: auto;
    flex-direction: row;
    padding: 0;
    background: transparent;
    transform: none;
  }

  .no-js .site-nav a {
    border: 0;
    font-family: inherit;
    font-size: 12px;
  }

  .hero-copy {
    bottom: 8vh;
    left: 24px;
    width: calc(100% - 48px);
  }

  .calisto-word {
    gap: 6px;
    font-size: 68px;
  }

  .hero-tagline {
    margin-top: 17px;
    font-size: 15px;
  }

  .hero-intro {
    max-width: 75%;
    margin-top: 18px;
    font-size: 18px;
  }

  .hero-actions {
    gap: 18px;
    margin-top: 22px;
  }

  .scroll-cue {
    display: none;
  }

  .story {
    min-height: auto;
    padding: 100px 24px;
  }

  .story-intro {
    position: relative;
    top: auto;
    width: 100%;
  }

  .chapter,
  .chapter:nth-of-type(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .chapter:nth-of-type(even) .chapter-media,
  .chapter:nth-of-type(even) .chapter-copy {
    grid-column: 1;
  }

  .chapter:nth-of-type(even) .chapter-media {
    grid-row: 1;
  }

  .chapter:nth-of-type(even) .chapter-copy {
    grid-row: 2;
  }

  .chapter-media {
    min-height: 68vh;
  }

  .chapter-copy {
    min-height: auto;
    padding: 90px 24px 80px;
  }

  .chapter-number {
    top: 24px;
    right: 24px;
  }

  .gallery {
    padding: 100px 16px 70px;
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 8px 60px;
  }

  .gallery-heading > p:last-child {
    grid-column: 1;
  }

  .gallery-item,
  .item-a,
  .item-b,
  .item-c,
  .item-d,
  .item-e,
  .item-f,
  .item-g,
  .item-h,
  .item-i,
  .item-j,
  .item-k,
  .item-l {
    grid-column: span 6;
    grid-row: auto;
    min-height: 360px;
  }

  .about {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .about-image {
    min-height: 62vh;
  }

  .about-copy {
    padding: 90px 24px;
  }

  .instagram {
    grid-template-columns: 1fr;
  }

  .instagram-title {
    padding: 90px 24px 70px;
  }

  .instagram-strip {
    min-height: 65vh;
  }

  .visit {
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 100px 24px;
    background-image:
      linear-gradient(rgba(255, 252, 236, 0.74), rgba(255, 247, 211, 0.64)),
      url("/assets/maslinica-background-hrvoje-serdar-htz.jpg");
    background-position: 58% center;
  }

  .visit-coordinates {
    font-size: 92px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 70px 24px 34px;
  }

  .site-footer small {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .mini-brand {
    font-size: 17px;
  }

  .language-switch {
    gap: 4px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-art-fallback {
    object-position: 46% center;
  }

  .hero-wash {
    background: rgba(255, 255, 255, 0.42);
  }

  .hero-copy {
    bottom: 52px;
  }

  .hero-copy .eyebrow {
    max-width: 100%;
  }

  .calisto-word {
    gap: 4px;
    font-size: 51px;
  }

  .hero-intro {
    max-width: 88%;
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .story h2,
  .gallery h2,
  .about h2,
  .visit h2 {
    font-size: 44px;
  }

  .story h2.story-handwritten {
    font-size: clamp(46px, 13vw, 58px);
    line-height: 1.06;
  }

  .story-intro > p:last-child,
  .visit-copy p:last-child {
    font-size: 16px;
  }

  .chapter-media {
    min-height: 56vh;
  }

  .chapter h3 {
    font-size: 42px;
  }

  .chapter-copy > p:last-child {
    font-size: 16px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .gallery-item,
  .item-a,
  .item-b,
  .item-c,
  .item-d,
  .item-e,
  .item-f,
  .item-g,
  .item-h,
  .item-i,
  .item-j,
  .item-k,
  .item-l {
    grid-column: span 12;
    min-height: 72vh;
  }

  .gallery-item span {
    opacity: 1;
    transform: none;
  }

  .about-image {
    min-height: 50vh;
  }

  .instagram-title h2 {
    font-size: 36px;
  }

  .instagram-strip {
    min-height: 58vh;
  }

  .instagram-slides {
    min-height: 58vh;
    grid-auto-rows: 190px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-details > div,
  .visit-details > a {
    min-height: 82px;
  }

  .visit-coordinates {
    font-size: 54px;
    bottom: -14px;
  }

  .footer-brand {
    font-size: 46px;
  }

  .footer-links {
    flex-direction: column;
  }

  .lightbox {
    padding: 18px 12px;
  }

  .lightbox[open] {
    grid-template-columns: 48px 1fr 48px;
  }

  .lightbox figure {
    max-width: calc(100vw - 110px);
    height: calc(100vh - 36px);
  }
}

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

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

  .hero-art-fallback {
    transform: none !important;
  }

  .hero-fluid,
  .footer-fluid {
    display: none;
  }

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

