/* ==========================================================================
   Web Opti — Design system
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 450 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 380 700;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
}

:root {
  /* Surfaces */
  --ink: #0b0d10;
  --ink-2: #14171c;
  --ink-3: #1d2127;
  --paper: #f7f5ef;
  --paper-2: #efeade;

  /* Text */
  --text-on-ink: #f6f4ee;
  --text-on-ink-muted: #9aa0aa;
  --text-on-paper: #15171b;
  --text-on-paper-muted: #63676e;

  /* Accents */
  --lime: #d6ff3f;
  --lime-strong: #bfe824;
  --lime-ink: #17210a;
  --coral: #ff5a3c;
  --coral-strong: #e8492e;

  /* Lines */
  --line-on-ink: rgba(246, 244, 238, 0.1);
  --line-on-paper: rgba(21, 23, 27, 0.1);

  /* Geometry */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1220px;
  --shadow-lg: 0 40px 80px -30px rgba(8, 9, 11, 0.55);
  --shadow-sm: 0 12px 30px -16px rgba(8, 9, 11, 0.35);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
input, textarea, select, button { accent-color: var(--lime-strong); }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--lime); color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 900px) { .container { padding-inline: 40px; } }

.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }
@media (max-width: 700px) {
  .section { padding-block: 64px; }
  .section--tight { padding-block: 40px; }
}

.section--ink { background: var(--ink); color: var(--text-on-ink); }
.section--paper2 { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head--center { max-width: 620px; margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-paper-muted);
  margin-bottom: 16px;
}
.section--ink .eyebrow { color: var(--text-on-ink-muted); }
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

h2.h-section { font-size: clamp(28px, 4vw, 42px); }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-on-paper-muted); margin-top: 16px; }
.section--ink .lede { color: var(--text-on-ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-strong); box-shadow: 0 14px 30px -12px rgba(214, 255, 63, 0.55); }

.btn-dark { background: var(--ink); color: var(--text-on-ink); }
.btn-dark:hover { background: var(--ink-2); }

.btn-outline { border-color: currentColor; }
.btn-outline:hover { background: var(--text-on-paper); color: var(--paper); }
.section--ink .btn-outline { border-color: var(--line-on-ink); }
.section--ink .btn-outline:hover { background: var(--text-on-ink); color: var(--ink); }

.btn-ghost { padding: 10px 4px; }
.btn-ghost::after { content: '→'; transition: transform 0.2s ease; }
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.topbar-contacts { display: flex; align-items: center; gap: 20px; }
.topbar-contacts a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-on-ink); transition: color 0.15s ease; }
.topbar-contacts a:hover { color: var(--lime); }
.topbar-contacts svg { width: 15px; height: 15px; color: var(--lime); flex-shrink: 0; }
.topbar-badge { display: flex; align-items: center; gap: 7px; color: var(--lime); font-weight: 600; }
.topbar-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 640px) {
  .topbar .container { justify-content: center; }
  .topbar-contacts { display: none; }
  .topbar-badge span { font-size: 12.5px; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-on-paper);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-word b { color: var(--coral-strong); font-weight: 700; }

.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--coral-strong); }

.nav-cta { display: none; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--text-on-ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 110px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}
[data-menu-open="true"] .mobile-menu { transform: translateY(0); }
[data-menu-open="true"] { overflow: hidden; }
[data-menu-open="true"] .cookie-banner { display: none; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-on-ink);
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }
[data-menu-open="true"] .nav-toggle { background: var(--lime); color: var(--ink); }
[data-menu-open="true"] .icon-open { display: none; }
[data-menu-open="true"] .icon-close { display: block; }
@media (min-width: 980px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
  padding-block: 76px 100px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -12%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(214,255,63,0.22), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -35%; left: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,90,60,0.16), transparent 70%);
  pointer-events: none;
}
.hero-bg-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}
@media (min-width: 768px) {
  .hero-bg-video { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, rgba(11,13,16,0.94) 0%, rgba(11,13,16,0.8) 38%, rgba(11,13,16,0.45) 100%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 26px;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(214,255,63,0.18); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { max-width: 46ch; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-on-ink);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}
.hero-stat { background: var(--ink); padding: 22px 20px; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--lime); margin-bottom: 4px; }
.hero-stat span { font-size: 14px; color: var(--text-on-ink-muted); }

.hero-clients { position: relative; z-index: 1; margin-top: 60px; }
.hero-clients p { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-ink-muted); margin-bottom: 16px; }
.hero-clients-list { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; }
.hero-clients-list span { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text-on-ink); opacity: 0.75; }

/* ---------- Cards grid generic ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Service cards ---------- */
.service-card {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 20px; }
.service-card p { color: var(--text-on-ink-muted); font-size: 15px; line-height: 1.6; }
.service-card .card-link { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Homepage hub tiles ---------- */
.hub-grid { margin-top: 8px; }
.hub-tile {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line-on-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hub-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--lime); }
.hub-tile-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hub-tile-icon svg { width: 28px; height: 28px; }
.hub-tile h3 { font-size: 23px; }
.hub-tile p { color: var(--text-on-ink-muted); font-size: 15.5px; line-height: 1.6; flex-grow: 1; }
.hub-tile .card-link { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }
.hub-tile--accent { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.hub-tile--accent .hub-tile-icon { background: var(--ink); color: var(--lime); }
.hub-tile--accent p { color: rgba(11,13,16,0.72); }
.hub-tile--accent .card-link { color: var(--ink); }
.hub-tile--accent:hover { border-color: var(--ink); }

/* ---------- Portfolio cards ---------- */
.portfolio-card {
  background: var(--ink-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-on-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.section--paper2 .portfolio-card, .section:not(.section--ink) .portfolio-card {
  background: #fff;
  border-color: var(--line-on-paper);
  box-shadow: var(--shadow-sm);
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-media { aspect-ratio: 16/10; overflow: hidden; background: #000; }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.obj-left-top { object-position: 20% top !important; }
.portfolio-card:hover .portfolio-media img { transform: scale(1.04); }
.portfolio-body { padding: 26px; color: var(--text-on-ink); }
.section:not(.section--ink) .portfolio-body { color: var(--text-on-paper); }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--line-on-ink);
  color: var(--lime);
}
.section:not(.section--ink) .tag { background: var(--paper-2); color: var(--coral-strong); }
.portfolio-body h3 { font-size: 21px; margin-bottom: 10px; }
.portfolio-body p { color: var(--text-on-ink-muted); font-size: 15px; line-height: 1.6; }
.section:not(.section--ink) .portfolio-body p { color: var(--text-on-paper-muted); }
.portfolio-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-on-ink); }
.section:not(.section--ink) .portfolio-meta { border-color: var(--line-on-paper); }
.portfolio-meta span { font-size: 13px; color: var(--text-on-ink-muted); }
.section:not(.section--ink) .portfolio-meta span { color: var(--text-on-paper-muted); }

/* ---------- Process ---------- */
.process-list { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 900px) { .process-list { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-on-paper);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--coral-strong);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 17.5px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--text-on-paper-muted); line-height: 1.55; }

/* ---------- Guarantee / why us ---------- */
.reason-list { display: grid; gap: 22px; }
@media (min-width: 720px) { .reason-list { grid-template-columns: repeat(2, 1fr); } }
.reason-item { display: flex; gap: 16px; }
.reason-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reason-icon svg { width: 20px; height: 20px; }
.reason-item h3 { font-size: 17px; margin-bottom: 6px; }
.reason-item p { font-size: 14.5px; color: var(--text-on-ink-muted); line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  display: grid;
  gap: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); max-width: 20ch; margin-inline: auto; }
.cta-banner p { font-size: 16px; color: var(--lime-ink); opacity: 0.75; max-width: 46ch; margin-inline: auto; }
.cta-banner .hero-actions { justify-content: center; }
.cta-banner .btn-outline { border-color: rgba(23,33,10,0.3); color: var(--ink); }
.cta-banner .btn-outline:hover { background: var(--ink); color: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-ink-muted); padding-block: 72px 96px; }
.footer-grid { display: grid; gap: 44px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; } }
.footer-brand p { margin-top: 16px; font-size: 14.5px; line-height: 1.6; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-display); color: var(--text-on-ink); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--lime); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-item svg { width: 17px; height: 17px; color: var(--lime); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line-on-ink);
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  font-size: 13px;
}
.footer-bottom .legal-links { display: flex; gap: 14px 18px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .footer-bottom .legal-links { max-width: calc(100% - 50px); }
}
.footer-bottom .legal-links a:hover { color: var(--lime); }
.footer-bottom .legal-links button {
  font: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-on-ink);
  text-underline-offset: 2px;
}
.footer-bottom .legal-links button:hover { color: var(--lime); }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero { background: var(--ink); color: var(--text-on-ink); padding-block: 64px 80px; position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(214,255,63,0.18), transparent 68%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); max-width: 18ch; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-on-ink-muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Services detail ---------- */
.service-detail {
  display: grid; gap: 28px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line-on-paper);
  border-radius: var(--radius-lg);
}
@media (min-width: 860px) { .service-detail { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }
.service-detail + .service-detail { margin-top: 24px; }
.service-detail-media {
  width: 68px; height: 68px; border-radius: 18px;
  background: var(--ink); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
}
.service-detail-media svg { width: 32px; height: 32px; }
.service-detail h3 { font-size: 24px; margin: 18px 0 10px; }
.service-detail p.lede { font-size: 15.5px; margin: 0 0 18px; }
.service-detail ul { display: grid; gap: 10px; }
.service-detail li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-on-paper-muted); align-items: flex-start; }
.service-detail li svg { width: 18px; height: 18px; color: var(--coral-strong); flex-shrink: 0; margin-top: 2px; }
.service-detail-for { margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--text-on-paper); }
.service-detail-for span { color: var(--text-on-paper-muted); font-weight: 400; }

/* ---------- Pricing philosophy ---------- */
.pricing-box {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) { .pricing-box { grid-template-columns: 1fr 1fr; } }
.pricing-points { display: grid; gap: 18px; }
.pricing-point { display: flex; gap: 14px; }
.pricing-point svg { width: 22px; height: 22px; color: var(--lime); flex-shrink: 0; margin-top: 2px; }
.pricing-point p { font-size: 14.5px; color: var(--text-on-ink-muted); line-height: 1.6; }
.pricing-point strong { display: block; color: var(--text-on-ink); font-size: 15.5px; margin-bottom: 3px; }

/* ---------- Devis / Contact page ---------- */
.devis-layout { display: grid; gap: 32px; }
@media (min-width: 980px) { .devis-layout { grid-template-columns: 1.35fr 1fr; align-items: start; } }

.form-card {
  background: #fff;
  border: 1px solid var(--line-on-paper);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 18px; }
@media (min-width: 620px) { .form-row-2 { grid-template-columns: 1fr 1fr; display: grid; gap: 18px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; font-family: var(--font-display); }
.field .opt { font-weight: 400; color: var(--text-on-paper-muted); font-family: var(--font-body); }
.field input, .field select, .field textarea {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--line-on-paper);
  background: var(--paper-2);
  font-size: 15px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-field input { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; }
.checkbox-field label { font-size: 13.5px; color: var(--text-on-paper-muted); line-height: 1.5; }
.checkbox-field a { color: var(--text-on-paper); text-decoration: underline; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.form-msg.is-visible { display: block; }
.form-msg.success { background: #eaffce; color: #33440a; }
.form-msg.error { background: #ffe3dc; color: #7a2313; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.contact-card {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-card h3 { font-size: 20px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ink-2);
  transition: background-color 0.15s ease;
}
.contact-link:hover { background: var(--ink-3); }
.contact-link svg { width: 20px; height: 20px; color: var(--lime); flex-shrink: 0; }
.contact-link strong { display: block; font-size: 15px; font-family: var(--font-display); }
.contact-link span { display: block; font-size: 13px; color: var(--text-on-ink-muted); }
.contact-note { font-size: 13.5px; color: var(--text-on-ink-muted); line-height: 1.6; padding-top: 6px; border-top: 1px solid var(--line-on-ink); }
.contact-steps { display: grid; gap: 12px; margin-top: 6px; }
.contact-step { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-on-ink-muted); }
.contact-step b { color: var(--lime); font-family: var(--font-display); }

/* ---------- Case studies (réalisations) ---------- */
.case-study {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line-on-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.case-study + .case-study { margin-top: 28px; }
.case-media { aspect-ratio: 16/11; overflow: hidden; background: #000; width: 100%; min-width: 0; min-height: 0; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-media img.obj-left-top { object-position: 20% top; }

.case-slider { position: relative; width: 100%; min-width: 0; min-height: 0; background: #000; }
.case-slider-viewport { aspect-ratio: 16/11; overflow: hidden; }
.case-slider-track { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(.65,0,.35,1); }
.case-slider-slide { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; }
.case-slider-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.case-slider-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.case-slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(11,13,16,0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background-color 0.15s ease;
}
.case-slider-nav:hover { background: rgba(11,13,16,0.85); }
.case-slider-nav svg { width: 20px; height: 20px; }
.case-slider-prev { left: 12px; }
.case-slider-next { right: 12px; }
.case-slider-dots {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 0;
  background: #0b0d10;
}
.case-slider-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-on-ink); transition: width 0.2s ease, background-color 0.2s ease; }
.case-slider-dot.is-active { background: var(--lime); width: 20px; border-radius: 4px; }
.case-slider[data-count="1"] .case-slider-nav,
.case-slider[data-count="1"] .case-slider-dots { display: none; }

.case-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 860px) {
  .case-study { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .case-study:nth-of-type(even) .case-media,
  .case-study:nth-of-type(even) .case-slider { order: 2; }
  .case-body { padding: 44px; justify-content: center; }
}
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags .tag { background: var(--paper-2); color: var(--coral-strong); }
.case-body h3 { font-size: 26px; }
.case-body p.lede { font-size: 15.5px; margin: 0; }
.case-features { display: grid; gap: 9px; margin-top: 4px; }
.case-features li { display: flex; gap: 9px; font-size: 14px; color: var(--text-on-paper-muted); align-items: flex-start; }
.case-features li svg { width: 16px; height: 16px; color: var(--coral-strong); flex-shrink: 0; margin-top: 3px; }
.case-meta { display: flex; align-items: center; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line-on-paper); font-size: 13px; color: var(--text-on-paper-muted); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 22px; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 15px; line-height: 1.75; color: var(--text-on-paper-muted); margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content strong { color: var(--text-on-paper); }
.legal-placeholder { color: var(--coral-strong); font-style: italic; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 880px;
  margin-inline: auto;
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-on-ink);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), opacity 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner-text { flex: 1 1 380px; font-size: 13.5px; line-height: 1.6; color: var(--text-on-ink-muted); }
.cookie-banner-text strong { color: var(--text-on-ink); }
.cookie-banner-text a { color: var(--lime); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 11px 20px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; background: var(--ink); color: var(--text-on-ink); }
.error-page .container { text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(80px, 16vw, 160px); font-weight: 700; color: var(--lime); line-height: 1; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }
