/* F · Tipografski temelj — type is the image: 12-col Swiss grid, raw hairlines, words that settle like sediment. */
[data-dir="f"] { --maxw: 1600px; --gutter: clamp(16px, 2.6vw, 40px); }
.site-header { border-bottom: 2px solid var(--ink); }
.nav a { font-weight: 500; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--navy); border-bottom-width: 2px; }
.btn { font-weight: 600; letter-spacing: -0.01em; }
.btn--inv { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.btn--inv:hover { background: #fff; border-color: #fff; color: var(--ink); }
h1, h2, h3 { text-wrap: wrap; }

/* ---------- Hero ---------- */
.f-meta { display: grid; grid-template-columns: 3fr 4fr 3fr 2fr; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 500; color: var(--ink); }
.f-meta p { margin: 0; padding: 12px 0; }
.f-meta p:last-child { text-align: right; }
.f-meta a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.f-words { --fs: min(25.6vw, calc((100svh - 190px) / 2.55)); display: block; margin: 0; font-size: var(--fs); line-height: .8; text-transform: uppercase; color: var(--navy); letter-spacing: -0.045em; }
.f-words .w { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); border-bottom: 1px solid var(--ink); padding-top: .06em; }
.f-words .t { display: block; padding-bottom: .02em; margin-left: -0.04em; }
.f-words .w2 { flex-direction: row-reverse; }
.f-words .lab { font: 500 13px/1 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--ink); padding-bottom: 14px; white-space: nowrap; }
.f-words--one { --fs: min(24vw, 300px); }
.f-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); padding-block: var(--s-6) var(--s-8); }
.f-intro .lede { grid-column: 4 / 10; font: 500 var(--step-2)/1.25 var(--font-text); letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.f-intro .ctas { grid-column: 10 / -1; display: flex; flex-wrap: wrap; gap: var(--s-3); align-content: start; justify-content: flex-end; margin: 0; }

/* signature motion: words settle from the top, layer by layer */
@keyframes f-settle {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-14%); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}
.settle-load .t { animation: f-settle 1000ms cubic-bezier(.3, .7, .2, 1) both; }
.w1 .t { animation-delay: 100ms; }
.w2 .t { animation-delay: 380ms; }
.w3 .t { animation-delay: 660ms; }
@supports (animation-timeline: view()) {
  .settle { animation: f-settle linear both; animation-timeline: view(); animation-range: entry 5% cover 38%; }
}
.no-sdt .settle { animation: none; clip-path: inset(0 0 100% 0); }
.no-sdt .settle.in { animation: f-settle 900ms cubic-bezier(.3, .7, .2, 1) both; }

/* ---------- Sections ---------- */
.f-sec { padding-block: 0 var(--s-9); }
.f-sechead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: var(--s-7); }
.f-no { margin: 0; font: 800 15px/1.2 var(--font-display); letter-spacing: 0; color: var(--ink); }
.f-label { grid-column: 2 / 7; margin: 0; font: 600 15px/1.2 var(--font-text) !important; letter-spacing: 0 !important; color: var(--ink) !important; text-transform: none; }
.f-giant { margin: 0 0 var(--s-6); font: 800 min(19vw, 300px)/.8 var(--font-display); letter-spacing: -0.045em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--ink); padding-bottom: .02em; margin-left: -0.04em; }
.f-statement { margin: 0 0 0 calc(100% / 12); max-width: 22ch; font: 700 clamp(1.9rem, 1rem + 3.4vw, 4.2rem)/1.02 var(--font-display); letter-spacing: -0.03em; color: var(--navy); }

.f-list { border-top: 1px solid var(--ink); }
.f-list a { --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: baseline; padding: var(--s-5) var(--pad);
  border-bottom: 1px solid var(--ink); text-decoration: none; color: var(--ink); transition: background-color var(--dur-1) linear, color var(--dur-1) linear; }
.f-list .n { grid-column: 1; font: 800 var(--step-2)/1 var(--font-display); color: var(--navy); }
.f-list .t { grid-column: 2 / 9; font: 800 clamp(1.8rem, 1rem + 3vw, 4.4rem)/.95 var(--font-display); letter-spacing: -0.03em; color: var(--navy); }
.f-list .s { grid-column: 9 / -1; font-size: var(--step--1); line-height: 1.45; }
.f-list a:hover, .f-list a:focus-visible { background: var(--navy); color: var(--sand); outline: none; }
.f-list a:hover .n, .f-list a:hover .t, .f-list a:focus-visible .n, .f-list a:focus-visible .t { color: var(--sand); }

.f-new { background: var(--navy); color: #e9edf2; padding-block: var(--s-8) var(--s-9); margin-bottom: var(--s-9); }
.f-new .f-sechead { border-top-color: var(--sand); }
.f-new .f-no, .f-new .f-label { color: var(--sand) !important; }
.f-big { font-size: clamp(2.8rem, 1rem + 7vw, 8.5rem); line-height: .88; letter-spacing: -0.04em; color: var(--sand); margin-bottom: var(--s-7); max-width: 12ch; }
.f-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
.f-cols > :first-child { grid-column: 4 / 9; margin: 0; font-size: var(--step-1); line-height: 1.45; }
.f-cols > :last-child { grid-column: 10 / -1; margin: 0; }

.f-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.f-index h3 { font: 600 13px/1 var(--font-text); letter-spacing: 0; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.f-index li { padding: 8px 0; border-bottom: 1px solid rgba(22, 25, 30, .2); font-size: var(--step--1); line-height: 1.35; color: var(--muted); }
.f-index b { display: block; font: 700 var(--step-1)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--navy); }
.f-fine { margin-top: var(--s-4); font-size: 13px; color: var(--muted); }

.f-ph { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: end; }
.duo { margin: 0; position: relative; isolation: isolate; background: var(--sand); }
.duo img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
.duo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 30px; background: var(--navy); mix-blend-mode: lighten; pointer-events: none; }
.duo figcaption { height: 30px; padding-top: 8px; background: var(--bg); font-size: 13px; font-weight: 500; color: var(--ink); }
.ph1 { grid-column: 1 / 8; } .ph1 img { aspect-ratio: 4 / 3; }
.ph2 { grid-column: 8 / -1; } .ph2 img { aspect-ratio: 3 / 4; object-position: 30% 50%; }
.ph3 { grid-column: 1 / 5; } .ph3 img { aspect-ratio: 1 / 1; }
.ph4 { grid-column: 5 / -1; } .ph4 img { aspect-ratio: 16 / 7; }

.f-cols3 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
.f-cols3 > div { grid-column: span 4; border-top: 1px solid var(--ink); padding-top: var(--s-3); }
.f-cols3 > div:first-child { grid-column: 1 / 5; }
.f-cols3 h3 { font: 600 13px/1 var(--font-text); letter-spacing: 0; color: var(--ink); margin-bottom: var(--s-4); }
.f-cols3 p { font: 700 var(--step-2)/1.15 var(--font-display); letter-spacing: -0.03em; color: var(--navy); }
.site-footer { border-top: 2px solid var(--ink); }
.site-footer .iso { border-top-color: var(--ink); }

/* ---------- Usluge ---------- */
.f-phead .f-intro .lede { grid-column: 4 / -1; max-width: 36ch; }
.f-us { padding-bottom: var(--s-8); }
.f-u { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); padding-block: var(--s-6) var(--s-8); border-top: 2px solid var(--ink); scroll-margin-top: 90px; }
.f-un { grid-column: 1 / 4; margin: 0; font: 800 clamp(5rem, 2rem + 11vw, 15rem)/.78 var(--font-display); letter-spacing: -0.07em; color: var(--navy); margin-left: -0.04em; }
.f-ub { grid-column: 4 / -1; }
.f-ub h2 { font-size: clamp(2rem, 1rem + 3.4vw, 4.6rem); line-height: .95; letter-spacing: -0.03em; margin-bottom: var(--s-6); max-width: 16ch; }
.f-ub .f-cols > :first-child { grid-column: 1 / 5; color: var(--navy); font-weight: 600; }
.f-ub .f-cols > :last-child { grid-column: 5 / -1; max-width: 60ch; }
.f-tags { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--ink); font-size: 13px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .f-intro .lede { grid-column: 1 / -1; }
  .f-intro .ctas { grid-column: 1 / -1; justify-content: flex-start; }
  .f-list .t { grid-column: 2 / -1; }
  .f-list .s { grid-column: 2 / -1; }
  .f-cols > :first-child, .f-cols > :last-child { grid-column: 1 / -1; }
  .f-index { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .f-ub .f-cols > :first-child, .f-ub .f-cols > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .f-meta { grid-template-columns: 1fr 1fr; }
  .f-meta p:nth-child(2) { display: none; }
  .f-meta p:last-child { text-align: left; }
  .f-meta p:nth-child(3) { text-align: right; }
  .f-words { --fs: 23.5vw; }
  .f-words .lab { display: none; }
  .f-sechead .f-label { grid-column: 3 / -1; }
  .f-statement { margin-left: 0; }
  .f-list a { grid-template-columns: 40px 1fr; gap: var(--s-2) var(--s-3); }
  .f-list .t, .f-list .s { grid-column: 2; }
  .f-index { grid-template-columns: 1fr; }
  .f-ph > * { grid-column: 1 / -1 !important; }
  .ph2 img { aspect-ratio: 4 / 3; }
  .f-cols3 > div, .f-cols3 > div:first-child { grid-column: 1 / -1; }
  .f-u { grid-template-columns: 1fr; gap: var(--s-4); }
  .f-un, .f-ub { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .settle, .settle-load .t, .no-sdt .settle, .no-sdt .settle.in { animation: none !important; clip-path: none !important; transform: none !important; }
}
