/* =========================================================================
   Mario Antolovic — Senior Unity Developer
   Design system: dark, cinematic, accessible, responsive.
   Hand-authored (no framework) for fast first render and low CLS.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #0a0c11;
  --bg-2: #0e1118;
  --surface: #12161f;
  --surface-2: #171c27;
  --surface-3: #1d2330;
  --border: #262d3b;
  --border-soft: #1c2230;

  /* Text */
  --text: #eef1f7;
  --text-2: #b7c0d0;
  --text-3: #8792a5;

  /* Brand / accent */
  --accent: #5b8cff;
  --accent-2: #7aa2ff;
  --accent-glow: rgba(91, 140, 255, 0.35);
  --accent-soft: rgba(91, 140, 255, 0.12);
  --cyan: #46d5c9;
  --danger: #ff6b6b;
  --success: #46d38a;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font-sans);

  /* Spacing / layout */
  --container: 1200px;
  --container-narrow: 820px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 8px 30px -12px rgba(0, 0, 0, 0.6);

  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
img { background: var(--surface-2); }

/* Inline icon default size (containers below override as needed) */
.btn svg, .card__more svg, .project-card__link svg, .contact-method a svg,
.breadcrumbs svg, .link-list svg { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.15em; }
.footer-social a svg { width: 20px; height: 20px; }

a { color: var(--accent-2); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1rem; color: var(--text-2); }
strong { color: var(--text); }
ul { color: var(--text-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

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

/* ---- Accessibility ---------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 999;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---- Layout helpers --------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--text-2); }

.lead { font-size: 1.2rem; color: var(--text-2); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn--primary:hover { color: #fff; box-shadow: 0 16px 40px -12px var(--accent-glow); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--border-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.brand:hover { color: #fff; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 18px -6px var(--accent-glow);
}
.brand__name { line-height: 1.1; }
.brand__name small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-3); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav > .btn { display: none; } /* shown only inside the mobile menu */

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(10, 12, 17, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { display: inline-flex; margin-top: 10px; }
}

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 16px; font-family: var(--font-sans); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-2); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: 0.95rem; max-width: 32ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.footer-social a:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--text-3); font-size: 0.88rem;
}
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text); }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(91, 140, 255, 0.18), transparent 60%),
    radial-gradient(50% 50% at 12% 22%, rgba(70, 213, 201, 0.10), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 52ch; margin-bottom: 28px; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(91,140,255,0.28);
  color: var(--accent-2); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 22px;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(70,211,138,0.18); }

/* Stat chips */
.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stat-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; min-width: 0;
}
.stat-chip b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.stat-chip span { font-size: 0.82rem; color: var(--text-3); }

/* Hero media / showreel */
.hero-media {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); aspect-ratio: 16 / 11; background: var(--surface-2);
}
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media__badge {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(10,12,17,0.72); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: 0.82rem; color: var(--text-2);
}

/* Row 1: full-width headline */
.hero-intro { margin-bottom: clamp(30px, 4vw, 48px); }
.hero-intro h1 { margin-bottom: 0; }

/* Row 2: large hero video, centered at 80% of the site width.
   The FULL video frame is shown — no cropping of its edges. */
.hero-media--lg {
  width: 80%; max-width: 1000px; margin: clamp(36px, 5vw, 56px) auto 0;
  aspect-ratio: 16 / 9; background: #000;
}
.hero-media--lg .hero-video {
  width: 100%; height: 100%; display: block;
  object-fit: contain;
}

/* Row 3: subtext, centered under the video */
.hero__sub--center {
  max-width: 900px; margin: clamp(24px, 3vw, 34px) auto 0;
  text-align: center;
}

/* Row 4: five stat boxes in ONE horizontal row, 20% each, full width */
.hero-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: clamp(28px, 4vw, 42px); }
.hero-stats .stat-chip { min-width: 0; }

/* Row 5: CTAs centered at the bottom */
.hero-cta-row { margin-top: clamp(28px, 4vw, 40px); }

@media (max-width: 720px) {
  .hero-media--lg { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive video embed (case studies) */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow-soft); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed + .video-embed { margin-top: 16px; }

/* ---- Cards ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  height: 100%;
}
.card:hover { border-color: rgba(91,140,255,0.4); box-shadow: var(--shadow-soft); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.97rem; margin: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(91,140,255,0.25);
  color: var(--accent-2);
}
.card__icon svg { width: 22px; height: 22px; }
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent-2); font-weight: 600; font-size: 0.92rem; }

/* ---- Project cards ---------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; height: 100%;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.project-card:hover { transform: translateY(-4px); border-color: rgba(91,140,255,0.42); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .project-card:hover { transform: none; } }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,12,17,0.78); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: 0.74rem; font-weight: 600; color: var(--text);
  letter-spacing: 0.02em;
}
.project-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.meta-pill { font-size: 0.74rem; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border-soft); padding: 3px 10px; border-radius: 999px; }
.project-card h3 { font-size: 1.22rem; margin-bottom: 6px; }
.project-card__role { font-size: 0.85rem; color: var(--accent-2); font-weight: 600; margin-bottom: 10px; }
.project-card p { font-size: 0.95rem; color: var(--text-2); margin: 0 0 18px; }
.project-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.project-card__link { color: #fff; font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 6px; align-items: center; }
.stretched { position: absolute; inset: 0; z-index: 1; }
.project-card__foot .tech-mini { font-size: 0.78rem; color: var(--text-3); }

/* ---- Portfolio filters ------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  padding: 9px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: #fff; border-color: var(--accent); }
.filter-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.project-card.is-hidden { display: none; }

/* ---- Specialization / list cards ------------------------------------- */
.spec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: 100%; }
.spec-card h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.spec-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--cyan)); flex: none; }
.spec-card p { font-size: 0.94rem; margin: 0; }

/* ---- Process steps ---------------------------------------------------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 24px; }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid rgba(91,140,255,0.25);
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.process-step p { font-size: 0.94rem; margin: 0; }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 68px); text-align: center; border: 1px solid var(--border); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 50% 0%, rgba(91,140,255,0.20), transparent 65%), var(--surface); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 56ch; margin: 0 auto 26px; font-size: 1.08rem; }

/* ---- Trust / proof ---------------------------------------------------- */
.proof-note {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 22px 24px; background: var(--surface); color: var(--text-2); font-size: 0.95rem;
}
.logo-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.logo-chip { border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 0.92rem; }

/* ---- Prose (articles, case studies, privacy) ------------------------- */
.prose { max-width: 760px; }
.prose > * { margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.5em; }
.prose code { background: var(--surface-3); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; color: var(--cyan); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Breadcrumbs ------------------------------------------------------ */
.breadcrumbs { font-size: 0.85rem; color: var(--text-3); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--border); }
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current="page"] { color: var(--text-2); }

/* ---- Case study ------------------------------------------------------- */
.case-hero { padding: calc(var(--header-h) + 40px) 0 20px; }
.case-title { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.case-tagline { font-size: 1.2rem; color: var(--text-2); max-width: 60ch; }
.case-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
@media (max-width: 900px) { .case-layout { grid-template-columns: 1fr; } }
.case-facts { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
@media (max-width: 900px) { .case-facts { position: static; } }
.fact { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 4px; }
.fact dd { margin: 0; color: var(--text); font-size: 0.96rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 0.78rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-soft); padding: 4px 10px; border-radius: 999px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-grid a { display: block; }

.case-block { margin-bottom: 40px; }
.case-block h2 { font-size: 1.5rem; margin-bottom: 12px; }
.contrib-list { list-style: none; padding: 0; margin: 0; }
.contrib-list li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text-2); }
.contrib-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.link-list { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Article list ----------------------------------------------------- */
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; height: 100%; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.article-card:hover { border-color: rgba(91,140,255,0.4); transform: translateY(-3px); }
.article-card__meta { font-size: 0.82rem; color: var(--text-3); margin-bottom: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.article-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.article-card p { font-size: 0.95rem; margin-bottom: 16px; }
.article-card a.card__more { margin-top: auto; }

/* ---- Forms ------------------------------------------------------------ */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field label .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field .error-msg { font-size: 0.82rem; color: var(--danger); min-height: 1em; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-note { font-size: 0.85rem; color: var(--text-3); margin-top: 6px; }
.form-status { border-radius: 10px; padding: 14px 16px; font-size: 0.95rem; margin-bottom: 18px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(70,211,138,0.12); border: 1px solid rgba(70,211,138,0.4); color: var(--success); }
.form-status.error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.4); color: var(--danger); }

/* ---- Contact methods -------------------------------------------------- */
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .contact-methods { grid-template-columns: 1fr; } }
.contact-method { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.contact-method .card__icon { margin: 0 auto 14px; }
.contact-method b { display: block; color: #fff; font-family: var(--font-display); }
.contact-method a { font-size: 0.95rem; word-break: break-word; }

/* ---- FAQ -------------------------------------------------------------- */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-2); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--text-2); }
.faq .faq-body p { margin: 0; }

/* ---- Pricing / product (monetization-ready) --------------------------- */
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; height: 100%; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-soft); }
.price-card .price { font-family: var(--font-display); font-size: 2rem; color: #fff; margin: 8px 0 4px; }
.price-card .price small { font-size: 0.9rem; color: var(--text-3); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--text-2); font-size: 0.95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ---- Reveal on scroll (progressive enhancement) -----------------------
   Only hidden when JS is active; without JS all content is visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---- 404 -------------------------------------------------------------- */
.error-hero { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.error-hero .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); line-height: 1; background: linear-gradient(120deg, var(--accent-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Cookie consent banner -------------------------------------------- */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: rgba(14, 17, 24, 0.96); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__text { margin: 0; font-size: 0.88rem; color: var(--text-2); flex: 1 1 260px; }
.cookie-consent__text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-consent__actions .btn { padding: 10px 18px; font-size: 0.9rem; }
@media (max-width: 480px) { .cookie-consent__actions { width: 100%; } .cookie-consent__actions .btn { flex: 1; justify-content: center; } }

/* ---- Utilities -------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-3); }
.divider { height: 1px; background: var(--border-soft); margin: 0; border: 0; }
