/* Dve u fokusu — shared design tokens & primitives */

:root {
  --ink: #0b0a09;
  --ink-2: #13110f;
  --ink-3: #1c1916;
  --paper: #ede7db;
  --paper-2: #d9d1c2;
  --paper-dim: rgba(237, 231, 219, 0.6);
  --paper-faint: rgba(237, 231, 219, 0.32);
  --line: rgba(237, 231, 219, 0.14);
  --line-strong: rgba(237, 231, 219, 0.3);
  --accent: #ff4b22;
  --accent-soft: rgba(255, 75, 34, 0.16);
  --safelight: #b3170d;
  --grease: #e3271b;
  --edge: #e08a2c;
  --ok: #9be37a;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --hand: 'Caveat', 'Marker Felt', cursive;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --gutter: clamp(16px, 3.2vw, 48px);
  --radius: 2px;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

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

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.italic {
  font-style: italic;
}

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

/* Film grain overlay */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 9%); }
  80% { transform: translate(8%, 2%); }
  100% { transform: translate(-4%, -5%); }
}

/* Cursor: a real (zero-lag) pointer drawn as a focus dot, plus AF brackets as a hint over photos */
:root {
  --cur-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='11' fill='none' stroke='%230b0a09' stroke-opacity='.35' stroke-width='3'/%3E%3Ccircle cx='16' cy='16' r='11' fill='none' stroke='%23ede7db' stroke-width='1.2'/%3E%3Ccircle cx='16' cy='16' r='3.6' fill='%23ede7db' stroke='%230b0a09' stroke-width='1.2'/%3E%3C/svg%3E") 16 16;
  --cur-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23ff4b22' fill-opacity='.18' stroke='%230b0a09' stroke-opacity='.4' stroke-width='3.4'/%3E%3Ccircle cx='16' cy='16' r='13' fill='none' stroke='%23ff4b22' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%23ff4b22' stroke='%230b0a09' stroke-width='1'/%3E%3C/svg%3E") 16 16;
}
@media (hover: hover) and (pointer: fine) {
  html.has-cursor,
  html.has-cursor body {
    cursor: var(--cur-dot), auto;
  }
  html.has-cursor :is(a, button, [role='button'], label, select, summary, [data-view], [data-cursor]) {
    cursor: var(--cur-ring), pointer;
  }
  html.has-cursor :is(input, textarea) {
    cursor: text;
  }
}
.cursor {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}
.cursor__dot {
  display: none;
}
.cursor__af {
  position: absolute;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  opacity: 0;
  transform: scale(1.4);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.cursor__af i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #fff;
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6));
}
.cursor__af i:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.cursor__af i:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.cursor__af i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.cursor__af i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.cursor__label {
  position: absolute;
  left: 40px;
  top: 22px;
  padding: 5px 9px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.4s var(--ease-out);
}
.cursor.is-view .cursor__af {
  opacity: 1;
  transform: none;
}
.cursor.has-label .cursor__label {
  opacity: 1;
  transform: none;
}
.cursor.is-hidden {
  opacity: 0;
}
.cursor.is-down .cursor__af {
  transform: scale(0.7);
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease-out), border-color 0.5s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover {
  color: var(--ink);
  border-color: var(--paper);
}
.btn:hover::before {
  transform: none;
}
.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn--accent::before {
  background: var(--paper);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.dot--rec {
  animation: rec 1.6s ease-in-out infinite;
}
@keyframes rec {
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Arriving through a page transition: stay dark until the iris takes over */
html.iris-enter::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--ink);
}

/* Magnetic elements get a slightly larger catch area */
[data-magnetic] {
  position: relative;
}
[data-magnetic]::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: inherit;
}

/* ---------- Teodora & Marija, anywhere ---------- */
.duo-mini {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  height: var(--duo-h, 140px);
}
.duo-mini__g {
  height: 100%;
  aspect-ratio: 220 / 340;
  margin: 0 -6%;
}
.duo-mini svg,
.girl-solo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.say {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  translate: -50% 0;
  z-index: 5;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
}
.say::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 0;
  border: 7px solid transparent;
  border-top-color: var(--paper);
}
