/* ===================================================
   MEI Media — Global Stylesheet
   Monochrome · Editorial · Precise
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Variables ---------- */
:root {
  --bg:         #030303;
  --surface:    #080808;
  --surface-2:  #0e0e0e;
  --border:     #111111;
  --border-2:   #1a1a1a;
  --border-3:   #282828;
  --text:       #f0f0f0;
  --text-muted: #888888;
  --text-dim:   #555555;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --max-w:  1120px;
  --nav-h:  64px;
  --ease:   cubic-bezier(.25, .46, .45, .94);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a      { color: inherit; text-decoration: none; }
img    { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* Eyebrow label */
.label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--border-3);
  flex-shrink: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 96px 0; }

.section-header        { max-width: 560px; margin-bottom: 52px; }
.section-header .label { margin-bottom: 20px; }
.section-header h2     { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.section-header p      { color: var(--text-muted); font-size: .95rem; line-height: 1.75; }

/* ---------- Divider ---------- */
.divider { height: 1px; background: var(--border); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.nav.scrolled {
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--border);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__links a {
  font-size: .82rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .01em;
  transition: color .15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }

.nav__cta { display: flex; align-items: center; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text-muted);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(3, 3, 3, .98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile a:not(.btn) {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-muted);
  transition: color .15s;
}
.nav__mobile a:not(.btn):hover { color: var(--text); }
.nav__mobile .btn { margin-top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.25rem;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  border: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { opacity: .85; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--border-3); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 25% 60%, rgba(255,255,255,.022) 0%, transparent 65%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 80px 0 100px;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  border: 1px solid var(--border-3);
  border-radius: 4px;
  padding: .15rem .5rem;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(3.25rem, 8.5vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  padding: 1.75rem 2rem;
  transition: background .15s;
}
.card:hover { background: var(--surface-2); }

.card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  letter-spacing: -.015em;
}
.card p { color: var(--text-muted); font-size: .875rem; line-height: 1.72; }

/* Grid helpers */
.grid-2    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1px; }

/* Bordered grid */
.grid-bordered {
  border: 1px solid var(--border);
  background: var(--border); /* gaps show as border color */
  border-radius: 8px;
  overflow: hidden;
}
.grid-bordered .card { border-radius: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  position: relative;
}
.page-hero .label    { margin-bottom: 22px; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  max-width: 680px;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.8;
}

/* ---------- Pill badge ---------- */
.pill {
  display: inline-block;
  padding: .18rem .6rem;
  border-radius: 3px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Feature list ---------- */
.feat-list { display: flex; flex-direction: column; gap: 1.25rem; }
.feat-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.feat-item__dot {
  width: 1px;
  height: 100%;
  min-height: 14px;
  background: var(--border-2);
  margin-top: .55rem;
  flex-shrink: 0;
  align-self: stretch;
}
.feat-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .2rem;
  letter-spacing: -.01em;
}
.feat-item p { color: var(--text-muted); font-size: .855rem; line-height: 1.65; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ---------- Decorative panel ---------- */
.deco-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  background: var(--surface);
}

/* ---------- Vertical row (services) ---------- */
.vertical-row {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1.5rem;
  align-items: start;
}
.vertical-row__num {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-dim);
  padding-top: .4rem;
  letter-spacing: .04em;
}

/* ---------- Contact ---------- */
.contact-block { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item__mark {
  width: 1px;
  background: var(--border-2);
  align-self: stretch;
  min-height: 14px;
  margin-top: .4rem;
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}
.contact-item p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.contact-item a  { font-size: .9rem; color: var(--text); transition: opacity .15s; }
.contact-item a:hover { opacity: .6; }

/* ---------- Highlight box ---------- */
.highlight-box {
  border: 1px solid var(--border);
  border-left: 1px solid var(--border-3);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.35rem;
  background: var(--surface);
}
.highlight-box p {
  color: var(--text-muted);
  font-size: .855rem;
  margin: 0;
  line-height: 1.65;
}
.highlight-box a { color: var(--text); }
.highlight-box a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer__brand-logo {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
  display: block;
}
.footer__brand p {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.7;
  max-width: 290px;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer__col a {
  font-size: .82rem;
  color: var(--text-muted);
  transition: color .15s;
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p { font-size: .75rem; color: var(--text-dim); }

.social-links { display: flex; gap: .5rem; }
.social-link {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: .75rem;
  font-family: var(--font-body);
  transition: border-color .15s, color .15s, opacity .15s;
}
.social-link:hover { border-color: var(--border-3); opacity: .6; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ---------- Legal ---------- */
.legal { padding: calc(var(--nav-h) + 72px) 0 96px; }
.legal__content { max-width: 700px; }
.legal__content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.legal__content .effective {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 52px;
  display: block;
}
.legal__content h2 { font-size: 1.1rem; margin: 40px 0 12px; letter-spacing: -.01em; }
.legal__content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: .9rem;
  line-height: 1.75;
}
.legal__content ul {
  list-style: none;
  padding-left: .75rem;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.legal__content ul li { padding-left: 1rem; position: relative; }
.legal__content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}
.legal__content a { color: var(--text); }
.legal__content a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .grid-auto { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .vertical-row { grid-template-columns: 1fr; }
  .vertical-row__num { display: none; }
}

/* ---------- Fade-up ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }
