/* ============================================================
   Ignjatov — izrada i dizajn sajtova  ·  v6 "Night Plume"
   Night-teal canvas with a living aurora (WebGL, js/aurora.js),
   alternating with warm paper panels. One system font (SF Pro / Inter)
   throughout. Signatures: blur-in reveals, frosted glass cards
   floating over drifting colour clouds, a rotating conic halo
   around the live demo frames, film grain on everything.
   Transform/opacity motion only.
   ============================================================ */

@property --halo { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --night: #021616;
  --night-soft: #0A2423;
  --paper: #FBFAF6;
  --paper-sunken: #F5F3EE;
  --plume-300: #72C2B5;
  --plume-400: #369F92;
  --plume-500: #008478;
  --plume-700: #005B53;
  --butter: #F6E8B3;
  --sky: #C4E3F9;
  --mint: #C3F0E3;
  --glow-warm: #FEE3C5;

  /* surface tokens — dark by default, overridden on .section--paper */
  --bg: var(--night);
  --ink: #F3F5F1;
  --muted: rgba(243, 245, 241, 0.66);
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.22);
  --accent: var(--plume-300);
  --accent-dim: rgba(114, 194, 181, 0.5);
  --btn-bg: var(--paper);
  --btn-fg: var(--night);
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.07));
  --glass-border: rgba(255, 255, 255, 0.16);

  --font-display: var(--font-apple);
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: var(--font-apple);

  --pad-x: clamp(20px, 5vw, 72px);
  --container: 1160px;
  --radius-panel: clamp(22px, 3vw, 36px);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--plume-400); color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.04; max-width: 22ch; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 20px; top: -60px;
  z-index: 200;
  background: var(--paper); color: var(--night);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 14px; }

/* ============================================================
   Paper panels — warm light surfaces between the night ones
   ============================================================ */
.section--paper {
  --ink: #151F21;
  --muted: #464F50;
  --hairline: #E0DED8;
  --hairline-strong: #CFCCC4;
  --accent: var(--plume-500);
  --accent-dim: rgba(0, 132, 120, 0.4);
  --btn-bg: var(--night);
  --btn-fg: var(--paper);
  --glass-border: #E0DED8;
  background: var(--paper);
  color: var(--ink);
  margin: 0 clamp(8px, 1.4vw, 20px);
  border-radius: var(--radius-panel);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s ease,
              background .35s ease, border-color .35s ease, color .35s ease;
}
/* travelling shine on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn-accent {
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 14px 34px -12px rgba(0, 0, 0, 0.5);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 20px 44px -12px rgba(0, 0, 0, 0.55),
              0 0 0 6px rgba(114, 194, 181, 0.2);
}
.btn-accent:active { transform: translateY(0); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}
.btn-ghost:active { transform: translateY(0); }

.btn--nav { min-height: 2.25rem; padding: 0 18px; font-size: 13px; }

/* ============================================================
   Fixed backdrop — aurora canvas, shade, grain
   ============================================================ */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--night);
}
.bg-aurora {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .3s ease-out;
}
.bg-aurora.is-ready { opacity: 1; }
/* Plumeform's hero shade: calm centre behind the headline, night at the edges */
.bg-shade {
  position: absolute;
  inset: 0;
  opacity: 0.73;
  background:
    radial-gradient(ellipse 62% 64% at 50% 42%, rgba(2, 22, 22, 0.72), transparent 78%),
    linear-gradient(180deg, rgba(2, 22, 22, 0.55), transparent 24%, transparent 76%, rgba(2, 22, 22, 0.6));
}
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* CSS cloud fallback — only visible when WebGL is unavailable */
.bg-clouds { position: absolute; inset: 0; opacity: 0; }
.no-gl .bg-clouds { opacity: 1; }
.bg-clouds span {
  position: absolute;
  width: 70vmax; height: 56vmax;
  border-radius: 50%;
  filter: blur(80px);
  animation: cloudFloat 18s ease-in-out infinite;
}
.bg-clouds span:nth-child(1) { background: rgba(54, 159, 146, 0.45); top: -20%; left: -10%; }
.bg-clouds span:nth-child(2) { background: rgba(196, 227, 249, 0.18); top: 10%; right: -20%; animation-duration: 23s; animation-delay: -8s; }
.bg-clouds span:nth-child(3) { background: rgba(254, 227, 197, 0.12); bottom: -30%; left: 20%; animation-duration: 27s; animation-direction: reverse; }
@keyframes cloudFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(9%, -13%) scale(1.15); }
  66% { transform: translate(-8%, 9%) scale(0.93); }
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: fixed;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - 2rem);
  max-width: 69rem;
  height: 3.25rem;
  padding: 0 0.5625rem 0 0.9rem;
  border: 1px solid rgba(251, 250, 246, 0.15);
  border-radius: 9999px;
  color: var(--paper);
  background-color: rgba(2, 22, 22, 0.76);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px -28px rgba(2, 22, 22, 0.9);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
/* liquid glass: the backdrop is also gently refracted (Chromium) */
@supports ((-webkit-backdrop-filter: url(#lg-dist)) or (backdrop-filter: url(#lg-dist))) {
  .topbar {
    -webkit-backdrop-filter: blur(18px) saturate(1.3) url(#lg-dist);
    backdrop-filter: blur(18px) saturate(1.3) url(#lg-dist);
  }
}
.lg-specular {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 1px 1px 0 rgba(251, 250, 246, 0.3), inset 0 0 6px rgba(251, 250, 246, 0.3);
}
.topbar > :not(.lg-specular) { position: relative; z-index: 2; }
.topbar.is-scrolled {
  border-color: rgba(251, 250, 246, 0.22);
  background-color: rgba(2, 22, 22, 0.82);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #F3F5F1;
}
.logo-mark { width: 10px; height: 22px; flex: none; transition: transform .4s var(--ease-out); }
.logo:hover .logo-mark { transform: translateY(-1px) rotate(-6deg); }
.logo-name {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #F3F5F1;
}
.logo-name b { font-weight: 800; }
.logo-sub { font-weight: 500; color: var(--plume-300); }

.topbar-links { display: flex; align-items: center; gap: 2px; }
.topbar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #ACBBB9;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.topbar-links a:hover { color: var(--paper); background: rgba(251, 250, 246, 0.08); }

.nav-toggle {
  display: none;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex: none;
}
.nav-toggle span {
  height: 2px;
  border-radius: 2px;
  background: #F3F5F1;
  transition: transform .25s var(--ease-out), opacity .2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.topbar-right { display: flex; align-items: center; gap: 14px; }

.topbar .btn-accent { --btn-bg: var(--paper); --btn-fg: var(--night); }

.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.lang-btn {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(243, 245, 241, 0.66);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color .3s ease, background .3s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active { color: var(--night); background: var(--paper); }

/* ============================================================
   Hero — centred, floating over the aurora
   ============================================================ */
.hero,
.hero .btn,
.hero-title { font-family: var(--font-apple); }
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px var(--pad-x) 100px;
  text-align: center;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

/* ---------- Status island (opens on hover, like the iPhone's) ----------
   Size, radius, drop-in and content fade are driven by a spring in main.js. */
.island {
  position: absolute;
  top: 86px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 134px;
  height: 34px;
  padding: 0 0 0 11px;
  border-radius: 17px;
  overflow: hidden;
  background: rgba(11, 13, 13, 1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0), 0 14px 30px -18px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  font-family: var(--font-apple);
  color: var(--ink);
  cursor: default;
  outline: none;
  opacity: 0;
  transform: translateY(-24px) scale(0.6);
  will-change: width, height, transform;
  transition: padding .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.island.is-ready { opacity: 1; }
.island.is-open {
  padding-left: 18px;
  background-color: rgba(10, 14, 14, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 22px 44px -20px rgba(0, 0, 0, 0.9);
}
.island-dot {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0b3e2d;
}
.island-dot::before,
.island-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #00ffaa;
}
.island-dot::after { box-shadow: 0 0 7px rgba(0, 255, 170, 0.8); }
.island-dot::before { animation: island-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes island-ping {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(3.2); opacity: 0; }
}
.island-text,
.island-cta { opacity: 0; }
.island-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.island-text strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.island-text span { font-size: 12.5px; font-weight: 500; color: rgba(243, 245, 241, 0.58); }
.island-cta {
  flex: none;
  margin-right: 11px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: #04201e;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .island-dot::before { animation: none; }
}


.hero-title {
  font-size: clamp(42px, 6.6vw, 92px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-title-em {
  font-style: normal;
  background: linear-gradient(95deg, var(--plume-300), var(--sky) 45%, var(--glow-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 54ch;
  margin: 0 auto 38px;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Hero orb (right column) ---------- */
.hero-orb {
  position: relative;
  min-width: 0;
}
.hero-orb-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1.15;
}
.hero-orb-caption {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.hero-orb-caption.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hero-orb-caption a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-apple);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.hero-orb-caption strong { font-weight: 700; }
.hero-orb-caption span { color: var(--muted); }
.hero-orb-caption i { font-style: normal; color: var(--plume-300); }

@media (min-width: 961px) {
  .hero { text-align: left; }
  .hero:not(.hero--no-orb) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(24px, 4vw, 64px);
  }
  .hero:not(.hero--no-orb) .hero-inner { max-width: none; margin: 0; padding-left: clamp(0px, 7vw, 110px); }
  .hero:not(.hero--no-orb) .hero-sub { margin-left: 0; }
  .hero:not(.hero--no-orb) .hero-ctas { justify-content: flex-start; }
}
@media (max-width: 960px) {
  .hero { flex-direction: column; justify-content: center; gap: 28px; padding-top: 180px; }
  .hero-orb { width: min(100%, 520px); }
}
.hero--no-orb .hero-orb { display: none; }

.work-note {
  max-width: 56ch;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Entrance choreography ---------- */
.mask {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.2em 0.14em;
  margin: -0.06em -0.2em -0.14em;
}
.mask-inner {
  display: block;
  transform: translateY(118%);
  filter: blur(10px);
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: calc(var(--mi, 0) * 140ms + 150ms);
}
body.is-loaded .mask-inner { transform: none; filter: none; }

.fade-item {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(8px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--fi, 0) * 120ms + 500ms);
}
body.is-loaded .fade-item { opacity: 1; transform: none; filter: none; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: clip;
  padding: 28px 0;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(2, 22, 22, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-track span.is-outline {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 245, 241, 0.5);
}
.marquee-track i {
  font-style: normal;
  font-size: 18px;
  color: var(--plume-300);
}
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Philosophy — particles assemble into text ---------- */
.section--philo { text-align: center; }
.philo-particles { position: relative; }
.philo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.philo-particles-ready .philo-canvas { opacity: 1; }
.philo-particles-ready .philo-line { opacity: 0; }
.philo-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  transition: opacity .3s ease;
}
.philo-line--dim {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 245, 241, 0.4);
}
.philo-line--em {
  color: var(--plume-300);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(76px, 9vw, 128px) var(--pad-x);
}
.section > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section + .section--paper,
.section--paper + .section { margin-top: clamp(8px, 1.4vw, 20px); }

.section-head { margin-bottom: clamp(40px, 6vw, 68px); }
.section-head--center { text-align: center; }
.section-head--center h2 { margin-left: auto; margin-right: auto; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-photo { display: flex; justify-content: center; }
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}
.photo-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.about-copy h2 { margin-bottom: 24px; }
.about-copy p { max-width: 58ch; color: var(--muted); margin-bottom: 16px; }

.fact-list { list-style: none; margin-top: 34px; }
.fact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.fact-list li:last-child { border-bottom: 1px solid var(--hairline); }
.fact-list strong {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  min-width: 220px;
}
.fact-list span { color: var(--muted); font-size: 15px; }

/* ---------- Case studies ---------- */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5.5vw, 64px) 0;
}
.case + .case { border-top: 1px solid var(--hairline); }
.case--flip .case-mock { order: 2; }
/* min-width: 0 lets the column shrink under the 1440px-wide mock-frame on mobile */
.case-mock, .case-copy { min-width: 0; }

.case-tag {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}
.case-tag span { color: var(--accent); }
.case-tag span::after { content: " /"; color: var(--accent-dim); }
.case-tag em { font-style: normal; }
.case h3 { font-size: clamp(34px, 3.6vw, 50px); margin-bottom: 22px; }

.case-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.case-facts dt {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 6px;
}
.case-facts dd { color: var(--muted); font-size: 15.5px; }
.case-facts dd strong { color: var(--ink); font-weight: 700; }

.case-demo { margin-top: 28px; align-self: start; }

/* Browser mockups — with a rotating conic halo ring */
.case-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.case-mock::after {
  content: attr(data-spec);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.7;
}
.mock-browser {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--night-soft);
  box-shadow: 0 2px 4px rgba(21, 31, 33, 0.08), 0 32px 64px -24px rgba(0, 51, 48, 0.4);
  transition: transform .7s var(--ease-out), box-shadow .7s ease;
}
.mock-browser::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--halo), var(--plume-300), var(--sky), var(--glow-warm), var(--butter), var(--mint), var(--plume-300));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.55;
  pointer-events: none;
  animation: haloSpin 6s linear infinite;
  transition: opacity .6s ease;
}
@keyframes haloSpin { to { --halo: 360deg; } }
.case:hover .mock-browser {
  transform: translateY(-8px);
  box-shadow: 0 2px 4px rgba(21, 31, 33, 0.1), 0 44px 90px -24px rgba(0, 91, 83, 0.55),
              0 0 60px -10px rgba(114, 194, 181, 0.5);
}
.case:hover .mock-browser::before { opacity: 1; }

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0D2B2A;
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }

/* Live hero preview — real demo page rendered at 1440×900 and scaled to fit */
.mock-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: var(--night-soft);
}
.mock-frame {
  display: block;
  width: 1440px;
  height: 900px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}

.mock-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Services — frosted cards floating over colour clouds ---------- */
#usluge { overflow: clip; }
.panel-clouds {
  position: absolute !important;
  inset: 0;
  max-width: none !important;
  margin: 0 !important;
  z-index: -1;
  isolation: isolate;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 72%);
}
.panel-clouds > span {
  position: absolute;
  width: 70%; height: 80%;
  border-radius: 50%;
  filter: blur(48px) saturate(1.5);
  mix-blend-mode: screen;
  animation: cloudFloat 14s ease-in-out infinite;
}
.panel-clouds > span:nth-child(1) { background: rgba(54, 159, 146, 0.55); top: 8%; left: -12%; animation-delay: -4s; }
.panel-clouds > span:nth-child(2) { background: rgba(196, 227, 249, 0.32); top: -18%; left: 27%; animation-duration: 17s; animation-delay: -9s; }
.panel-clouds > span:nth-child(3) { background: rgba(254, 227, 197, 0.28); bottom: -16%; right: -14%; animation-duration: 21s; animation-direction: reverse; animation-delay: -6s; }

.serv-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.serv-card {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.22), inset -1px -1px 0 rgba(114, 194, 181, 0.2),
              0 8px 24px -12px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  transition: border-color .5s ease, background .5s ease;
}
.serv-card:hover { border-color: rgba(255, 255, 255, 0.34); }
.serv-card h3 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: 12px; }
.serv-card p { font-size: 16px; color: var(--muted); max-width: 40ch; }

/* ---------- Process ---------- */
.proc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(32px, 5vw, 72px);
}
.proc-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.proc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}
.proc-step h3 { font-size: 30px; margin-bottom: 8px; }
.proc-step p { color: var(--muted); font-size: 15.5px; max-width: 48ch; }

/* ---------- Testimonials ---------- */

/* ---------- Contact ---------- */
.section--contact {
  text-align: center;
  overflow: clip;
  padding-bottom: clamp(100px, 12vw, 160px);
}
/* a slowly turning conic glow behind the call to action */
.section--contact::before {
  content: "";
  position: absolute;
  left: 50%; top: 52%;
  width: min(900px, 120vw); aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(var(--plume-400), var(--sky), var(--glow-warm), var(--mint), var(--plume-400));
  filter: blur(110px);
  opacity: 0.22;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.contact-title {
  font-size: clamp(46px, 6.6vw, 94px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin: 0 auto 22px;
}
.contact-sub {
  max-width: 52ch;
  margin: 0 auto 40px;
  color: var(--muted);
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.contact-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 26px var(--pad-x) 36px;
  border-top: 1px solid var(--hairline);
  background: rgba(2, 22, 22, 0.6);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Scroll reveals — blur in, rise, settle ---------- */
.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(22px) scale(0.985);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; filter: none; transform: none; }

/* ---------- Custom cursor ring (desktop only) ---------- */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 1.5px solid var(--plume-300);
  background: rgba(114, 194, 181, 0.07);
  box-shadow: 0 0 20px rgba(114, 194, 181, 0.25);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.3s var(--ease-out), width 0.25s var(--ease-out),
    height 0.25s var(--ease-out), margin 0.25s var(--ease-out),
    background 0.25s var(--ease-out);
}
.cursor-ring.is-active { opacity: 1; }
.cursor-ring.is-hover {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  background: rgba(114, 194, 181, 0.16);
}

/* Floating glass — desktop only, gentle 3D sway */
@media (hover: hover) and (pointer: fine) {
  .serv-card { animation: glassFloat 11s ease-in-out infinite; transform-origin: 50% 60%; }
  .serv-card:nth-child(3n) { animation-duration: 13s; animation-direction: reverse; animation-delay: -5s; }
  .serv-card:nth-child(2n) { animation-delay: -3s; }
}
@keyframes glassFloat {
  0%, 100% { transform: perspective(1200px) translate(0) rotateX(0.9deg) rotateY(-1.2deg); }
  33% { transform: perspective(1200px) translateY(-6px) rotateX(-0.5deg) rotateY(0.6deg); }
  66% { transform: perspective(1200px) translateY(-2px) rotateX(0.4deg) rotateY(1.3deg); }
}

/* Touch: drop continuous blur/animation cost */
@media (hover: none), (pointer: coarse) {
  .cursor-ring { display: none; }
  .lang-switch, .btn-ghost, .marquee, .photo-frame { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .serv-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 36, 35, 0.78); }
  .panel-clouds > span, .section--contact::before { animation: none; }
  .section--contact::before { filter: blur(70px); }
  .mock-browser::before { animation-duration: 10s; }
}

/* ---------- No-JS fallback ---------- */
.no-observer .reveal, .no-observer .fade-item, .no-observer .mask-inner { opacity: 1; transform: none; filter: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor-ring { display: none; }
  .mask-inner, .fade-item, .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  .marquee-track, .serv-card, .panel-clouds > span, .bg-clouds span,
  .mock-browser::before, .section--contact::before { animation: none !important; }
  .btn, .btn::after, .mock-browser { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .case { grid-template-columns: 1fr; }
  .case--flip .case-mock { order: 0; }

  .nav-toggle { display: flex; order: 3; }
  .topbar-right { order: 2; margin-left: auto; gap: 8px; }
  .topbar > .topbar-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(251, 250, 246, 0.15);
    border-radius: 24px;
    background: rgba(2, 22, 22, 0.96);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
  }
  body.nav-open .topbar-links { opacity: 1; visibility: visible; transform: none; }
  .topbar-links a { min-height: 2.75rem; padding: 0 16px; font-size: 15px; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(2, 14, 14, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease-out);
  }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { justify-content: center; }
  .proc-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .serv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .btn--nav { display: none; }
  .footer { flex-direction: column; }
  .fact-list strong { min-width: 0; width: 100%; }
  .case-facts div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .case-tag { font-size: 14px; }
  .case h3 { font-size: 40px; line-height: 1.08; }
  .case-facts dt { font-size: 12.5px; padding-top: 0; }
  .case-facts dd { font-size: 17.5px; line-height: 1.5; }
  .case-demo { width: 100%; justify-content: center; min-height: 54px; font-size: 16.5px; }
  .work-note { font-size: 19px; }
  .case-mock::after { display: none; }
  .proc-step { grid-template-columns: 48px 1fr; gap: 14px; }
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 600px;
  margin: 0 0 0 auto;
  padding: clamp(22px, 3vw, 32px);
  text-align: left;
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6);
}
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.field--full { margin-bottom: 18px; }
.field-label, .field-set legend { font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  padding: 8px 0 9px;
  transition: border-color .25s ease;
}
.contact-form textarea { resize: vertical; min-height: 56px; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: none; border-bottom-color: var(--accent); }
.field-set { border: 0; padding: 0; margin: 4px 0 16px; }
.field-set legend { padding: 0; margin-bottom: 8px; }
.chip-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opt { position: relative; cursor: pointer; font-size: 13.5px; color: var(--muted); padding: 6px 13px; border: 1px solid var(--hairline-strong); border-radius: 8px; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-opt:hover { color: var(--ink); }
.chip-opt:has(input:checked) { color: var(--night); background: var(--paper); border-color: var(--paper); }
.chip-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-send { min-width: 200px; justify-content: center; }
.form-send:disabled { opacity: .6; cursor: wait; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.form-status { min-height: 1.4em; margin-top: 8px; font-size: 14px; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-err { color: #ffb4a8; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Asymmetric contact: copy + direct channels left, form right (raised) */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  text-align: left;
  padding-inline: max(var(--pad-x), calc((100vw - 1240px) / 2));
  padding-bottom: clamp(70px, 8vw, 110px);
}
.contact-split .contact-title { font-size: clamp(44px, 5.6vw, 84px); max-width: 11ch; margin: 0 0 24px; }
.contact-split .contact-sub { margin: 0 0 34px; font-size: clamp(18px, 1.6vw, 22px); max-width: 30ch; line-height: 1.5; }
.contact-split .contact-links .btn { font-size: 17px; padding: 16px 28px; }
.contact-split .contact-note { font-size: 15px; }
.contact-split .contact-links { justify-content: flex-start; }
.contact-split .contact-copy { margin: 0; padding-top: 0; }
.contact-split .contact-form { margin: 0; max-width: none; justify-self: stretch; width: 100%; }
@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-split .contact-copy { padding-top: 0; }
  .contact-split .contact-form { margin: 8px 0 0; max-width: none; }
}

/* ============================================================
   Plutajuci WhatsApp
   ============================================================ */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: none;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  background: #25D366;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.55);
}
.wa-float svg { width: 1.7rem; height: 1.7rem; }
@media (max-width: 960px) {
  .wa-float { display: grid; }
}

/* ---------- Comparison: builder vs custom ---------- */
.cmp-lead { max-width: 62ch; color: var(--muted); margin-top: 18px; }
.cmp {
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  overflow: clip;
}
.cmp-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) 1.2fr 1.4fr;
  gap: clamp(14px, 2.4vw, 36px);
  padding: 20px clamp(18px, 3vw, 36px);
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.cmp-row:first-child { border-top: 0; }
.cmp-row span { min-width: 0; font-size: 15.5px; color: var(--muted); }
.cmp-row .cmp-k { color: var(--ink); font-weight: 600; }
.cmp-row .cmp-us { color: var(--ink); }
.cmp-row--head span {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.cmp-row--head .cmp-us { color: var(--accent); }
.cmp-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.fit {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(32px, 4vw, 52px);
}
.fit-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.fit-card--no { margin-top: clamp(0px, 3vw, 44px); background: transparent; border-style: dashed; border-color: var(--hairline-strong); }
.fit-card h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 10px; }
.fit-card p { color: var(--muted); font-size: 16px; max-width: 52ch; }
.cmp-more { margin-top: 26px; }
.cmp-more a { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-dim); padding-bottom: 2px; }
.cmp-more a:hover { border-bottom-color: var(--accent); }

/* ---------- FAQ ---------- */
.section .faq { max-width: 820px; margin-left: 0; margin-right: auto; border-bottom: 1px solid var(--hairline); }
.faq-item { border-top: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 28px; line-height: 1; color: var(--accent);
  transition: rotate .3s ease;
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item p { padding: 0 48px 26px 0; color: var(--muted); max-width: 62ch; }

@media (max-width: 860px) {
  .fit { grid-template-columns: 1fr; }
  .fit-card--no { margin-top: 0; }
  .cmp-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .cmp-row--head { display: none; }
  .cmp-row .cmp-k { font-size: 17px; }
  .cmp-row .cmp-us { padding-left: 12px; border-left: 2px solid var(--accent); }
  .faq-item p { padding-right: 0; }
}
