/* ==========================================================================
   TOKENI + OSNOVA
   Paleta je uzeta iz samih fotografija: tamna smrča (ink), sneg (snow),
   toplo drvo nameštaja (wood) i alpsko crvena iz ukrasnih jastuka (ember).
   ========================================================================== */
:root {
  --ink: #0d1512;
  --ink-2: #131e1a;
  --ink-3: #1b2924;
  --snow: #f4f1ea;
  --snow-2: #ebe6dc;
  --paper: #fbf9f5;
  --white: #ffffff;
  --text: #0d1512;
  --muted: #59625d;
  --soft: #8b928e;
  --line: rgba(13, 21, 18, .12);
  --line-2: rgba(13, 21, 18, .07);
  --on-ink: #f4f1ea;
  --on-ink-muted: rgba(244, 241, 234, .66);
  --on-ink-line: rgba(244, 241, 234, .14);

  --ember: #c4482d;
  --ember-d: #a8391f;
  --ember-l: #e9785e;
  --wood: #a87a52;
  --wood-d: #7a5232;
  --wood-l: #dcc09d;
  --sand: #e9e0d2;
  --frost: #c8d9e3;

  --f-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --f-sans: 'Inter Tight', 'Helvetica Neue', Arial, system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --ease-s: cubic-bezier(.65, 0, .35, 1);

  --gut: clamp(16px, 4.2vw, 64px);
  --max: 1380px;
  --r: 30px;
  --r-md: 22px;
  --r-sm: 14px;
  --header-h: 92px;
  --shadow: 0 30px 80px -30px rgba(13, 21, 18, .35), 0 8px 24px -12px rgba(13, 21, 18, .18);
  --shadow-sm: 0 14px 40px -18px rgba(13, 21, 18, .3);

  --hero-shade:
    radial-gradient(60% 50% at 12% 16%, rgba(8, 13, 11, .62) 0%, rgba(8, 13, 11, 0) 100%),
    radial-gradient(40% 35% at 92% 16%, rgba(8, 13, 11, .4) 0%, rgba(8, 13, 11, 0) 100%),
    linear-gradient(180deg, rgba(8, 13, 11, .66) 0%, rgba(8, 13, 11, .18) 28%, rgba(8, 13, 11, .02) 44%, rgba(8, 13, 11, .3) 64%, rgba(8, 13, 11, .88) 100%);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
abbr[title] { text-decoration: none; border: 0; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.is-off { display: none !important; }
body.is-locked { overflow: hidden; }
html.is-loading, html.is-loading body { overflow: hidden; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: var(--snow); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- raspored ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(96px, 12vw, 180px) 0; position: relative; }

/* ---------- tipografija ---------- */
.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 1.25rem + 5vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--wood-d); }
.display--light { color: var(--on-ink); }
.display--light em { color: var(--wood-l); }
.display--xl { font-size: clamp(3.2rem, 1rem + 8.6vw, 10rem); line-height: .92; }

.lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.lead--light { color: var(--on-ink-muted); }
.micro { font-size: 13px; line-height: 1.5; color: var(--soft); }
.micro--light { color: var(--on-ink-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
}
.eyebrow__n { font-family: var(--f-serif); font-style: italic; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ember); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow__n::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow--light { color: var(--on-ink-muted); }
.eyebrow--light .eyebrow__n { color: var(--wood-l); }

.sec-head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head--center .lead { margin-top: 26px; }
.sec-head--split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px 64px; align-items: end; }
.sec-head--split .lead { justify-self: end; }

/* ---------- otkrivanje ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .1em; margin: 0 -.08em -.1em; }
.mw > span { display: inline-block; }
.js [data-split] .mw > span { transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 60ms); }
.js [data-split].is-in .mw > span { transform: none; }
.reveal-fallback [data-reveal], .reveal-fallback [data-split] .mw > span, .reveal-fallback [data-hero-in], .reveal-fallback .hero__word span { opacity: 1 !important; transform: none !important; }
.reveal-fallback .loader { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; --r: 24px; }
  .sec-head--split { grid-template-columns: 1fr; }
  .sec-head--split .lead { justify-self: start; }
}
