/* MV Media - site styles
   Colours come from the logo shield: blue leads, the other facets appear
   only in the thin "stripe" signature and the hero illustration. */
:root {
  --ink: #0d1117;
  --ink-2: #161c25;
  --text: #1c2430;
  --muted: #5a6575;
  --line: #e3e7ec;
  --soft: #f3f6f9;
  --white: #fff;
  --blue: #007aa6;        /* button / link blue, AA on white */
  --blue-bright: #36b4e5; /* blue on dark backgrounds */
  --red: #e0352f;
  --yellow: #e6b400;
  --green: #50b020;
  --pink: #d0357f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13,17,23,.06), 0 8px 24px rgba(13,17,23,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--white); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2*max(5vw, 18px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--blue); color: var(--white); font-weight: 650; text-decoration: none; border: 2px solid var(--blue);
  transition: transform .15s ease, background .15s ease; cursor: pointer; font-size: 16px; font-family: inherit; }
.btn:hover { background: #00668b; border-color: #00668b; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(13,17,23,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #d5dbe3; text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 550; font-size: 16px; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"]:not(.btn) { color: var(--white); box-shadow: inset 0 -2px 0 var(--blue-bright); border-radius: 0; }
.nav .btn { color: var(--white); margin-left: 8px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after {
  position: absolute; left: 11px; width: 24px; height: 2px; background: var(--white); content: ""; transition: transform .2s; }
.menu-btn span:first-child { top: 22px; }
.menu-btn span:first-child::before { left: 0; top: -7px; }
.menu-btn span:first-child::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
.menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px max(5vw,18px) 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a[aria-current="page"]:not(.btn) { box-shadow: none; color: var(--blue-bright); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-radius: 999px; }
}

/* Hero */
.hero { background: var(--ink); color: #c9d1db; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 85% 20%, rgba(54,180,229,.18), transparent 70%),
              radial-gradient(500px 360px at 70% 90%, rgba(208,53,127,.12), transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(28px,5vw,72px);
  align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.hero h1 { color: var(--white); }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: #98a3b1; margin: 0; padding: 0; list-style: none; }
.hero-note li { display: flex; align-items: center; gap: 8px; }
.hero-note li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-art svg { width: 100%; height: auto; display: block; }
.page-hero { background: var(--ink); color: #c9d1db; padding-block: clamp(44px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 90% 0%, rgba(54,180,229,.16), transparent 70%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--white); max-width: 16em; }
.page-hero p { font-size: 19px; max-width: 40em; margin: 0; }
@media (max-width: 860px) { .hero-in { grid-template-columns: minmax(0,1fr); } .hero-art { max-width: 520px; } }

/* Sections */
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-soft { background: var(--soft); }
.band-dark { background: var(--ink); color: #c9d1db; }
.band-dark h2 { color: var(--white); }
.head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.head p { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { display: inline-block; font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.band-dark .kicker, .hero .kicker, .page-hero .kicker { color: var(--blue-bright); }

/* Service cards */
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 1020px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .g3, .g2 { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 560px) { .g4 { grid-template-columns: minmax(0,1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; color: var(--white); }
.icon svg { width: 26px; height: 26px; }
.i-blue { background: #0090c0; } .i-green { background: #3f9a14; } .i-pink { background: var(--pink); } .i-yellow { background: #c99a00; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 16px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-2); color: var(--blue-bright); font-weight: 800; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.12); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: rgba(255,255,255,.14); }
.steps li:last-child::after { display: none; }
.steps h3 { color: var(--white); }
.steps p { margin: 0; font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: -6px; }
  .steps li::after { left: 22px; top: 40px; bottom: -28px; right: auto; width: 1px; height: auto; }
}

/* Portfolio */
.work { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 960px) { .work { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .work { grid-template-columns: minmax(0,1fr); } }
.work-item { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; }
.work-item:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13,17,23,.06), 0 16px 36px rgba(13,17,23,.12); }
.work-img { aspect-ratio: 16/10; background: linear-gradient(135deg, #1b2532, #0d1117); overflow: hidden; }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-item figcaption { padding: 18px 20px 20px; }
.work-item h3 { font-size: 18px; margin: 0 0 4px; }
.work-item p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e6f4fa; color: #005a7a; margin-bottom: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font: 600 15px var(--font); color: var(--text); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Why / split */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(28px,5vw,72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0,1fr); } }
.points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px; }
.points .dot { width: 44px; height: 44px; border-radius: 12px; background: #e6f4fa; color: var(--blue); display: grid; place-items: center; }
.points .dot svg { width: 22px; height: 22px; }
.points h3 { margin: 4px 0 4px; font-size: 18px; }
.points p { margin: 0; color: var(--muted); font-size: 16px; }
.big-stat { font-size: clamp(64px, 9vw, 112px); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.04em; }
.big-stat span { display: block; font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 10px; }

/* CTA band */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 32px 16px 0; list-style: none; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 700px) { .logos { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.logos div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 18px; min-height: 96px; }
.logos img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos div:hover img { filter: none; opacity: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: clamp(28px,5vw,64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0,1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0,1fr); } }
.form label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 16px/1.4 var(--font); padding: 12px 14px; min-height: 48px;
  border: 1px solid #c9d1da; border-radius: 10px; background: var(--white); color: var(--text); }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(0,122,166,.25); border-color: var(--blue); }
.form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.alert { border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; font-weight: 550; }
.alert-err { background: #fdecec; color: #8a1c17; border: 1px solid #f5c2bf; }
.alert-ok { background: #ecf8e6; color: #24570c; border: 1px solid #c4e6b2; }
.info-card { background: var(--ink); color: #c9d1db; border-radius: var(--radius); padding: 30px; }
.info-card h2 { color: var(--white); font-size: 24px; }
.info-card a { color: var(--blue-bright); }
.info-card dl { margin: 0; display: grid; gap: 18px; }
.info-card dt { font-size: 14px; color: #8b96a5; font-weight: 600; }
.info-card dd { margin: 2px 0 0; color: var(--white); font-size: 17px; }
.nowrap { white-space: nowrap; }

/* Prose */
.prose { max-width: 44em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose p, .prose li { color: #3a4452; }

/* Footer */
.foot { background: #090c11; color: #98a3b1; font-size: 15px; padding-top: 56px; }
.foot-grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: 32px; padding-bottom: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0,1fr); } }
.foot img { margin-bottom: 14px; }
.foot h2 { font-size: 15px; color: var(--white); margin-bottom: 10px; letter-spacing: 0; }
.foot address { font-style: normal; }
.foot a { color: #c9d1db; text-decoration: none; line-height: 2; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px; font-size: 14px; }
.stripe { width: 120px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--red) 0 20%, var(--yellow) 20% 40%, var(--green) 40% 60%, #0090c0 60% 80%, var(--pink) 80%); }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
