@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

/* Layout: a single column ruled like an ops runbook; the arc mark anchors the hero, a "production checklist" carries the proof. */
:root {
  --paper: #eef0ec;
  --panel: #f8f9f6;
  --ink: #15202a;
  --muted: #5a6670;
  --rule: #cfd5d0;
  --accent: #2945c9;
  --accent-ink: #ffffff;
  --ok: #1f7a4d;
  --display: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10161c; --panel: #172029; --ink: #e6ebe7; --muted: #94a1a9;
    --rule: #2a3640; --accent: #8ea2ff; --accent-ink: #0d1530; --ok: #5fd39a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10161c; --panel: #172029; --ink: #e6ebe7; --muted: #94a1a9;
  --rule: #2a3640; --accent: #8ea2ff; --accent-ink: #0d1530; --ok: #5fd39a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  padding-inline: clamp(16px, 5vw, 56px);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.label {
  font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}

/* language toggle: only the active language is shown */
html:not([lang="hr"]) [lang="hr"] { display: none; }
html[lang="hr"] [data-l="en"] { display: none; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px; border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 var(--display); }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 20px; font-size: 0.92rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.lang {
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; padding: 7px 10px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: 4px;
}
.lang:hover { border-color: var(--ink); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 9vw, 104px) clamp(40px, 7vw, 80px);
}
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 24px; max-width: 54ch; font-size: 1.12rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 4px;
  font: 500 0.95rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.hero-mark { position: relative; aspect-ratio: 1; max-width: 100%; color: var(--accent); }
.hero-mark .orbit { position: absolute; inset: 0; color: var(--rule); }
.hero-mark .glyph { position: absolute; inset: 22%; }
.hero-mark .sweep path { stroke: var(--accent); }
.hero-mark .sweep circle { fill: var(--accent); }
.hero h1, .contact h2 { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .sweep { transform-origin: 150px 150px; animation: sweep 14s linear infinite; }
  @keyframes sweep { to { transform: rotate(360deg); } }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { width: 180px; order: -1; }
}

/* ---------- sections ---------- */
section { padding-block: clamp(48px, 8vw, 88px); border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
.sec-head p { color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* services: ruled two-column list, no cards */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.svc { padding-block: 24px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; }
.svc svg { width: 24px; height: 24px; color: var(--accent); margin-top: 3px; grid-row: span 2; }
.svc h3 { font-size: 1.25rem; font-weight: 500; }
.svc p { color: var(--muted); max-width: 46ch; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* projects */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.proj { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.proj h3 { font-size: 1.5rem; font-weight: 700; }
.proj p { color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 8px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.state.live::before { background: var(--ok); }
.proj .more { margin-top: auto; font: 500 0.9rem/1 var(--mono); color: var(--accent); text-decoration: none; }
.proj .more:hover { text-decoration: underline; }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }

/* production checklist */
.checklist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); overflow: hidden; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 20px; border-top: 1px solid var(--rule); }
.checklist li:first-child { border-top: 0; }
.checklist .tick { color: var(--ok); font-family: var(--mono); font-weight: 500; }
.checklist strong { font-weight: 600; }
.checklist span.d { color: var(--muted); }
.checklist .k { font: 400 0.8rem/1.4 var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .checklist li { grid-template-columns: 22px minmax(0, 1fr); }
  .checklist .k { grid-column: 2; text-align: left; }
}

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.principles h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
.principles p { color: var(--muted); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 24px; } }

/* contact */
.contact h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; max-width: 18ch; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.mail-addr { font: 500 clamp(1.1rem, 2.6vw, 1.5rem)/1 var(--mono); color: var(--accent); user-select: all; word-break: break-all; }
.contact .meta { margin-top: 24px; color: var(--muted); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; }
footer a { color: var(--muted); }
