/* ===== Design tokens — navy identity from the salon's brand card ===== */
:root {
  --navy-950: #060B1F;
  --navy-900: #0A1230;
  --navy-800: #111C45;
  --navy-700: #1C2B5F;
  --periwinkle: #A9BAEA;      /* logo blue from the brand card */
  --peri-strong: #C7D3F5;     /* brighter tint for large display text */
  --ice: #EDF1FC;             /* near-white, blue-tinted */
  --ice-muted: #99A5CB;       /* muted body text on navy */
  --ice-bg: #F4F6FD;          /* light booking section */
  --text-on-light: #0A1230;
  --text-on-light-muted: #4A5578;
  --line: rgba(169, 186, 234, 0.16);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --container: 1140px;
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Custom :active states replace the default grey tap flash on touch */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ice);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--peri-strong);
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.5rem; }

em { font-style: italic; color: var(--periwinkle); }

.script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--periwinkle);
}

/* The two big script lines carry a slow, repeating light sweep */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .script-accent,
  .about-quote .script-accent {
    background: linear-gradient(105deg,
      var(--periwinkle) 40%, #E7EDFE 50%, var(--periwinkle) 60%);
    background-size: 300% 100%;
    background-position: 115% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: script-sheen 9s ease-in-out infinite;
  }
}

@keyframes script-sheen {
  0%, 25% { background-position: 115% 0; }
  70%, 100% { background-position: -85% 0; }
}

a { color: inherit; }

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

section { scroll-margin-top: 4.5rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* Eyebrow label */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease,
    transform 350ms var(--ease-out);
}

.btn-dark { background: var(--navy-900); color: var(--ice); }
.btn-dark:hover { background: var(--navy-700); color: var(--ice); }

.btn-light { background: var(--ice); color: var(--navy-900); }
.btn-light:hover { background: var(--periwinkle); color: var(--navy-950); }

/* Press feedback on touch, where hover never fires */
@media (hover: none) {
  .btn-dark:active { background: var(--navy-700); }
  .btn-light:active { background: var(--periwinkle); color: var(--navy-950); }
}

/* A light streak sweeps across every CTA once per cycle */
@media (prefers-reduced-motion: no-preference) {
  .btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg,
      transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    animation: btn-sheen 7s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes btn-sheen {
  0%, 58% { left: -60%; }
  78%, 100% { left: 130%; }
}

/* Scroll reveal (activated by JS; no-JS and reduced-motion users see content immediately) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* Scroll progress hairline (created by JS) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  background: linear-gradient(to right, var(--periwinkle), var(--peri-strong));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Kinetic headings — word chunks created by JS (skipped for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  h2.kinetic .kw {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.55em);
    transition: opacity 450ms ease, transform 600ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  h2.kinetic.is-inview .kw {
    opacity: 1;
    transform: none;
  }
}

/* ===== Nav ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 1.4rem;
  transition: background-color 300ms ease, padding 300ms ease, box-shadow 300ms ease;
}

.site-nav.is-scrolled {
  background: rgba(6, 11, 31, 0.92);
  padding-block: 0.85rem;
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ice);
  text-decoration: none;
  white-space: nowrap;
}

.logo-script {
  font-family: var(--font-script);
  font-size: 1.35em;
  color: var(--periwinkle);
  margin-left: 0.1em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a:not(.btn) {
  position: relative;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ice);
  text-decoration: none;
  transition: color 200ms ease;
}

/* Underline that grows in from the left and retreats to the right */
.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--periwinkle);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}

.nav-menu a:not(.btn):hover { color: var(--periwinkle); }

.nav-menu a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta { padding: 0.65rem 1.4rem; }

.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ice);
}

.hero-media {
  position: absolute;
  inset: 0;
  /* Fallback while the video loads */
  background:
    radial-gradient(ellipse at 70% 30%, #2a3a6e 0%, transparent 55%),
    linear-gradient(135deg, #16204a 0%, #0d1638 55%, #060B1F 100%);
}

.hero-media video,
.hero-media .hero-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

/* Sharp still of the last frame — crossfaded in when the video ends */
.hero-media .hero-still {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-media.is-ended .hero-still {
  opacity: 1;
}

/* Once the video hands over to the still, a very slow Ken Burns zoom keeps
   the top of the page from ever feeling frozen */
@media (prefers-reduced-motion: no-preference) {
  .hero-media.is-ended .hero-still {
    animation: slow-zoom 26s ease-in-out infinite alternate;
  }
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 11, 31, 0.88) 0%, rgba(6, 11, 31, 0.35) 45%, rgba(6, 11, 31, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(4rem, 12vh, 7rem);
}

.hero-content h1 { color: var(--ice); max-width: 16ch; }

.hero-content h1 .script-accent {
  font-size: 1.15em;
  line-height: 1;
}

.hero-sub {
  max-width: 46ch;
  margin-block: 1.4rem 2.2rem;
  color: var(--ice-muted);
  font-size: 1.1rem;
}

/* Page-load entrance: hero content rises in one line at a time.
   fill-mode backwards (not forwards) so the finished animation releases the
   transform — otherwise it would permanently override the magnetic-button
   inline transform on the hero CTA. */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise-in 900ms var(--ease-out) backwards; }
  .hero-content .eyebrow { animation-delay: 120ms; }
  .hero-content h1 { animation-delay: 260ms; }
  .hero-content .hero-sub { animation-delay: 400ms; }
  .hero-content .btn { animation-delay: 540ms; }
}

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

/* Scroll hint: a light repeatedly falling down a hairline at the hero's foot.
   Centered with margins (not translateX) because the rise-in entrance
   animation would overwrite a transform-based centering. */
.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  margin-inline: auto;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: rgba(169, 186, 234, 0.22);
}

.scroll-hint span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--peri-strong);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-hint span { animation: hint-fall 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
}

/* A static line means nothing — without motion, hide the hint entirely */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { display: none; }
}

@keyframes hint-fall {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ===== Mobile nav ===== */
@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 60;
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin-inline: auto;
    background: var(--ice);
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(6, 11, 31, 0.97);
    transform: translateY(-100%);
    /* visibility keeps the closed menu's links out of the keyboard tab
       order; the 0s/300ms delay hides it only after the slide-out ends */
    visibility: hidden;
    transition: transform 300ms ease, visibility 0s 300ms;
  }

  .nav-menu.is-open {
    transform: none;
    visibility: visible;
    transition: transform 300ms ease;
  }

  .nav-menu a:not(.btn) { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-menu { transition: none; }
}

/* ===== About (raised navy band) ===== */
.about {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Ambient glow drifting through the navy bands — the sections keep breathing
   even when nothing else is animating */
.about::before,
.location::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 186, 234, 0.11), transparent 65%);
  pointer-events: none;
}

.about::before { top: -20%; right: -14%; }
.location::before { bottom: -24%; left: -16%; }

@media (prefers-reduced-motion: no-preference) {
  .about::before { animation: drift-a 34s ease-in-out infinite alternate; }
  .location::before { animation: drift-b 42s ease-in-out infinite alternate; }
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-9vw, 7vh) scale(1.18); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.12); }
  to { transform: translate(8vw, -6vh) scale(0.94); }
}

.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-lead { margin-top: 1.4rem; color: var(--ice-muted); }

/* Scroll-linked word lighting — spans exist only when JS splits the lead
   (skipped for reduced motion, so the plain paragraph keeps full contrast) */
.about-lead .w {
  color: rgba(153, 165, 203, 0.4);
  transition: color 500ms ease;
}

.about-lead .w.is-lit { color: var(--ice); }

.about-quote {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.35;
  margin-top: 2.2rem;
  max-width: 22ch;
}

.about-signature {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ice-muted);
}

.about-points {
  list-style: none;
  display: grid;
  gap: 2.2rem;
}

.about-points li {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.about-points p { color: var(--ice-muted); margin-top: 0.3rem; }

/* Points cascade in one after another (safe: list items have no hover
   transitions that a transition-delay would postpone) */
@media (prefers-reduced-motion: no-preference) {
  .about-points li:nth-child(2) { transition-delay: 130ms; }
  .about-points li:nth-child(3) { transition-delay: 260ms; }
}

/* ===== Work (merged services + gallery) ===== */
.work { padding-block: var(--section-pad); }

.section-head { max-width: 44ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-sub { color: var(--ice-muted); margin-top: 0.8rem; }

.work-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0.4rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: background-color 250ms ease, padding-left 250ms var(--ease-out);
}

.work-list li:last-child .work-item { border-bottom: 1px solid var(--line); }

/* Hover states only on devices that actually hover — on touch they would
   stick to the last tapped item */
@media (hover: hover) {
  .work-item:hover {
    background: rgba(169, 186, 234, 0.05);
    padding-left: 1rem;
  }
}

.work-item:focus-visible {
  background: rgba(169, 186, 234, 0.05);
  padding-left: 1rem;
}

.work-item-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  color: var(--peri-strong);
  line-height: 1.15;
  transition: color 200ms ease;
}

@media (hover: hover) {
  .work-item:hover .work-item-title { color: var(--periwinkle); }
}

.work-item:focus-visible .work-item-title { color: var(--periwinkle); }

.work-item-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--ice-muted);
  max-width: 40ch;
}

.work-item-arrow {
  font-size: 1.3rem;
  color: var(--periwinkle);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 250ms ease, transform 250ms var(--ease-out);
}

/* Text variant of the arrow — shown only on stacked (mobile) layout */
.arrow-label {
  display: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (hover: hover) {
  .work-item:hover .work-item-arrow {
    opacity: 1;
    transform: none;
  }
}

.work-item:focus-visible .work-item-arrow {
  opacity: 1;
  transform: none;
}

/* No hover on touch: the arrow must be visible up front as a tap affordance,
   and :active gives the press feedback that hover normally provides */
@media (hover: none) {
  .work-item-arrow {
    opacity: 0.55;
    transform: none;
  }

  .work-item:active { background: rgba(169, 186, 234, 0.08); }
}

.work-stage {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--line);
  cursor: pointer;
}

/* When the follower dot is active it replaces the native cursor here,
   because the "Poglej" disc already communicates the click affordance */
.has-cursor-dot .work-stage { cursor: none; }

.work-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 400ms ease, transform 600ms var(--ease-out);
}

.work-stage-img.is-switching { opacity: 0; }

/* The stage image breathes with a very slow zoom — this replaces the old
   hover zoom (a running animation would override the hover transform anyway) */
@media (prefers-reduced-motion: no-preference) {
  .work-stage-img { animation: stage-breathe 18s ease-in-out infinite alternate; }
}

@keyframes stage-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes label-nudge {
  0%, 84%, 100% { transform: translateX(0); }
  90% { transform: translateX(5px); }
  96% { transform: translateX(0); }
}

.work-stage-label {
  position: absolute;
  left: 1.2rem;
  bottom: 1.1rem;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
  padding: 0.45rem 0.9rem;
  background: rgba(6, 11, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
  backdrop-filter: blur(6px);
}

/* ===== Work overlay (FLIP-expanded gallery) ===== */
.work-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* The author display:flex would otherwise override the UA [hidden] rule */
.work-overlay[hidden] { display: none; }

.work-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 31, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 350ms ease;
}

.work-overlay.is-open .work-overlay-backdrop { opacity: 1; }

.work-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: clamp(0.75rem, 3vh, 2.5rem) auto;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  /* Fade only — a translate here would shift the FLIP measurement target */
  opacity: 0;
  transition: opacity 350ms ease;
}

.work-overlay.is-open .work-overlay-panel {
  opacity: 1;
}

.work-overlay-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  z-index: 5;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ice);
  background: rgba(6, 11, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.work-overlay-close:hover { background: var(--periwinkle); color: var(--navy-950); }

.work-overlay-cover {
  position: relative;
  min-height: 320px;
}

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

.work-overlay-body {
  padding: clamp(1.8rem, 4vw, 3rem);
}

.work-overlay-body h3 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.work-overlay-desc {
  margin-top: 0.9rem;
  color: var(--ice-muted);
  max-width: 52ch;
}

.work-overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-block: 1.8rem;
}

.work-overlay-grid figure {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.work-overlay-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.work-overlay-grid figure:hover img { transform: scale(1.05); }

/* On small screens the FLIP expand doesn't read well (the stage image is
   often scrolled out of view), so the overlay opens as a bottom sheet.
   Width-only cutoff: above 900px every device gets the desktop experience,
   below it the phone one — no mixed layouts on tablets in between.
   Keep this query in sync with sheetMode in main.js. */
.sheet-handle { display: none; }

@media (max-width: 900px) {
  .work-overlay { align-items: flex-end; }

  .work-overlay-panel {
    width: 100%;
    margin: 3rem 0 0;
    max-height: calc(100vh - 3rem);
    max-height: calc(100dvh - 3rem);
    border-radius: 14px 14px 0 0;
    border-bottom: none;
  }

  /* Grab handle: sticky so it stays reachable while the sheet scrolls;
     zero height so it doesn't push the cover image down */
  .sheet-handle {
    display: block;
    position: sticky;
    top: 0;
    z-index: 6;
    height: 0;
    touch-action: none;
  }

  .sheet-handle span {
    display: block;
    position: relative;
    width: 110px;
    height: 34px;
    margin-inline: auto;
  }

  .sheet-handle span::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 44px;
    height: 5px;
    margin-left: -22px;
    border-radius: 3px;
    background: rgba(237, 241, 252, 0.65);
    box-shadow: 0 1px 4px rgba(6, 11, 31, 0.45);
  }

  @media (prefers-reduced-motion: no-preference) {
    .work-overlay-panel {
      transform: translateY(10%);
      transition: opacity 300ms ease, transform 420ms var(--ease-out);
    }

    .work-overlay.is-open .work-overlay-panel { transform: none; }
  }
}

/* Text rises in sequence when the overlay opens (eyebrow → title → desc);
   the CTA button is left out because a transition-delay there would also
   postpone its hover feedback */
@media (prefers-reduced-motion: no-preference) {
  .work-overlay-eyebrow,
  .work-overlay-body h3,
  .work-overlay-desc {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 400ms ease, transform 450ms var(--ease-out);
  }

  .work-overlay.is-open .work-overlay-eyebrow,
  .work-overlay.is-open .work-overlay-body h3,
  .work-overlay.is-open .work-overlay-desc {
    opacity: 1;
    transform: none;
  }

  .work-overlay.is-open .work-overlay-eyebrow { transition-delay: 60ms; }
  .work-overlay.is-open .work-overlay-body h3 { transition-delay: 130ms; }
  .work-overlay.is-open .work-overlay-desc { transition-delay: 200ms; }
}

/* Stagger-fade for grid items when the overlay opens */
@media (prefers-reduced-motion: no-preference) {
  .work-overlay-grid figure {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 450ms ease, transform 450ms var(--ease-out);
  }
  .work-overlay.is-open .work-overlay-grid figure {
    opacity: 1;
    transform: none;
  }
  .work-overlay.is-open .work-overlay-grid figure:nth-child(1) { transition-delay: 120ms; }
  .work-overlay.is-open .work-overlay-grid figure:nth-child(2) { transition-delay: 190ms; }
  .work-overlay.is-open .work-overlay-grid figure:nth-child(3) { transition-delay: 260ms; }
  .work-overlay.is-open .work-overlay-grid figure:nth-child(4) { transition-delay: 330ms; }
  .work-overlay.is-open .work-overlay-grid figure:nth-child(5) { transition-delay: 400ms; }
  .work-overlay.is-open .work-overlay-grid figure:nth-child(6) { transition-delay: 470ms; }
}

/* ===== Cursor follower (created by JS on fine pointers only) ===== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--periwinkle);
  border: 1px solid transparent;
  opacity: 0.85;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: width 320ms var(--ease-out), height 320ms var(--ease-out),
    margin 320ms var(--ease-out), background-color 250ms ease,
    border-color 250ms ease, opacity 250ms ease;
}

.cursor-dot.is-hidden { opacity: 0; }

/* Hollow ring over links, buttons and form fields */
.cursor-dot.is-link {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  background: transparent;
  border-color: var(--periwinkle);
}

/* Labelled disc over [data-cursor] elements (the work stage image) */
.cursor-dot.is-view {
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  background: var(--periwinkle);
  opacity: 1;
}

.cursor-dot span {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-950);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms ease;
}

.cursor-dot.is-view span {
  opacity: 1;
  transition-delay: 120ms;
}

/* ===== Brands strip ===== */
.brands {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brands-inner { text-align: center; }

.brands-inner .eyebrow { margin-bottom: 1.1rem; }

.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-muted);
  transition: color 300ms ease;
}

.brand-mark:hover { color: var(--peri-strong); }

/* A slow sheen sweeps across the brand names every few seconds */
@media (prefers-reduced-motion: no-preference) {
  .brand-mark {
    background: linear-gradient(100deg,
      var(--ice-muted) 42%, var(--peri-strong) 50%, var(--ice-muted) 58%);
    background-size: 250% 100%;
    background-position: 120% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brand-sheen 7s ease-in-out infinite;
  }
}

@keyframes brand-sheen {
  0% { background-position: 120% 0; }
  55%, 100% { background-position: -60% 0; }
}

.brand-dot { color: var(--periwinkle); font-size: 1.4rem; }

/* ===== Location ===== */
.location {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-details { display: grid; gap: 1rem; }

/* Rotating light ring: a spinning conic-gradient sits behind the card,
   masked to a thin edge by the ::after fill so it reads as a moving
   border rather than a glowing blob. Runs continuously (not hover-only)
   so it still animates on mobile, where there is no hover state. */
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  background: var(--navy-900);
  transition: transform 300ms var(--ease-out);
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: -65%;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    transparent 0 68%,
    var(--periwinkle) 80%,
    var(--peri-strong) 86%,
    transparent 96% 100%
  );
  animation: contact-ring-spin 8s linear infinite;
}

.contact-card::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  border-radius: inherit;
  background: var(--navy-900);
}

@keyframes contact-ring-spin {
  to { transform: rotate(360deg); }
}

@media (hover: hover) {
  .contact-card:hover { transform: translateY(-2px); }
  .contact-card:hover::before { animation-duration: 2.8s; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card::before { animation: none; }
  .contact-card { border: 1px solid var(--line); }
}

.contact-details dt {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--periwinkle);
}

.contact-details dd {
  margin: 0.3rem 0 0;
  color: var(--ice);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.3;
}

.contact-details dd a { color: inherit; }

@media (hover: hover) {
  .contact-details dd a:hover { color: var(--peri-strong); }
}

.hours-list {
  display: grid;
  gap: 0.2rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.hours-list .is-today { color: var(--peri-strong); font-weight: 500; }

.location-map {
  border-radius: 6px;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
  /* Dark-mode map: inverted and hue-rotated to sit inside the navy band */
  filter: grayscale(0.2) invert(0.9) hue-rotate(190deg) brightness(0.92) contrast(0.88);
}

/* ===== Reviews (auto-scrolling marquee of Google reviews) ===== */
.reviews {
  padding-block: var(--section-pad);
  overflow: hidden;
}

.reviews-viewport {
  overflow: hidden;
  /* Cards fade out at both edges instead of being cut off */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.reviews-track {
  display: flex;
  width: max-content;
  animation: reviews-scroll 45s linear infinite;
  will-change: transform;
}

.reviews-track:hover,
.reviews-track.is-paused { animation-play-state: paused; }

/* Each group carries its own trailing gap so the track's midpoint lands
   exactly between the two copies and the -50% loop is seamless */
.reviews-group {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  padding-right: 1.4rem;
}

@keyframes reviews-scroll {
  to { transform: translateX(-50%); }
}

.review-card {
  width: clamp(260px, 76vw, 350px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.7rem;
}

.review-stars {
  color: var(--periwinkle);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
}

.review-text {
  flex-grow: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ice);
}

.review-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.review-meta strong {
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ice);
}

.review-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-muted);
}

/* Reduced motion: no auto-scroll — a single, manually scrollable row */
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
    padding-bottom: 0.8rem;
  }
  .reviews-group[aria-hidden] { display: none; }
}

/* ===== Booking (light finish) ===== */
.booking {
  background: var(--ice-bg);
  color: var(--text-on-light);
  padding-block: var(--section-pad);
}

.booking h2 { color: var(--navy-900); }
.booking em { color: #4C63B0; }
.booking .eyebrow { color: #4C63B0; }

.booking-inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.booking-inner .contact-lead { margin-inline: auto; max-width: 44ch; }

.booking-inner .contact-form { text-align: left; margin-top: 2rem; }

.contact-lead { margin-block: 1.2rem 2rem; color: var(--text-on-light-muted); }

.contact-form { display: grid; gap: 1.3rem; }

.form-field { display: grid; gap: 0.45rem; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-on-light);
  background: #fff;
  border: 1px solid #D5DCF0;
  border-radius: 2px;
  padding: 0.85rem 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #4C63B0;
  box-shadow: 0 0 0 3px rgba(76, 99, 176, 0.15);
}

.form-field select:disabled { opacity: 0.6; cursor: not-allowed; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ----- Custom date picker (booking form) ----- */
.date-picker { position: relative; }

.date-picker-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-on-light);
  background: #fff;
  border: 1px solid #D5DCF0;
  border-radius: 2px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.date-picker-trigger.is-placeholder { color: var(--text-on-light-muted); }
.date-picker-icon { flex-shrink: 0; color: var(--text-on-light-muted); }

.date-picker-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 20;
  width: min(320px, 90vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(10, 18, 48, 0.18);
  padding: 0.85rem;
}

.date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-on-light);
}

.date-picker-nav {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #D5DCF0;
  border-radius: 4px;
  font-size: 1.1rem;
  color: var(--text-on-light);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.date-picker-nav:disabled { opacity: 0.3; cursor: not-allowed; }

@media (hover: hover) {
  .date-picker-nav:not(:disabled):hover { background: var(--ice-bg); }
}

.date-picker-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.72rem;
  color: var(--text-on-light-muted);
  text-align: center;
  margin-bottom: 0.25rem;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.date-picker-day {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-on-light);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.date-picker-day:disabled { color: #C7CEE0; cursor: not-allowed; }
.date-picker-day.is-outside { visibility: hidden; }
.date-picker-day.is-selected { background: var(--navy-900); color: var(--ice); }

@media (hover: hover) {
  .date-picker-day:not(:disabled):not(.is-selected):hover { background: var(--ice-bg); }
}

.contact-form .btn { justify-self: start; }

.form-status { font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: #2e6b33; }
.form-status.err { color: #a33a2a; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-950);
  color: var(--ice-muted);
  padding-block: 2.6rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--ice);
}

.footer-legal { margin-top: 0.7rem; }
.footer-copy { margin-top: 0.25rem; }

.footer-social { display: flex; gap: 1.1rem; }

.footer-social a {
  color: var(--ice-muted);
  transition: color 200ms ease, transform 250ms var(--ease-out);
  display: inline-flex;
  padding: 0.4rem;
}

.footer-social a:hover {
  color: var(--periwinkle);
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .work-layout { grid-template-columns: 1fr; }

  /* No stage preview on stacked layout — the list items themselves carry
     a "Poglej si več" label instead of the hover arrow */
  .work-stage { display: none; }

  .work-item-arrow {
    opacity: 1;
    transform: none;
  }

  .arrow-glyph { display: none; }
  .arrow-label { display: block; }

  /* The labels nudge sideways one after another every few seconds,
     hinting that the rows open a gallery */
  @media (prefers-reduced-motion: no-preference) {
    .work-item-arrow { animation: label-nudge 5.5s ease-in-out infinite; }
    .work-list li:nth-child(2) .work-item-arrow { animation-delay: 700ms; }
    .work-list li:nth-child(3) .work-item-arrow { animation-delay: 1400ms; }
    .work-list li:nth-child(4) .work-item-arrow { animation-delay: 2100ms; }
  }

  .work-overlay-panel { grid-template-columns: 1fr; }

  /* No full-width cover image on the sheet — straight to title and grid.
     The extra top padding clears the grab handle and the × button. */
  .work-overlay-cover { display: none; }
  .work-overlay-body { padding-top: 4rem; }
}

@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
  .location-inner { grid-template-columns: 1fr; }
  .work-overlay-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .work-overlay-body { padding: 4rem 1.25rem 2.2rem; }
}

@media (max-width: 420px) {
  .work-overlay-grid { grid-template-columns: 1fr; }
}
