/* Archivo — variable (weight 100–900, width 62–125%). Self-hosted to keep a
   strict CSP and avoid third-party requests. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070B1A;
  --bg-2: #090F22;
  --bg-3: #0C1430;
  --ink: #ECF2FC;
  --ink-soft: #9DAFD4;
  --ink-mute: #7E8FBC;
  --ink-dim: #5C6C94;
  --accent: #2FBEF6;
  --accent-soft: #9FD9F7;
  --line: rgba(150, 168, 214, 0.12);
  --line-soft: rgba(150, 168, 214, 0.18);
  --maxw: 1280px;
  --ease: cubic-bezier(.16, .84, .34, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }
[hidden] { display: none !important; }
.gtm-noscript { display: none; visibility: hidden; }

h1, h2 { font-weight: 900; letter-spacing: -0.02em; font-stretch: 110%; }
h3 { font-weight: 800; letter-spacing: -0.01em; font-stretch: 114%; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(44, 182, 245, .75); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(236, 242, 252, 0.22);
  color: var(--ink-mute);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 2px;
  transition: border-color .25s, color .25s, background .25s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); background: rgba(44, 182, 245, .08); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.section { padding: 110px 40px; }

.kicker {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.kicker::before { content: "/ "; }
.section-title { font-size: clamp(32px, 4.4vw, 60px); line-height: .98; font-stretch: 118%; letter-spacing: -0.01em; text-transform: uppercase; }
.section-title--xl { font-size: clamp(30px, 4.4vw, 64px); line-height: .95; font-stretch: 120%; max-width: 16ch; }
.section-title--md { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.04; font-stretch: 116%; }
.section-title--sm { font-size: clamp(24px, 3vw, 42px); font-weight: 900; font-stretch: 118%; line-height: .98; color: var(--ink); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-aside { max-width: 330px; font-size: 16px; line-height: 1.6; color: var(--ink-mute); }

.body-lg { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 22px; }
.body-muted { font-size: 16px; line-height: 1.62; color: var(--ink-mute); }

.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.chip {
  border: 1px solid var(--line-soft);
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 9px 17px;
  border-radius: 2px;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 44px);
  background: rgba(7, 11, 26, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.site-nav.scrolled { background: rgba(7, 11, 26, 0.92); }

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 18px; width: auto; }

.nav-center { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 11.5px; }
.navlink { position: relative; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; transition: color .25s; }
.navlink:hover { color: var(--ink); }
.navlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .3s;
}
.navlink:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: #A9B6D6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 8px 13px;
  border-radius: 2px;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--accent); }
.nav-cta { font-size: 13px; padding: 11px 20px; border-radius: 2px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-soft); border-radius: 2px; cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 88px 28px 32px;
  background: rgba(7, 11, 26, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s;
}
.mobile-menu.open { transform: none; opacity: 1; }
.mobile-link {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-cta { margin-top: 18px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 18px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(150, 168, 214, 0.10);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.hero-strip-loc { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-mute); }
.hero-strip-loc .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
.hero-strip-mid { color: #52608A; }
.hero-strip-tag { color: var(--ink); }

.hero-stage { position: relative; flex: 1; display: flex; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: saturate(.85) brightness(.7); }
.hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 26, 0.55) 0%, rgba(7, 11, 26, 0.25) 40%, rgba(7, 11, 26, 0.92) 100%); }
.hero-inner { position: relative; z-index: 4; margin-top: auto; max-width: var(--maxw); width: 100%; margin-left: auto; margin-right: auto; padding: 0 clamp(18px, 4vw, 44px) 52px; }

.hero-h1 { margin: 0 0 16px; font-size: clamp(12px, 1.3vw, 15px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.hero-title { margin: 0; font-weight: 900; font-stretch: 122%; text-transform: uppercase; letter-spacing: -0.02em; line-height: .86; font-size: clamp(54px, 11vw, 176px); color: var(--ink); }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; flex-wrap: wrap; gap: 18px; }
.hero-foot-left { display: flex; flex-direction: column; gap: 18px; }
.hero-sub { max-width: 440px; margin: 0; font-size: 15px; line-height: 1.55; color: #C3CEE6; font-weight: 400; }
.hero-reel { display: inline-flex; align-items: center; gap: 12px; background: transparent; border: none; cursor: pointer; color: var(--ink); padding: 0; font-family: inherit; transition: gap .2s; }
.hero-reel:hover { gap: 16px; }
.hero-reel-ico { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid rgba(236, 242, 252, 0.5); display: flex; align-items: center; justify-content: center; font-size: 12px; padding-left: 3px; }
.hero-reel-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #070B1A;
  background: var(--accent);
  padding: 14px 26px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform .2s, filter .2s;
}
.hero-cta:hover { transform: translateY(-2px); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 16px 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-group { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 800; font-stretch: 120%; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: .02em; color: #1B2750; }
.marquee-group .sep { color: var(--accent); padding: 0 .32em; }

/* ---------- Coverage (local SEO) ---------- */
.coverage { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 84px); padding-bottom: clamp(56px, 7vw, 84px); }
.coverage-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.coverage-head .kicker { margin-bottom: 14px; }
.coverage-head .section-title { margin: 0; }
.coverage-body { margin: 0; max-width: 520px; color: var(--ink-soft); }
@media (max-width: 920px) {
  .coverage-grid { grid-template-columns: 1fr; gap: 22px; align-items: start; }
}

/* ---------- Work ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.cfg-opt {
  padding: 9px 15px;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(150, 168, 214, 0.20);
  background: transparent;
  color: var(--ink-soft);
  transition: background .2s, border-color .2s, color .2s;
}
.cfg-opt:hover { border-color: rgba(150, 168, 214, 0.45); color: var(--ink); }
.cfg-opt.active { border-color: var(--accent); background: var(--accent); color: #070B1A; }
.cfg-opt--big { padding: 9px 15px; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  animation: fadeup .55s ease both;
}
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .8s var(--ease); filter: grayscale(.25) brightness(.8); }
.proj:hover img { transform: scale(1.07); filter: grayscale(0) brightness(.95); }
.proj-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 10, 24, 0) 38%, rgba(6, 10, 24, 0.92) 100%); }
.proj-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(6, 10, 24, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(44, 182, 245, 0.4);
  color: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 2px;
}
.proj-pov { position: absolute; left: 18px; right: 18px; bottom: 16px; transform: translateY(8px); transition: transform .55s var(--ease); }
.proj:hover .proj-pov { transform: translateY(0); }
.proj-pov-title { font-size: 21px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
.proj-pov-place { font-size: 13px; color: #9FB0D4; font-weight: 500; margin-top: 2px; }
a.proj { display: block; text-decoration: none; color: inherit; }
.proj-go {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(6, 10, 24, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(44, 182, 245, 0.4);
  color: var(--accent-soft);
  font-size: 15px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.proj:hover .proj-go { opacity: 1; transform: translateY(0); }

.journal-all {
  align-self: flex-end;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent-soft);
  text-decoration: none;
  white-space: nowrap;
}
.journal-all:hover { color: var(--accent); }

/* ---------- Studio ---------- */
.studio { background: var(--bg-2); padding: 120px 40px; }
.studio-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.studio-media { position: relative; border-radius: 2px; overflow: hidden; }
.studio-media img { width: 100%; height: 540px; object-fit: cover; filter: brightness(.92); }
.media-tag {
  position: absolute;
  left: 20px; bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink);
  background: rgba(6, 10, 24, 0.55);
  backdrop-filter: blur(6px);
  padding: 8px 13px;
  border-radius: 2px;
  border: 1px solid var(--line-soft);
}
.media-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Services ---------- */
.services { padding: 120px 40px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: linear-gradient(165deg, #101A3C 0%, #0B1330 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 34px 28px 36px;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.svc:hover { transform: translateY(-10px); border-color: rgba(44, 182, 245, .5); box-shadow: 0 34px 80px -38px rgba(44, 182, 245, .5); }
.svc-line { height: 3px; width: 40px; background: var(--accent); border-radius: 2px; margin-bottom: 26px; transition: width .5s var(--ease); }
.svc:hover .svc-line { width: 100%; }
.svc-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.svc-n { font-size: 14px; font-weight: 500; color: var(--accent); }
.svc-tag { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); border: 1px solid var(--line-soft); padding: 3px 9px; border-radius: 2px; }
.svc h3 { font-size: 26px; line-height: 1.06; margin-bottom: 8px; }
.svc p { font-size: 15px; line-height: 1.6; color: #9AA8C8; font-weight: 400; }
.svc p.svc-kw { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--accent); margin-bottom: 14px; }

/* ---------- Process ---------- */
.process { position: relative; padding: 120px 40px; background: linear-gradient(135deg, #0A1438 0%, #0C1E54 48%, #0A1024 100%); overflow: hidden; }
.process-glow { position: absolute; top: -40%; right: -8%; width: 55%; height: 160%; background: radial-gradient(circle, rgba(44, 182, 245, 0.16) 0%, rgba(44, 182, 245, 0) 60%); }
.process .container { position: relative; }
.process-head { margin-bottom: 56px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-soft); }
.process-step { padding: 30px 22px 36px 0; }
.process-step-n { font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 18px; }
.process-step h3 { font-size: 21px; line-height: 1.12; margin-bottom: 12px; }
.process-step p { font-size: 14.5px; line-height: 1.58; color: #A9B6D6; font-weight: 400; }

/* ---------- Configurator ---------- */
.configurator { background: var(--bg); padding: clamp(72px, 9vw, 124px) 40px; border-top: 1px solid var(--line); }
.configurator-head { margin-bottom: 46px; }
.cfg-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cfg-controls { display: flex; flex-direction: column; gap: 28px; }
.cfg-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.cfg-options { display: flex; flex-wrap: wrap; gap: 8px; }

.cfg-panel { position: relative; border: 1px solid var(--line-soft); border-radius: 2px; background: var(--bg-3); padding: clamp(24px, 3vw, 34px); overflow: hidden; }
.cfg-panel-label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.cfg-rows { animation: fadeup .45s var(--ease) both; }
.cfg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(150, 168, 214, 0.12); }
.cfg-row-label { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.cfg-row-value { font-size: 14px; font-weight: 600; text-align: right; color: var(--ink); }
.cfg-row-value.accent { color: var(--accent); }
.cfg-btn { margin-top: 26px; border-radius: 2px; font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.cfg-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.cfg-form-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(150, 168, 214, 0.12); }
.cfg-form-fields input,
.cfg-form-fields select,
.cfg-form-fields textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(150, 168, 214, 0.28);
  border-radius: 2px;
  padding: 14px;
  transition: border-color .2s, background .2s;
}
.cfg-form-fields input:focus { outline: none; border-color: var(--accent); }

/* ---------- Clients ---------- */
.clients { background: var(--bg-2); padding: 110px 40px; border-top: 1px solid rgba(236, 242, 252, 0.06); }
.clients-head { text-align: center; margin-bottom: 56px; }
.clients-head .kicker { margin-bottom: 16px; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(236, 242, 252, 0.08); border: 1px solid rgba(236, 242, 252, 0.08); border-radius: 2px; overflow: hidden; }
.client-cell { display: flex; align-items: center; justify-content: center; padding: 44px 20px; background: var(--bg-2); }
.client { opacity: .42; filter: grayscale(1); width: auto; transition: opacity .35s, filter .35s, transform .35s; }
.client:hover { opacity: 1; filter: grayscale(0); transform: translateY(-2px); }

/* ---------- Contact / Footer ---------- */
.contact { background: var(--bg); padding: 120px 40px 50px; }
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(150deg, #0B1430 0%, #080D20 100%);
  padding: 56px 52px;
  margin-bottom: 64px;
}
.contact-sub { max-width: 420px; margin-top: 22px; }
.contact-card .section-title { margin-top: 18px; }
.contact-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact-mail { font-size: clamp(20px, 2.6vw, 30px); font-weight: 900; color: var(--accent-soft); letter-spacing: -0.01em; transition: color .25s; }
.contact-mail:hover { color: var(--accent); }
.contact-btn { border-radius: 2px; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(6, 10, 24, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form select { cursor: pointer; }
.contact-form option { background: #0B1430; color: var(--ink); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(6, 10, 24, 0.8); }
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) { border-color: rgba(244, 92, 92, 0.6); }

.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-mute); }
.form-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent); }
.form-consent a { color: var(--accent-soft); font-weight: 500; text-decoration: underline; }

.form-submit { align-self: flex-start; margin-top: 4px; }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-status { font-size: 14px; font-weight: 500; color: var(--ink-mute); min-height: 1px; }
.form-status--error { color: #F58A8A; }
.form-status--ok { color: var(--accent-soft); }
.form-alt { font-size: 13.5px; color: var(--ink-dim); }

.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 60px; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 18px; }
.footer-tagline { font-size: 14px; line-height: 1.6; color: #6E7C9E; font-weight: 400; max-width: 240px; }
.footer-col-title { font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--ink-dim); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.flink { color: var(--ink-mute); font-weight: 500; transition: color .25s; }
.flink:hover { color: var(--accent); }
.footer-address { font-size: 14px; line-height: 1.7; color: var(--ink-mute); font-weight: 400; font-style: normal; }
.footer-coord { display: inline-block; margin: 4px 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--ink-dim); }
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(236, 242, 252, 0.08);
  padding-top: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink-dim);
}
.legal-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legal-links a,
.legal-links button {
  color: var(--ink-mute);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .25s;
}
.legal-links a:hover,
.legal-links button:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(6, 10, 24, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 242, 252, 0.08);
}
.legal-topbar img { height: 22px; width: auto; }
.legal-back { color: var(--ink-mute); font-weight: 500; font-size: 14px; transition: color .25s; }
.legal-back:hover { color: var(--accent); }

.legal-wrap { max-width: 820px; margin: 0 auto; padding: 70px 24px 100px; }
.legal-wrap h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.02; margin-bottom: 14px; }
.legal-updated { font-size: 13px; color: var(--ink-dim); font-weight: 500; letter-spacing: .04em; margin-bottom: 40px; }
.legal-wrap h2 { font-size: 22px; margin: 40px 0 14px; color: var(--ink); }
.legal-wrap h3 { font-size: 16px; margin: 24px 0 10px; color: var(--accent-soft); }
.legal-wrap p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 14px; }
.legal-wrap ul { margin: 0 0 16px 20px; }
.legal-wrap li { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; }
.legal-wrap a { color: var(--accent-soft); font-weight: 500; text-decoration: underline; }
.legal-wrap strong { color: var(--ink); }

.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 13.5px; }
.legal-table th,
.legal-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.legal-table th { background: var(--bg-2); color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.legal-table td { color: var(--ink-soft); }
.legal-note { font-size: 13px; line-height: 1.6; color: var(--ink-mute); background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; padding: 16px 18px; margin-bottom: 16px; }
.legal-manage-row { margin-top: 32px; }
.legal-manage-btn {
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--ink-mute);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.legal-manage-btn:hover { color: var(--ink); border-color: var(--accent); }

@media (max-width: 640px) {
  .legal-topbar { padding: 14px 22px; }
  .legal-table { display: block; overflow-x: auto; }
}

/* ---------- Thank-you page ---------- */
.thanks { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; }
.thanks-inner { max-width: 560px; }
.thanks-badge { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--accent-soft); border: 1px solid rgba(44, 182, 245, 0.4); border-radius: 2px; padding: 7px 15px; margin-bottom: 26px; }
.thanks h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; margin-bottom: 18px; }
.thanks p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 30px; }
.thanks p a { color: var(--accent-soft); font-weight: 500; text-decoration: underline; }
.thanks-btn { display: inline-flex; }

/* ---------- Reel modal ---------- */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 7, 16, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  animation: fadeup .3s ease both;
}
.reel-dialog { position: relative; width: 100%; max-width: 1080px; aspect-ratio: 16 / 9; border: 1px solid rgba(44, 182, 245, 0.4); border-radius: 2px; overflow: hidden; }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.reel-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; }
.reel-play { display: inline-flex; width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(44, 182, 245, 0.6); background: rgba(44, 182, 245, 0.14); align-items: center; justify-content: center; color: var(--accent); font-size: 24px; }
.reel-label { font-size: 13px; font-weight: 600; letter-spacing: .22em; color: var(--accent-soft); }
.reel-hint { font-size: 14px; color: var(--ink-mute); font-weight: 400; max-width: 360px; line-height: 1.5; }
.reel-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(236, 242, 252, 0.2); background: rgba(6, 10, 24, 0.6); color: var(--ink); font-family: inherit; font-size: 16px; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 36px 30px; }
}

@media (max-width: 920px) {
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .cfg-grid { grid-template-columns: 1fr; gap: 36px; }
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 80px 22px; }
  .studio, .services, .process, .configurator, .clients, .contact { padding-left: 22px; padding-right: 22px; }
  .hero-strip { font-size: 10px; letter-spacing: .12em; gap: 8px 16px; }
  .hero-foot { align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { margin-bottom: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 32px 24px; }
  .studio-media img { height: 380px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-strip-loc .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}

/* ---------- Layout-shift prevention (CLS) ----------
   These containers are empty in the initial HTML and populated by app.js
   after first paint. The :empty rules reserve each container's final height
   up front, so injecting the content no longer pushes the page down.
   Once a container has children, :empty stops matching and the real content
   drives its height again, so filtering and the language toggle still resize
   normally without leaving gaps. Heights are tuned to the rendered layout. */
#marqueeTrack:empty { min-height: 41px; }
#workFilters:empty { min-height: 38px; }
#studioChips:empty { min-height: 35px; }
#workGrid:empty { aspect-ratio: 2 / 1; }
#servicesGrid:empty { min-height: 350px; }
#processGrid:empty { min-height: 226px; }
#clientsGrid:empty { min-height: 280px; }
#cfgEvt:empty { min-height: 96px; }
#cfgCam:empty,
#cfgStr:empty { min-height: 44px; }
#cfgRows:empty { min-height: 280px; }

@media (max-width: 920px) {
  #workGrid:empty { aspect-ratio: 8 / 9; }
  #servicesGrid:empty { min-height: 720px; }
  #processGrid:empty { min-height: 420px; }
  #clientsGrid:empty { min-height: 520px; }
}

@media (max-width: 640px) {
  #studioChips:empty { min-height: 80px; }
  #workGrid:empty { aspect-ratio: 1 / 4.75; }
  #servicesGrid:empty { min-height: 950px; }
  #processGrid:empty { min-height: 690px; }
  #clientsGrid:empty { min-height: 680px; }
  #cfgEvt:empty { min-height: 150px; }
}

/* ---------- Generated content pages: chrome ---------- */
.site-nav--solid { background: rgba(7, 11, 26, 0.9); }
.nav-spacer { height: 64px; }

.cfooter { background: #05080F; border-top: 1px solid var(--line); }
.cfooter-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(18px, 4vw, 44px) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start;
}
.cfooter-brand img { height: 22px; width: auto; display: block; margin-bottom: 20px; }
.cfooter-brand p { font-size: 11.5px; line-height: 1.9; letter-spacing: .03em; color: var(--ink-mute); }
.cfooter-col { display: flex; flex-direction: column; gap: 12px; }
.cfooter-h { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.cfooter-col a, .cfooter-col span { font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); transition: color .2s; }
.cfooter-col a:hover { color: var(--accent); }
.cfooter-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 44px) 44px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim);
}
.cfooter-legal { display: flex; align-items: center; gap: 18px; }
.cfooter-legal a, .cfooter-legal button { color: var(--ink-soft); transition: color .2s; }
.cfooter-legal a:hover, .cfooter-legal button:hover { color: var(--accent); }
.cfooter-legal button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Blog article (design ported) ---------- */
.post-hero { border-bottom: 1px solid var(--line); }
.post-hero-inner { max-width: 1180px; margin: 0 auto; padding: clamp(44px,5vw,76px) clamp(18px,4vw,44px) clamp(30px,3vw,42px); }
.post-cat { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 5px 11px; margin-bottom: 22px; }
.post-title { margin: 0; max-width: 18ch; font-weight: 800; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.04; font-size: clamp(28px,4vw,54px); color: var(--ink); }
.post-deck { margin: 22px 0 0; max-width: 640px; font-size: clamp(15px,1.4vw,19px); line-height: 1.55; color: var(--ink-soft); }
.post-hero-img { height: clamp(220px,30vw,400px); overflow: hidden; border-top: 1px solid var(--line); }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92) brightness(.82); }

.post-body { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px,4vw,44px); display: grid; grid-template-columns: 230px 1fr; gap: clamp(28px,5vw,64px); align-items: start; }
.post-rail { position: sticky; top: 88px; padding: clamp(40px,5vw,72px) 0; display: flex; flex-direction: column; }
.post-rail-block { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.post-rail-row { border-top: 1px solid var(--line-soft); padding: 14px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.post-rail-k { font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.post-rail-author { font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 6px; }
.post-rail-role { font-size: 11px; font-weight: 500; color: var(--ink-mute); margin-top: 3px; }
.post-rail-v { font-weight: 600; font-size: 13px; color: var(--ink); }
.post-share-btns { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.post-share { font-family: inherit; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: transparent; border: 1px solid var(--line-soft); border-radius: 2px; padding: 7px 10px; cursor: pointer; transition: border-color .2s, color .2s; }
.post-share:hover { border-color: var(--accent); color: var(--ink); }

.post-content { padding: clamp(40px,5vw,72px) 0; border-left: 1px solid var(--line); padding-left: clamp(28px,5vw,64px); max-width: 760px; }
.post-takeaways { border: 1px solid rgba(47,190,246,.35); background: rgba(47,190,246,.05); padding: clamp(20px,3vw,30px); margin-bottom: clamp(36px,4vw,52px); }
.post-takeaways-h { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.post-takeaways-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.post-takeaways-list li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.post-takeaways-list li::before { content: "\25B8"; position: absolute; left: 0; top: 0; color: var(--accent); }

.post-prose { font-size: 16px; line-height: 1.75; color: #c3cee6; }
.post-prose h2 { margin: 38px 0 16px; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.15; font-size: clamp(20px,2.2vw,28px); color: var(--ink); }
.post-prose h3 { margin: 30px 0 10px; font-size: 19px; color: var(--accent-soft); }
.post-prose p { margin: 0 0 22px; }
.post-prose ul, .post-prose ol { margin: 0 0 22px 22px; }
.post-prose li { margin-bottom: 10px; }
.post-prose a { color: var(--accent-soft); text-decoration: underline; font-weight: 500; }
.post-prose strong { color: var(--ink); }
.post-prose blockquote { margin: 32px 0; padding: 6px 0 6px 24px; border-left: 2px solid var(--accent); font-weight: 700; font-stretch: 108%; line-height: 1.3; font-size: clamp(18px,2vw,25px); color: var(--ink); }
.post-prose img { width: 100%; height: auto; margin: 32px 0; border: 1px solid var(--line); }
.post-prose code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; font-size: .9em; }
.post-prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; overflow-x: auto; margin: 0 0 22px; }
.post-prose pre code { background: none; border: 0; padding: 0; }

.post-related { background: var(--bg-2); border-top: 1px solid var(--line); }
.post-related-inner { max-width: 1180px; margin: 0 auto; padding: clamp(60px,7vw,110px) clamp(18px,4vw,44px); }
.post-related-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 36px; }
.post-related-all { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.post-related-all:hover { color: var(--ink); }

/* ---------- Blog cards (shared: related + listing grid) ---------- */
.bcard-grid { display: grid; gap: 18px; }
.bcard-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bcard { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg-3); text-decoration: none; transition: border-color .25s; }
.bcard:hover { border-color: var(--accent); }
.bcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s var(--ease); filter: saturate(.9); }
.bcard:hover .bcard-media img { transform: scale(1.06); }
.bcard-cat { position: absolute; top: 11px; left: 11px; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 4px 9px; }
.bcard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bcard-meta { font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.bcard-title { font-weight: 700; letter-spacing: -.005em; line-height: 1.2; font-size: clamp(17px,1.5vw,21px); color: var(--ink); }
.bcard-ex { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.bcard-by { margin-top: auto; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Blog listing ---------- */
.blog-hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,7vw,104px) clamp(18px,4vw,44px) clamp(34px,4vw,52px); }
.blog-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.blog-title { margin: 0; font-weight: 900; font-stretch: 122%; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: clamp(40px,7vw,116px); color: var(--ink); }
.blog-sub { margin: 26px 0 0; max-width: 600px; font-size: clamp(16px,1.5vw,20px); line-height: 1.55; color: var(--ink-soft); }

.blog-featured-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px,4vw,44px); }
.blog-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px,3vw,48px); align-items: center; border: 1px solid var(--line-soft); background: var(--bg-3); text-decoration: none; transition: border-color .25s; }
.blog-featured:hover { border-color: var(--accent); }
.blog-featured-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); filter: saturate(.9) brightness(.9); }
.blog-featured:hover .blog-featured-media img { transform: scale(1.05); }
.blog-featured-body { padding: clamp(20px,3vw,40px) clamp(20px,3vw,44px) clamp(20px,3vw,40px) 0; }
.blog-featured-meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.blog-featured-cat { color: var(--accent); }
.blog-featured-title { display: block; font-weight: 800; font-stretch: 114%; letter-spacing: -.01em; line-height: 1.06; font-size: clamp(24px,2.7vw,40px); color: var(--ink); margin-bottom: 18px; }
.blog-featured-ex { display: block; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); max-width: 480px; margin-bottom: 24px; }
.blog-readmore { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

.blog-main { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,5vw,72px) clamp(18px,4vw,44px) clamp(64px,8vw,120px); }
.blog-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 36px; border-top: 1px solid var(--line-soft); padding-top: 28px; }
.blog-filter { font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 9px 15px; border-radius: 2px; cursor: pointer; transition: all .2s; border: 1px solid var(--line-soft); background: transparent; color: var(--ink-soft); }
.blog-filter:hover { border-color: var(--accent); color: var(--ink); }
.blog-filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.blog-empty { padding: 60px 0; text-align: center; font-size: 14px; letter-spacing: .04em; color: var(--ink-dim); }

.listing { max-width: var(--maxw); margin: 0 auto; padding: 60px 40px 40px; }
.listing-head { margin-bottom: 48px; max-width: 640px; }
.listing-intro { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-top: 14px; }
.listing-empty { color: var(--ink-mute); font-size: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--bg-2); transition: transform .3s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--line-soft); }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 22px 22px 26px; }
.post-card-meta { font-size: 12px; letter-spacing: .06em; color: var(--ink-dim); margin-bottom: 10px; }
.post-card-title { font-size: 21px; color: var(--ink); margin-bottom: 10px; line-height: 1.12; }
.post-card-excerpt { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Case study (design ported from approved layout) ---------- */
.cs-hero { border-bottom: 1px solid var(--line); }
.cs-hero-top {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(18px, 4vw, 44px) clamp(32px, 4vw, 52px);
  display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: end;
}
.cs-hero-tags { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.cs-cat {
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bg); background: var(--accent); padding: 5px 10px;
}
.cs-caselabel {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
}
.cs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: csBlink 1.6s infinite; }
@keyframes csBlink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

.cs-title {
  margin: 0; font-weight: 900; font-stretch: 120%; text-transform: uppercase;
  letter-spacing: -.02em; line-height: .9; font-size: clamp(40px, 6.6vw, 104px); color: var(--ink);
}
.cs-heroline { margin: 24px 0 0; max-width: 520px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-soft); }

.cs-factsheet { border: 1px solid var(--line-soft); background: var(--bg-3); }
.cs-factsheet-h { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); padding: 16px 20px 0; }
.cs-facts { padding: 8px 20px 16px; }
.cs-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.cs-fact-k { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.cs-fact-v { font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: right; line-height: 1.35; }

.cs-hero-img { height: clamp(220px, 32vw, 420px); overflow: hidden; border-top: 1px solid var(--line); }
.cs-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) brightness(.82); }

.cs-body {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px);
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start;
}
.cs-index { position: sticky; top: 88px; padding: clamp(40px, 6vw, 84px) 0; display: flex; flex-direction: column; gap: 14px; }
.cs-index-label { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.cs-index-link { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); transition: color .2s; }
.cs-index-link:hover { color: var(--accent); }

.cs-content { padding: clamp(40px, 6vw, 84px) 0; border-left: 1px solid var(--line); padding-left: clamp(28px, 5vw, 72px); }
.cs-block { scroll-margin-top: 88px; }
.cs-block + .cs-block { margin-top: clamp(54px, 6vw, 90px); }
.cs-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.cs-h2 { margin: 0 0 22px; font-weight: 900; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; font-size: clamp(26px, 3vw, 42px); color: var(--ink); }
.cs-lead { margin: 0 0 22px; max-width: 660px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink); }
.cs-p { margin: 0 0 18px; max-width: 660px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.cs-challenge { margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.cs-subeyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

.cs-did { border-top: 1px solid var(--line-soft); }
.cs-did-item { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.cs-did-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.cs-did-no { font-size: 12px; font-weight: 500; color: var(--accent); }
.cs-did-title { margin: 0; font-weight: 800; font-stretch: 115%; text-transform: uppercase; font-size: clamp(18px, 2vw, 26px); color: var(--ink); }
.cs-did-body { margin: 0 0 14px; max-width: 620px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.cs-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.cs-tag { font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line-soft); padding: 5px 10px; }

.cs-techgroup + .cs-techgroup { margin-top: 30px; }
.cs-techrow { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.cs-techrow-k { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); padding-top: 2px; }
.cs-techrow-v { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }

.cs-faq { border-top: 1px solid var(--line-soft); }
.cs-faq-item { border-bottom: 1px solid var(--line-soft); }
.cs-faq-q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 700; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.35; color: var(--ink);
}
.cs-faq-q::-webkit-details-marker { display: none; }
.cs-faq-ico { font-size: 24px; line-height: 1; color: var(--accent); flex: none; transition: transform .25s; }
.cs-faq-item[open] .cs-faq-ico { transform: rotate(45deg); }
.cs-faq-a { padding-bottom: 24px; max-width: 640px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }

.cs-related { background: var(--bg-2); border-top: 1px solid var(--line); }
.cs-related-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 7vw, 110px) clamp(18px, 4vw, 44px); }
.cs-related-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 36px; }
.cs-related-all { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.cs-related-all:hover { color: var(--ink); }
.cs-related-list { border-top: 1px solid var(--line-soft); }
.cs-related-item {
  display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft); transition: background .25s;
}
.cs-related-item:hover { background: rgba(47, 190, 246, .04); }
.cs-related-media { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-soft); }
.cs-related-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); }
.cs-related-title { display: block; font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(16px, 1.8vw, 22px); color: var(--ink); margin-bottom: 6px; }
.cs-related-meta { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.cs-related-arrow { font-size: 20px; color: var(--ink-dim); padding-right: 6px; }

.cs-cta { border-top: 1px solid var(--line); }
.cs-cta-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 9vw, 150px) clamp(18px, 4vw, 44px) clamp(60px, 7vw, 110px); }
.cs-cta-title { margin: 0; font-weight: 900; font-stretch: 122%; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: clamp(36px, 7vw, 108px); color: var(--ink); }
.cs-cta-dim { color: var(--ink-dim); }
.cs-cta-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 44px; }
.cs-cta-mail { font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.cs-cta-mail:hover { color: var(--ink); }

/* ---------- Content responsive ---------- */
@media (max-width: 900px) {
  .cs-hero-top { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-index { display: none; }
  .cs-content { border-left: 0; padding-left: 0; padding-top: clamp(36px, 6vw, 60px); }
  .cfooter-grid { grid-template-columns: 1fr 1fr; }
  .cs-related-item { grid-template-columns: 92px 1fr auto; }
  .post-body { grid-template-columns: 1fr; }
  .post-rail { position: static; padding: clamp(28px, 5vw, 40px) 0 0; }
  .post-content { border-left: 0; padding-left: 0; padding-top: clamp(28px, 5vw, 40px); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 0 clamp(20px, 3vw, 32px) clamp(24px, 4vw, 32px); }
  .bcard-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .listing { padding: 50px 22px 40px; }
  .cfooter-grid { grid-template-columns: 1fr; }
  .cfooter-bottom { justify-content: flex-start; }
  .cs-techrow { grid-template-columns: 1fr; gap: 2px; }
  .cs-techrow-k { padding-top: 0; }
  .bcard-grid--3 { grid-template-columns: 1fr; }
}
