/* =========================================================
   VEBER DIGITAL — design tokens & base
   ========================================================= */

:root {
  /* Surfaces — dark (default) */
  --bg: #080C14;
  --bg-elev: #0E121B;
  --surface: #111318;
  --surface-2: #14171F;
  --border: #1E2128;
  --border-strong: #262A33;

  /* Text */
  --text: #F0EEE9;
  --text-muted: #9A9C9F;
  --text-dim: #6B6E74;
  --text-body: #D5D3CE;

  /* Accent (default: electric blue) */
  --accent: #3B6FE8;
  --accent-text: #3B6FE8;
  --accent-hover: #5A87F0;
  --accent-dim: rgba(59, 111, 232, 0.12);
  --accent-on: #FFFFFF;

  /* Grid bg opacity (tunable per theme) */
  --grid-line: rgba(255,255,255,0.018);
  --hero-glow: rgba(59,111,232,0.06);
  --silhouette-1: rgba(240,238,233,0.06);
  --silhouette-2: rgba(240,238,233,0.04);
  --thumb-line: rgba(255,255,255,0.03);
  --stripe: rgba(255,255,255,0.015);

  /* Type */
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --max-w: 1280px;
  --gutter: 32px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(8,12,20,0.04), 0 8px 24px -8px rgba(8,12,20,0.10);
  --shadow-float: 0 2px 4px rgba(8,12,20,0.05), 0 18px 48px -16px rgba(8,12,20,0.18);

  /* Status colors */
  --success: #4ade80;
  --success-dim: rgba(74, 222, 128, 0.12);
  --error: #e26161;
  --error-dim: rgba(226, 97, 97, 0.12);
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg: #E9ECED;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F6F7;
  --border: #DDE0E2;
  --border-strong: #C4C8CC;

  --text: #0E1116;
  --text-muted: #5C6168;
  --text-dim: #8A8F97;
  --text-body: #2A2E36;

  --grid-line: rgba(14,17,22,0.05);
  --hero-glow: rgba(59,111,232,0.04);
  --silhouette-1: rgba(14,17,22,0.10);
  --silhouette-2: rgba(14,17,22,0.06);
  --thumb-line: rgba(14,17,22,0.06);
  --stripe: rgba(14,17,22,0.03);

  --shadow-soft: 0 1px 2px rgba(14,17,22,0.04), 0 8px 24px -8px rgba(14,17,22,0.10);
  --shadow-float: 0 2px 4px rgba(14,17,22,0.05), 0 18px 48px -16px rgba(14,17,22,0.16);
}

/* ---------- Amber accent ---------- */
[data-accent="amber"] {
  --accent: #C8873A;
  --accent-text: #C8873A;
  --accent-hover: #D89B52;
  --accent-dim: rgba(200, 135, 58, 0.14);
  --hero-glow: rgba(200,135,58,0.06);
  --accent-on: #FFFFFF;
}

/* ---------- Lime accent ---------- */
[data-accent="lime"] {
  --accent: #C5F23B;
  --accent-text: #C5F23B;
  --accent-hover: #D2F660;
  --accent-dim: rgba(197, 242, 59, 0.22);
  --hero-glow: rgba(197,242,59,0.07);
  --accent-on: #0E1116;
}

/* Lime on light: bump text uses to a readable dark olive */
[data-theme="light"][data-accent="lime"] {
  --accent-text: #5E7F00;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, var(--hero-glow), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle global grid texture (build-loop style) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 90%);
}
body > * { position: relative; z-index: 1; }

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* =========================================================
   Typography
   ========================================================= */

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

.mono-accent { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

.h-display {
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.h1 {
  font-size: clamp(36px, 5.2vw, 66px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 640px;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.section-tight { padding: clamp(56px, 7vw, 96px) 0; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
              background 240ms ease,
              color 240ms ease,
              border-color 240ms ease,
              box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
  will-change: transform;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.btn-primary:hover {
  background: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px var(--accent-dim), 0 10px 30px -10px rgba(0,0,0,0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover {
  transform: none;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

[data-accent="lime"] .btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 0 0 3px var(--accent);
}
[data-accent="lime"] .btn-primary:hover {
  box-shadow: 0 0 0 4px var(--accent), 0 10px 30px -10px rgba(0,0,0,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn .arrow {
  transition: transform 180ms ease;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(3px); }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px var(--gutter) 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  transition: box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1),
              background 240ms ease,
              border-color 240ms ease;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .nav {
  background: rgba(20, 23, 31, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.nav.scrolled {
  box-shadow: 0 4px 8px rgba(8,12,20,0.06), 0 24px 60px -20px rgba(8,12,20,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.brand-wordmark .brand-dot {
  color: var(--accent-text, var(--accent));
  margin: 0 1px;
}
.brand-wordmark .brand-second {
  color: var(--text-muted);
  font-weight: 500;
}
.brand:hover .brand-wordmark .brand-second { color: var(--text); }
.brand-wordmark .brand-second,
.brand-wordmark .brand-dot { transition: color 200ms ease; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 160ms ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 220ms cubic-bezier(.2,.7,.2,1);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { right: 0; }
.nav-link.active { color: var(--text); }

.lang-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  color: var(--text-muted);
  border: 0;
  padding: 6px 10px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: color 160ms ease, background 160ms ease;
}
.lang-toggle button.on {
  color: var(--bg);
  background: var(--text);
}

[data-theme="light"] .btn-primary { color: #fff; }
[data-theme="light"] .form-success { background: rgba(74,222,128,0.08); }
[data-theme="light"] .article-body blockquote { color: var(--text); }

/* Mobile menu */
.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  position: relative;
  padding: 0;
}
.hamburger span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1.5px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease, top 200ms ease;
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

.mobile-overlay {
  position: fixed;
  top: calc(56px + 16px + 12px); /* nav height + nav margin-top + gap */
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  z-index: 99;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease;
}
@media (max-width: 880px) {
  .mobile-overlay {
    top: calc(52px + 12px + 12px); /* smaller nav + smaller margin + gap */
  }
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-overlay nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-overlay a {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 12px 4px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-overlay a.active { color: var(--accent); }
.mobile-overlay .mobile-lang {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.hero-grid-bg { display: none; }

.hero-content { position: relative; max-width: 1100px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-pill);
  margin-bottom: 36px;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  margin-bottom: 32px;
  max-width: 18ch;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.02em;
  text-decoration-skip-ink: none;
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 48px;
}

.hero-meta {
  position: absolute;
  bottom: clamp(40px, 6vw, 60px);
  right: var(--gutter);
  display: none;
  align-items: flex-end;
  gap: 32px;
  color: var(--text-dim);
}
@media (min-width: 900px) {
  .hero-meta {
    display: flex;
    gap: 24px;
  }
}
@media (min-width: 1080px) {
  .hero-meta {
    gap: 32px;
  }
}
.hero-meta .col { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .col span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-meta .col span:last-child {
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================
   Problem statements
   ========================================================= */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}
@media (max-width: 960px) and (min-width: 721px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 56px; }
}
@media (max-width: 720px) {
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
}

.problem-block {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-muted);
  font-weight: 400;
}
.problem-block .em {
  color: var(--text);
  display: block;
}
.problem-block .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

/* =========================================================
   Section heads
   ========================================================= */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section-head .left { max-width: 720px; }
.section-head .right { flex-shrink: 0; }
.section-head .mono { display: block; margin-bottom: 16px; }
@media (max-width: 880px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-head .right { display: none; }
}

/* =========================================================
   Service cards
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 36px;
  position: relative;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 320ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 280ms ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: var(--border-strong);
}
.service-card .mono { color: var(--text-dim); }
.service-card:hover .mono { color: var(--accent); }
.service-card .arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--text-dim);
  transition: color 220ms ease, transform 220ms ease;
  font-size: 18px;
}
.service-card:hover .arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}
.service-card h3 { font-size: clamp(20px, 1.8vw, 26px); }
.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 42ch;
}
.service-card.secondary h3 { font-size: 19px; color: var(--text-muted); }
.service-card.secondary { background: var(--surface-2); }
.service-card.secondary .mono { color: var(--text-dim); }

.services-grid .service-card:nth-child(5) {
  grid-column: 1 / -1;
}

/* =========================================================
   Process steps
   ========================================================= */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.process-step {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid var(--border); }

.process-step .num {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.process-step h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; }
.process-step p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 56ch;
  line-height: 1.55;
}
.process-step .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
@media (max-width: 1000px) and (min-width: 881px) {
  .process-step {
    grid-template-columns: 140px 1fr auto;
    gap: 32px;
  }
  .process-step .num { font-size: 52px; }
}
@media (max-width: 880px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .process-step .num { font-size: 42px; }
  .process-step .tag { justify-self: start; margin-top: 8px; }
}

/* Work stats badge - inline version (in section header) */
.work-stat-badge-inline {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.work-stat-number-inline {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  line-height: 1;
}

.work-stat-label-inline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  text-align: right;
  max-width: 140px;
}

@media (max-width: 880px) {
  .work-stat-badge-inline {
    display: none;
  }
}

.work-cta {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-large {
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 500;
}

/* =========================================================
   Project cards
   ========================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.projects-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .projects-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .projects-grid-three {
    grid-template-columns: 1fr;
  }
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: border-color 280ms ease,
              transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 320ms cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 320px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 880px) {
  .project-card {
    padding: 24px;
    gap: 14px;
    min-height: auto;
  }
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, var(--accent-dim), transparent 50%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}
.project-card:hover::before { opacity: 1; }

.project-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .project-card .meta {
    font-size: 10px;
    gap: 6px;
  }
}
.project-card .meta .sep { color: var(--text-dim); }
.project-card .meta .sector { color: var(--accent); }
.project-card .meta .type { color: var(--text-muted); }

.project-card h3 {
  font-size: clamp(22px, 2vw, 30px);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
@media (max-width: 880px) {
  .project-card h3 {
    font-size: 20px;
    margin-bottom: 2px;
  }
}
.project-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  flex-grow: 1;
}
@media (max-width: 880px) {
  .project-card p {
    font-size: 14px;
    line-height: 1.6;
  }
}
.project-card .link {
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
@media (max-width: 880px) {
  .project-card .link {
    font-size: 13px;
    margin-top: 4px;
  }
}
.project-card:hover .link { color: var(--accent); }
.project-card .link .arrow { transition: transform 220ms ease; }
.project-card:hover .link .arrow { transform: translateX(4px); }

.project-thumb {
  height: 140px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}
@media (max-width: 880px) {
  .project-thumb {
    height: 120px;
  }
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--thumb-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Projekti page specific grid */
.proj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 880px) {
  .proj-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================================
   Project Detail Page
   ========================================================= */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

.proj-detail-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
}
.proj-detail-meta .sector { color: var(--accent-text, var(--accent)); }
.proj-detail-meta .sep { color: var(--text-dim); }
.proj-detail-meta .type { color: var(--text-muted); }

.proj-detail-result {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 60ch;
  padding: 18px 0 18px 22px;
  border-left: 2px solid var(--accent-text, var(--accent));
  text-wrap: pretty;
}

.proj-metrics-section {
  padding: 24px 0 56px;
}
.proj-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 720px) {
  .proj-metrics { grid-template-columns: repeat(2, 1fr); }
}
.proj-metric {
  background: var(--bg-elev);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proj-metric-v {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.proj-metric-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.proj-detail-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .proj-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

.proj-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (max-width: 880px) {
  .proj-aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .proj-aside-block { min-width: 160px; }
}
.proj-aside-block { display: flex; flex-direction: column; gap: 6px; }
.proj-aside-block .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.proj-aside-block .v {
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.proj-body {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: 720px;
}
.proj-section { display: flex; flex-direction: column; gap: 14px; }
.proj-section .mono { margin-bottom: 4px; }

.proj-h2 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  max-width: 38ch;
  text-wrap: balance;
  margin-bottom: 4px;
}
.proj-p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 64ch;
}

.proj-thumb-large {
  height: 280px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.proj-thumb-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--thumb-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--thumb-line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.proj-thumb-overlay {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 1;
}
.proj-thumb-overlay .mono { color: var(--text-dim); }

/* Next project */
.proj-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  box-shadow: var(--shadow-soft);
}
.proj-next:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
  border-color: var(--border-strong);
}
.proj-next > div { display: flex; flex-direction: column; gap: 6px; }
.proj-next-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.proj-next-title {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.proj-next-arrow {
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 220ms ease, color 220ms ease;
}
.proj-next:hover .proj-next-arrow {
  color: var(--accent-text, var(--accent));
  transform: translateX(4px);
}

/* =========================================================
   Home About Section (compact intro)
   ========================================================= */

.home-about {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-about-content {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 48px;
  align-items: center;
  max-width: 920px;
}

.home-about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-about-label {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.home-about-intro {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

.home-about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.home-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 720px) {
  .home-about-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .home-about-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .home-about-intro {
    max-width: 100%;
  }
}

/* =========================================================
   Why / Differentiators
   ========================================================= */

.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 920px;
}

.why-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.why-item:last-child { border-bottom: 0; padding-bottom: 0; }
.why-item .check {
  color: var(--accent);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}
.why-item p {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
}
.why-item p .muted { color: var(--text-muted); }

/* =========================================================
   CTA section
   ========================================================= */

.cta-section {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, var(--accent-dim), transparent 60%);
  pointer-events: none;
  opacity: .8;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  position: relative;
}
.cta-inner h2 { max-width: 14ch; }
.cta-inner p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 50ch;
  margin-bottom: 32px;
}
@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 72px;
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 36ch;
  margin-top: 16px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
@media (min-width: 721px) { .footer-contact { align-items: flex-end; } }
.footer-contact a {
  color: var(--text);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 160ms ease;
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-nav a { white-space: nowrap; }
.footer-nav a:hover { color: var(--text); }
.footer-nav a.footer-side {
  color: var(--text-dim);
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
}
.footer-nav a.footer-side:hover { color: var(--accent-text, var(--accent)); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Footer extra section (below divider) */
.footer-extra {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-photo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 240ms cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
  max-width: fit-content;
}

.footer-photo-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.footer-photo-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.footer-photo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-photo-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer-photo-desc {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: -0.005em;
}

.footer-photo-arrow {
  font-size: 16px;
  color: var(--text-dim);
  margin-left: 4px;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-photo-link:hover .footer-photo-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

@media (max-width: 720px) {
  .footer-extra {
    padding-top: 20px;
    margin-top: 20px;
  }

  .footer-photo-link {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================
   Page headers (interior pages)
   ========================================================= */

.page-header {
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.page-header .mono { margin-bottom: 28px; }
.page-header h1 { margin-bottom: 24px; }
.page-header .lead { max-width: 56ch; }

/* =========================================================
   Phases (Kako delam page)
   ========================================================= */

.phases {
  display: flex;
  flex-direction: column;
}
.phase {
  display: grid;
  grid-template-columns: 160px 1fr 220px;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.phase:last-child { border-bottom: 1px solid var(--border); }
.phase .num {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 88px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.phase .body h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 8px; }
.phase .body .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 18px;
  display: block;
}
.phase .body p { color: var(--text-muted); font-size: 16px; max-width: 56ch; }
.phase .output {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.phase .output .key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}
.phase .output .value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .phase { grid-template-columns: 80px 1fr; gap: 32px; }
  .phase .num { font-size: 40px; }
  .phase .output { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
}

.callout {
  margin-top: 80px;
  padding: 36px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 32px;
  align-items: start;
}
.callout .mono { color: var(--accent); margin-bottom: 12px; display: block; }
.callout p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text); max-width: 56ch; }
@media (max-width: 720px) { .callout { flex-direction: column; gap: 8px; } }

/* =========================================================
   Articles (Objave)
   ========================================================= */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 220ms ease;
  box-shadow: var(--shadow-soft);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: var(--border-strong);
}
.article-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
}
.article-card .meta .cat { color: var(--accent); }
.article-card .meta .sep { color: var(--text-dim); }
.article-card .meta .date { color: var(--text-muted); }
.article-card h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  margin: 6px 0;
}
.article-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  flex-grow: 1;
}
.article-card .read {
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-card:hover .read { color: var(--accent); }

/* =========================================================
   Single article
   ========================================================= */

.article-body {
  max-width: 720px;
}
.article-body h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 56px 0 16px;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  margin: 40px 0 12px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 20px;
}
.article-body ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 24px;
}
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
.article-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}
.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.01em;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

.inline-cta {
  margin: 64px 0 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.inline-cta p {
  font-size: 17px;
  color: var(--text);
  max-width: 40ch;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) { .inline-cta { flex-direction: column; align-items: flex-start; } }

/* =========================================================
   Trusted by — placeholder logo row
   ========================================================= */

.trusted-by-section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.trusted-by-home {
  padding-top: 32px;
  padding-bottom: 64px;
  border-bottom: 0;
  border-top: 1px solid var(--border);
  margin-top: -1px;
}

.trusted-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.trusted-by-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trusted-by-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px 64px;
  width: 100%;
}
@media (max-width: 720px) {
  .trusted-by-row { gap: 32px 40px; }
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  opacity: 0.85;
  transition: color 200ms ease, opacity 200ms ease, transform 200ms ease;
  cursor: default;
  height: 32px;
  line-height: 1;
}
.trust-logo:hover {
  color: var(--text-muted);
  opacity: 1;
}

/* DZS — bold solid block letters */
.trust-logo--solid {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 22px;
}

/* Mark + wordmark combo */
.trust-logo--mark { gap: 8px; }
.trust-logo--mark em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.trust-logo--mark svg { flex-shrink: 0; }

/* Food IQ — boxed mark */
.trust-logo--box {
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.trust-logo--box strong {
  font-weight: 700;
  margin-right: 4px;
}

/* Pit Wall — racing-stripe frame */
.trust-logo--frame {
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 6px;
}
.trust-logo--frame em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.trust-logo--frame small {
  color: var(--accent-text, var(--accent));
  font-size: inherit;
}

/* Image-based logos */
.trust-logo--image {
  height: 56px;
}
.trust-logo--image img {
  max-height: 100%;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 200ms ease, transform 200ms ease;
}
.trust-logo--image:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* Light theme: bump contrast since dim is lighter on light bg */
[data-theme="light"] .trust-logo { color: var(--text-muted); }
[data-theme="light"] .trust-logo:hover { color: var(--text); }
[data-theme="light"] .trust-logo--image img {
  filter: grayscale(100%) opacity(0.6);
}
[data-theme="light"] .trust-logo--image:hover img {
  filter: grayscale(0%) opacity(0.9);
}

/* =========================================================
   Calendly Customization
   ========================================================= */

/* Calendly popup overlay styling to match site theme */
.calendly-overlay {
  z-index: 9999 !important;
}

.calendly-popup {
  border-radius: 16px !important;
  overflow: hidden !important;
}

.calendly-popup .calendly-popup-content {
  border-radius: 16px !important;
}

/* Close button styling */
.calendly-popup-close {
  opacity: 0.8 !important;
  transition: opacity 200ms ease !important;
}

.calendly-popup-close:hover {
  opacity: 1 !important;
}

/* Calendly Badge Widget (floating button) */
.calendly-badge-widget {
  z-index: 9998 !important;
}

.calendly-badge-widget .calendly-badge-content {
  background: #c5f23b !important;
  color: #000000 !important;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 20px rgba(197, 242, 59, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 200ms ease !important;
}

.calendly-badge-widget .calendly-badge-content:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 30px rgba(197, 242, 59, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Dark theme adjustments */
[data-theme="dark"] .calendly-badge-widget .calendly-badge-content {
  box-shadow: 0 4px 20px rgba(197, 242, 59, 0.25), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Light theme adjustments */
[data-theme="light"] .calendly-badge-widget .calendly-badge-content {
  box-shadow: 0 4px 20px rgba(197, 242, 59, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Mobile responsive */
@media (max-width: 720px) {
  .calendly-badge-widget .calendly-badge-content {
    font-size: 14px !important;
    padding: 12px 20px !important;
  }
}

/* =========================================================
   About page
   ========================================================= */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 880px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
}

.about-hero-text { max-width: 660px; }
.about-hero-text .lead { max-width: 56ch; }

.about-hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  justify-content: space-between;
}
.about-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, var(--stripe) 0 2px, transparent 2px 12px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}
.about-hero-photo .silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 75%;
  background: radial-gradient(ellipse 50% 25% at 50% 18%, var(--silhouette-1), transparent 60%),
              radial-gradient(ellipse 70% 55% at 50% 90%, var(--silhouette-2), transparent 60%);
  pointer-events: none;
}
.about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.about-photo-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
}
.about-photo-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .about-meta { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.about-meta > div { display: flex; flex-direction: column; gap: 6px; }
.about-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}
.about-meta dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.about-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 960px) {
  .about-section { grid-template-columns: 1fr; gap: 24px; }
}
.about-section-head .mono { display: block; margin-bottom: 16px; }
.about-section-head h2 { font-size: clamp(24px, 2.4vw, 32px); }

.about-section-body { max-width: 640px; }
.about-section-body .about-p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 18px;
}
.about-section-body .about-p:last-child { margin-bottom: 0; }

.about-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-bullets li {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  padding-left: 24px;
  position: relative;
}
.about-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--accent-text, var(--accent));
}
.about-bullets strong {
  color: var(--text);
  font-weight: 600;
}
.about-bullets span { color: var(--text-muted); }

.about-roles {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .about-roles { grid-template-columns: 1fr; } }
.about-role {
  background: var(--bg-elev);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-role .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text, var(--accent));
}
.about-role .v {
  font-size: 15px;
  color: var(--text);
}

.about-status {
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  flex-shrink: 0;
}
.about-status .text {
  font-size: 15px;
  color: var(--text);
}
.about-status .text strong { color: var(--text); font-weight: 500; }

/* Photography section on About page */
.about-photography {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
  padding: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.about-photo-content {
  max-width: 560px;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-photo-placeholder .about-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.about-photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, var(--stripe) 0 2px, transparent 2px 12px);
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.about-photo-icon {
  font-size: 48px;
  position: relative;
  z-index: 1;
  opacity: 0.4;
}

@media (max-width: 880px) {
  .about-photography {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .about-photo-placeholder {
    max-width: 200px;
    margin: 0 auto;
  }
}
.about-status .text span { color: var(--text-muted); }

/* =========================================================
   Contact page
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.form { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  transition: border-color 200ms ease;
}
.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239A9C9F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.form-field select option {
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-bottom-color: var(--accent); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }
.form-field.error input,
.form-field.error textarea { border-bottom-color: var(--error); }
.form-field .err-msg { font-size: 12px; color: var(--error); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form .submit-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-success {
  padding: 20px 24px;
  border: 1px solid rgba(74,222,128,0.3);
  border-left: 3px solid var(--success);
  background: rgba(74,222,128,0.06);
  border-radius: var(--radius-lg);
  font-size: 15px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-direct .heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-direct a.big {
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  transition: color 180ms ease, border-color 180ms ease;
}
.contact-direct a.big:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* =========================================================
   Featured service card (on Home, links to /digitalizacija)
   ========================================================= */

.featured-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  --feat-accent: #4DDDA9;
  --feat-accent-dim: rgba(77, 221, 169, 0.12);
}
.featured-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--feat-accent) 40%, #6B66FF 70%, transparent 100%);
  opacity: 0.85;
}

.featured-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--feat-accent-dim);
  border: 1px solid rgba(77, 221, 169, 0.3);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--feat-accent);
  margin-bottom: 24px;
}

.featured-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 24ch;
  text-wrap: balance;
}

.featured-sub {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 64ch;
  margin-bottom: 28px;
}

.featured-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
@media (max-width: 720px) { .featured-list { grid-template-columns: 1fr; } }

.featured-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-body);
  letter-spacing: -0.005em;
}
.featured-check {
  color: var(--feat-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.featured-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.featured-primary {
  background: var(--feat-accent);
  color: #061812;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 200ms ease;
  cursor: pointer;
}
.featured-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(77, 221, 169, 0.20), 0 12px 28px -10px rgba(77, 221, 169, 0.45);
}
.featured-primary .arrow { transition: transform 180ms ease; }
.featured-primary:hover .arrow { transform: translateX(3px); }

/* =========================================================
   DIGITALIZACIJA subpage
   ========================================================= */

.dg-page {
  --dg-accent: #4DDDA9;
  --dg-accent-dim: rgba(77, 221, 169, 0.14);
  --dg-glow: rgba(77, 221, 169, 0.06);
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, var(--dg-glow), transparent 60%),
    var(--bg);
}

.dg-page .btn-primary {
  background: var(--dg-accent);
  color: #061812;
  box-shadow: 0 0 0 3px rgba(77, 221, 169, 0.18);
}
.dg-page .btn-primary:hover {
  box-shadow: 0 0 0 4px rgba(77, 221, 169, 0.25), 0 12px 30px -10px rgba(77, 221, 169, 0.4);
}

/* Hero */
.dg-hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
}
.dg-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: color 180ms ease;
}
.dg-back:hover { color: var(--text); }

.dg-eyebrow .mono {
  color: var(--dg-accent);
}
.dg-h1 {
  margin: 24px 0 32px;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 22ch;
  text-wrap: balance;
}
.dg-h1-strong { color: var(--text); display: block; }
.dg-h1-soft {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
}

.dg-hero-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 60ch;
  margin-bottom: 32px;
}
.dg-hero-body p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
}

/* EU funding card */
.dg-eu {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--dg-accent);
  background: var(--bg-elev);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  align-items: start;
  position: relative;
  overflow: hidden;
}
.dg-eu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--dg-accent-dim), transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}
.dg-eu > * { position: relative; }
.dg-eu-stars { display: flex; align-items: flex-start; justify-content: center; }
@media (max-width: 880px) {
  .dg-eu { grid-template-columns: 1fr; gap: 24px; }
  .dg-eu-stars { display: none; }
}

.dg-h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  max-width: 22ch;
  text-wrap: balance;
}
.dg-p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 56ch;
}

/* Problem vignettes */
.dg-problem-head { margin-bottom: 56px; max-width: 720px; }
.dg-problem-head .mono { color: var(--dg-accent); }

.dg-vignettes {
  display: flex;
  flex-direction: column;
}
.dg-vignette {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.dg-vignette:last-child { border-bottom: 1px solid var(--border); }
.dg-vignette-n {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--dg-accent);
}
.dg-vignette p {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 60ch;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .dg-vignette { grid-template-columns: 1fr; gap: 8px; }
}

.dg-outro {
  margin-top: 56px;
  max-width: 56ch;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--text);
  padding: 24px 0 24px 24px;
  border-left: 2px solid var(--dg-accent);
}

/* Solution grid */
.dg-section-head { margin-bottom: 56px; max-width: 720px; }
.dg-section-head .mono { color: var(--dg-accent); }

.dg-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .dg-solution { grid-template-columns: 1fr; } }

.dg-solution-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 220ms ease;
  box-shadow: var(--shadow-soft);
}
.dg-solution-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: rgba(77, 221, 169, 0.3);
}
.dg-solution-n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dg-accent);
  display: block;
  margin-bottom: 14px;
}
.dg-solution-card h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.dg-solution-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
}

/* Result list */
.dg-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  max-width: 1000px;
}
@media (max-width: 720px) { .dg-result-list { grid-template-columns: 1fr; } }

.dg-result-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--text);
}
.dg-result-check {
  color: var(--dg-accent);
  display: inline-flex;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Process phases */
.dg-phases {
  display: flex;
  flex-direction: column;
}
.dg-phase {
  display: grid;
  grid-template-columns: 120px 1fr 220px;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.dg-phase:last-child { border-bottom: 1px solid var(--border); }

.dg-phase-n {
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 72px);
  color: var(--dg-accent);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.dg-phase-body h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.dg-phase-body p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
}
.dg-phase-dur {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
@media (max-width: 1000px) {
  .dg-phase { grid-template-columns: 80px 1fr; gap: 24px; }
  .dg-phase-n { font-size: 40px; }
  .dg-phase-dur { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 8px; }
}

/* FAQ */
.dg-faq {
  border-top: 1px solid var(--border);
  max-width: 880px;
}
.dg-faq-item { border-bottom: 1px solid var(--border); }
.dg-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  font-family: inherit;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color 180ms ease;
}
.dg-faq-q:hover { color: var(--dg-accent); }
.dg-faq-toggle {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--dg-accent);
  width: 24px;
  text-align: center;
}
.dg-faq-a {
  padding: 0 36px 24px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 70ch;
}

/* Final CTA */
.dg-cta-section {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  position: relative;
}
.dg-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, var(--dg-accent-dim), transparent 60%);
  pointer-events: none;
  opacity: 0.8;
}
.dg-cta-inner { position: relative; max-width: 760px; }
.dg-cta-inner .mono { color: var(--dg-accent); margin-bottom: 24px; display: inline-block; }

.dg-cta-h {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 22ch;
  text-wrap: balance;
  margin-bottom: 20px;
}
.dg-cta-body {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 32px;
}

.dg-cta-direct {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.dg-cta-or {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dg-cta-direct a {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text);
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  transition: color 180ms ease, border-color 180ms ease;
}
.dg-cta-direct a:hover { color: var(--dg-accent); border-bottom-color: var(--dg-accent); }

/* =========================================================
   STANDARD SERVICES subpage
   ========================================================= */

.ss-page {
  --ss-accent: #4DDDA9;
  --ss-accent-dim: rgba(77, 221, 169, 0.14);
  --ss-glow: rgba(77, 221, 169, 0.08);
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, var(--ss-glow), transparent 60%),
    var(--bg);
  position: relative;
}

.ss-page .btn-primary {
  background: var(--ss-accent);
  color: #061812;
  box-shadow: 0 0 0 3px rgba(77, 221, 169, 0.18);
}
.ss-page .btn-primary:hover {
  box-shadow: 0 0 0 4px rgba(77, 221, 169, 0.25), 0 10px 30px -10px rgba(77, 221, 169, 0.4);
}

/* Hero */
.ss-hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
  position: relative;
}

.ss-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 48px;
  transition: color 180ms ease;
}
.ss-back:hover { color: var(--text); }

.ss-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(77, 221, 169, 0.25);
  background: rgba(77, 221, 169, 0.05);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ss-accent);
  margin: 0 auto 28px;
  width: fit-content;
}
.ss-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ss-accent);
  box-shadow: 0 0 10px var(--ss-accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.ss-h1 {
  font-family: var(--font-sans);
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-align: center;
  margin: 0 auto 28px;
  max-width: 16ch;
  text-wrap: balance;
}
.ss-h1 span { display: block; color: var(--text); }
.ss-h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.04em;
}

.ss-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

.ss-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(77, 221, 169, 0.20);
  background: rgba(77, 221, 169, 0.04);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--text);
  margin: 0 auto;
  width: fit-content;
}

/* Featured cards */
.ss-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .ss-featured { grid-template-columns: 1fr; } }

.ss-feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms ease, box-shadow 240ms ease, border-color 220ms ease;
  box-shadow: var(--shadow-soft);
}
.ss-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: rgba(77, 221, 169, 0.3);
}
.ss-feature-icon {
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 221, 169, 0.08);
  border: 1px solid rgba(77, 221, 169, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 6px;
}
.ss-feature-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.ss-feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  flex-grow: 1;
}
.ss-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--ss-accent);
  color: #061812;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 6px;
  transition: transform 180ms ease, box-shadow 200ms ease;
}
.ss-feature-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(77, 221, 169, 0.5);
}
.ss-feature-cta .arrow { transition: transform 180ms ease; }
.ss-feature-cta:hover .arrow { transform: translateX(3px); }

/* Pricing */
.ss-pricing-head {
  text-align: left;
  margin-bottom: 56px;
}
.ss-pricing-head .mono { display: block; margin-bottom: 16px; color: var(--ss-accent); }
.ss-h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.0;
  max-width: 14ch;
  text-wrap: balance;
}
.ss-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 18px;
}

.ss-pricing-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.ss-group {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .ss-group { grid-template-columns: 1fr; gap: 16px; }
}
.ss-group-head h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ss-group-head p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ss-table {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ss-table-head {
  display: grid;
  grid-template-columns: 1fr 120px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ss-table-head span:last-child { text-align: right; }

.ss-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 180ms ease;
}
.ss-row:last-child { border-bottom: 0; }
.ss-row:hover { background: var(--surface-2); }
.ss-row-k {
  font-size: 15px;
  color: var(--text);
}
.ss-row-v {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ss-accent);
  text-align: right;
  letter-spacing: -0.005em;
}

/* FAQ */
.ss-faq {
  border-top: 1px solid var(--border);
  max-width: 880px;
}
.ss-faq-item {
  border-bottom: 1px solid var(--border);
}
.ss-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  font-family: inherit;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color 180ms ease;
}
.ss-faq-q:hover { color: var(--ss-accent); }
.ss-faq-toggle {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--ss-accent);
  width: 24px;
  text-align: center;
}
.ss-faq-a {
  padding: 0 36px 24px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 70ch;
}

/* CTA */
.ss-cta {
  padding: clamp(64px, 8vw, 100px) 0;
}
.ss-cta-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ss-accent);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-float);
}
.ss-cta-card h2 { max-width: 16ch; }
.ss-cta-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 46ch;
}
@media (max-width: 880px) {
  .ss-cta-card { grid-template-columns: 1fr; padding: 32px; }
}

/* Lighter behaviour in light theme */
[data-theme="light"] .ss-page {
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(46, 168, 124, 0.10), transparent 60%),
    var(--bg);
}
[data-theme="light"] .ss-page .ss-feature-icon,
[data-theme="light"] .ss-page .ss-badge,
[data-theme="light"] .ss-page .ss-location {
  background: rgba(46, 168, 124, 0.08);
  border-color: rgba(46, 168, 124, 0.30);
}
[data-theme="light"] .ss-page .ss-badge,
[data-theme="light"] .ss-page .ss-feature-cta { color: #0a5a3e; }
[data-theme="light"] .ss-page { --ss-accent: #2EA87C; }
[data-theme="light"] .ss-page .ss-row-v,
[data-theme="light"] .ss-page .ss-pricing-head .mono { color: #2EA87C; }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */

.reveal {
  opacity: 1;
  transform: none;
}

/* Only hide pre-reveal when JS has flagged the document as ready to animate.
   If the page never gets that far (e.g. screenshot context with frozen
   animation clock), content stays visible. */
html.js-reveal .reveal:not(.in) {
  opacity: 0;
  transform: translateY(14px);
}
html.js-reveal .reveal {
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html.js-reveal .reveal:not(.in) { opacity: 1; transform: none; }
}

/* =========================================================
   Misc
   ========================================================= */

.link-arrow {
  color: var(--text);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 180ms ease, border-color 180ms ease;
}
.link-arrow:hover { color: var(--accent); border-bottom-color: var(--accent); }
.link-arrow .arrow { transition: transform 180ms ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav { margin-top: 12px; }
  .nav-inner { padding: 0 18px; height: 52px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .btn { padding: 13px 18px; font-size: 14px; }
  .cta-row {
    width: 100%;
  }
  .cta-row .btn {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
  }
  .cta-row .btn {
    width: 100%;
  }
}

/* =========================================================
   Websites Portfolio Page
   ========================================================= */

.websites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

@media (min-width: 880px) {
  .websites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .websites-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.website-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 280ms ease,
              transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 360ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.website-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.website-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.website-card:hover::before {
  opacity: 1;
}

.website-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.website-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--thumb-line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}

.website-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
}

.website-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
}

.website-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.website-tech-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 6px;
}

.website-tech-badge .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 500;
}

.website-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.website-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.website-link {
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms ease;
  margin-top: auto;
}

.website-link:hover {
  color: var(--accent);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 240ms ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  animation: modalSlideUp 300ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .modal-content {
    max-width: 95%;
    width: 95%;
  }
}

@media (max-width: 720px) {
  .modal-content {
    max-width: 95%;
    width: 95%;
    max-height: 80vh;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

@media (max-width: 720px) {
  .modal-body {
    padding: 16px;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding-right: 40px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .modal-header {
    flex-direction: column;
    padding-right: 0;
    margin-bottom: 12px;
  }
}

.modal-gallery {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 1;
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 720px) {
  .modal-gallery {
    aspect-ratio: 16 / 9;
  }
}

.gallery-slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.gallery-nav:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
  left: 16px;
}

.gallery-nav-next {
  right: 16px;
}

@media (max-width: 720px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .gallery-nav-prev {
    left: 12px;
  }

  .gallery-nav-next {
    right: 12px;
  }
}

.gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding-bottom: 8px;
  flex-shrink: 0;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  padding: 0;
}

.gallery-dot:hover {
  background: var(--text-dim);
  transform: scale(1.2);
}

.gallery-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 880px) and (min-width: 721px) {
  .websites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
