/* ============================================================
   MEDIAXAN — Stylesheet
   Strategy-led media agency. Modern, technical, professional.
   Palette: deep navy + slate, single electric-blue accent.
   ============================================================ */

:root {
  /* Core neutrals */
  --navy: #0a0e16;          /* near-black hero/footer */
  --navy-2: #0f1521;        /* raised dark surfaces */
  --navy-3: #161d2c;        /* dark cards */
  --ink: #0c1320;           /* primary text on light */
  --slate: #475067;         /* muted body text */
  --slate-light: #6b7488;
  --line: #e6e9f0;          /* hairline borders on light */
  --line-dark: rgba(255,255,255,.10);
  --light: #f6f8fb;         /* page background */
  --paper: #ffffff;

  /* Accent — electric blue */
  --blue: #2f6bff;
  --blue-bright: #4f86ff;
  --cyan: #36c6ff;
  --blue-soft: rgba(47,107,255,.10);
  --grad-blue: linear-gradient(120deg, #2f6bff, #36c6ff);
  --grad-ink: linear-gradient(135deg, #111726 0%, #0a0e16 60%);

  --shadow-sm: 0 1px 2px rgba(12,19,32,.04), 0 4px 16px rgba(12,19,32,.05);
  --shadow-md: 0 12px 34px rgba(12,19,32,.10);
  --shadow-blue: 0 14px 40px rgba(47,107,255,.28);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1160px;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 500; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--blue); display: inline-block; }
.eyebrow--light { color: var(--cyan); }
.eyebrow--light::before { background: var(--cyan); }

.text-grad {
  background: var(--grad-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  padding: 14px 26px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  background: var(--blue); color: #fff;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); background: var(--blue-bright); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); box-shadow: var(--shadow-sm); border-color: #cfd6e4; color: var(--ink); }
.btn--on-dark { background: #fff; color: var(--navy); }
.btn--on-dark:hover { background: #fff; box-shadow: 0 14px 40px rgba(255,255,255,.18); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: var(--line-dark); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.06); box-shadow: none; color:#fff; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,251,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.brand__dot {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--grad-blue);
  position: relative;
  box-shadow: 0 4px 14px rgba(47,107,255,.35);
}
.brand__dot::after { content:''; position:absolute; inset: 7px 7px auto auto; width:7px; height:7px; border-radius:2px; background:#fff; opacity:.9; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--slate); position: relative; transition: color .15s; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a.active:not(.btn)::after { content:''; position:absolute; left:0; bottom:-7px; width:100%; height:2px; background: var(--blue); border-radius:2px; }
.nav__links a.btn { color: #fff; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- Dark hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-ink);
  color: #fff;
  padding: 104px 0 110px;
  border-bottom: 1px solid var(--line-dark);
}
.hero::before {
  content:''; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 35%, transparent 80%);
}
.hero::after {
  content:''; position:absolute; top:-180px; right:-120px; width:560px; height:560px;
  background: radial-gradient(circle, rgba(47,107,255,.30), transparent 62%);
  filter: blur(20px); pointer-events:none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 600; letter-spacing: -.035em; }
.hero h1 .text-grad { font-weight: 600; }
.hero p.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: rgba(255,255,255,.72); max-width: 600px; margin: 24px 0 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__chips { display:flex; gap: 26px; flex-wrap: wrap; margin-top: 46px; }
.hero__chip { font-family: var(--font-head); font-size: .9rem; color: rgba(255,255,255,.62); display:flex; align-items:center; gap:9px; }
.hero__chip b { color:#fff; font-weight:600; font-size: 1.5rem; letter-spacing:-.02em; }

/* growth curve svg in hero */
.hero__chart { position:absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 42%; max-width: 520px; z-index: 1; opacity:.95; }
.hero__chart .line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s ease forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Page header (interior pages) ---------- */
.pagehead { background: var(--grad-ink); color:#fff; position:relative; overflow:hidden; padding: 84px 0 72px; text-align:center; border-bottom: 1px solid var(--line-dark); }
.pagehead::before { content:''; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size:54px 54px; mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 78%); }
.pagehead .wrap { position:relative; z-index:2; }
.pagehead h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); letter-spacing: -.03em; }
.pagehead p { color: rgba(255,255,255,.70); max-width: 620px; margin: 18px auto 0; font-size: 1.1rem; }

/* ---------- Marquee ---------- */
.marquee { background: var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding: 22px 0; overflow:hidden; }
.marquee__track { display:flex; gap:0; white-space:nowrap; width:max-content; animation: scroll 28s linear infinite; }
.marquee__track span { display:inline-flex; align-items:center; font-family:var(--font-head); font-weight:500; font-size:1rem; letter-spacing:.04em; text-transform:uppercase; color:var(--slate); }
.marquee__track span i { color: var(--blue); margin: 0 26px; font-style:normal; }
@keyframes scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.section--tight { padding-top: 0; }
.section__head { max-width: 660px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.section__head p { color: var(--slate); margin-top: 16px; font-size: 1.12rem; }
.center { text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8deea; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--blue-soft); color: var(--blue);
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 1rem; }
.card ul { list-style:none; margin-top: 16px; }
.card li { color: var(--slate); padding: 6px 0 6px 22px; position: relative; font-size: .96rem; }
.card li::before { content:''; position:absolute; left:2px; top:14px; width:6px; height:6px; border-radius:50%; background: var(--blue); }

/* Dark variant card */
.card--dark { background: var(--navy-3); border-color: var(--line-dark); color:#fff; }
.card--dark h3 { color:#fff; }
.card--dark p { color: rgba(255,255,255,.66); }
.card--dark .card__icon { background: rgba(255,255,255,.07); color: var(--cyan); }
.card--dark:hover { border-color: rgba(255,255,255,.2); box-shadow: 0 18px 50px rgba(0,0,0,.4); }

/* Accent card (single highlight) */
.card--accent { background: var(--grad-blue); border-color: transparent; color:#fff; }
.card--accent h3 { color:#fff; }
.card--accent p { color: rgba(255,255,255,.9); }
.card--accent .card__icon { background: rgba(255,255,255,.18); color:#fff; }

/* ---------- Stats ---------- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.stat { background: var(--paper); padding: 34px 22px; text-align:center; }
.stat__num { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem,4.4vw,3rem); line-height:1; letter-spacing:-.03em; }
.stat__label { color: var(--slate); font-size: .92rem; margin-top: 10px; }
/* dark stats band */
.stats--dark { background: var(--line-dark); border-color: var(--line-dark); }
.stats--dark .stat { background: var(--navy-2); }
.stats--dark .stat__num { color:#fff; }
.stats--dark .stat__num .text-grad { -webkit-text-fill-color: transparent; }
.stats--dark .stat__label { color: rgba(255,255,255,.6); }

/* ---------- Steps / process ---------- */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step { padding: 28px 24px; border-radius: var(--radius); border:1px solid var(--line); background: var(--paper); position:relative; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__n { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing:.18em; color: var(--blue); }
.step h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.step p { color: var(--slate); font-size: .96rem; }

/* ---------- Work / portfolio ---------- */
.work-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.work-card {
  border-radius: var(--radius-lg); border:1px solid var(--line); background: var(--paper);
  padding: 36px; min-height: 290px; display:flex; flex-direction:column; justify-content:space-between;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s; position:relative; overflow:hidden;
}
.work-card::after { content:''; position:absolute; left:0; top:0; height:3px; width:0; background: var(--grad-blue); transition: width .35s ease; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color:#d8deea; }
.work-card:hover::after { width:100%; }
.work-card .tag { font-family: var(--font-head); font-weight:500; font-size:.74rem; letter-spacing:.13em; text-transform:uppercase; color: var(--blue); }
.work-card h3 { font-size: 1.6rem; margin: 14px 0 10px; }
.work-card > div > p { color: var(--slate); font-size: .98rem; }
.work-card .result { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem,4.4vw,2.9rem); line-height:1; letter-spacing:-.03em; color: var(--ink); margin-top: 22px; }
.work-card .result span { color: var(--blue); }
.work-card .result small { display:block; font-size:.9rem; font-weight:400; font-family: var(--font-body); color: var(--slate); margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-ink); border-radius: var(--radius-lg); padding: 72px 48px; text-align:center; color:#fff; position:relative; overflow:hidden; border:1px solid var(--line-dark); }
.cta-band::before { content:''; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size:48px 48px; mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 30%, transparent 80%); }
.cta-band::after { content:''; position:absolute; bottom:-160px; left:50%; transform:translateX(-50%); width:520px; height:340px; background: radial-gradient(circle, rgba(47,107,255,.34), transparent 65%); filter: blur(20px); }
.cta-band > * { position:relative; z-index:2; }
.cta-band h2 { font-size: clamp(1.9rem,4.4vw,3rem); color:#fff; }
.cta-band p { color: rgba(255,255,255,.74); max-width: 540px; margin: 16px auto 30px; font-size: 1.1rem; }

/* ---------- Contact form ---------- */
.form-card { background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display:block; font-family: var(--font-head); font-weight:500; font-size:.88rem; margin-bottom:8px; color: var(--ink); }
.field input, .field textarea, .field select {
  width:100%; padding: 13px 15px; border:1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; background: #fbfcfe; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance:none; appearance:none;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); background:#fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475067' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 15px center; padding-right: 40px; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-note { font-size:.82rem; color: var(--slate-light); margin-top: 8px; }
.form-success { display:none; margin-top:18px; padding:15px 18px; background: var(--blue-soft); border:1px solid rgba(47,107,255,.25); color: var(--blue); border-radius:10px; font-family: var(--font-head); font-weight:500; }

/* ---------- Contact info ---------- */
.info-list { display:flex; flex-direction:column; gap:6px; }
.info-item { display:flex; gap:16px; align-items:flex-start; padding: 14px 0; border-bottom:1px solid var(--line); }
.info-item:last-child { border-bottom:none; }
.info-item .ic { width:42px; height:42px; border-radius:11px; display:grid; place-items:center; flex-shrink:0; background: var(--blue-soft); color: var(--blue); }
.info-item .ic svg { width:20px; height:20px; }
.info-item h4 { font-size:1rem; }
.info-item p { color: var(--slate); font-size:.96rem; }

/* ---------- Team ---------- */
.team-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
.member { text-align:left; }
.member .avatar { width:100%; aspect-ratio:1; border-radius: var(--radius); display:grid; place-items:center; font-family:var(--font-head); font-weight:600; font-size:2.4rem; color:#fff; margin-bottom:16px; background: var(--grad-ink); border:1px solid var(--line-dark); }
.member h4 { font-size:1.1rem; }
.member span { color: var(--slate); font-size:.9rem; }

/* ---------- Values ---------- */
.values { display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.value { padding: 30px; border-radius: var(--radius); border:1px solid var(--line); background: var(--paper); transition: transform .2s, box-shadow .2s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value .vic { width:42px; height:42px; border-radius:11px; display:grid; place-items:center; background: var(--blue-soft); color: var(--blue); margin-bottom:16px; }
.value .vic svg { width:21px; height:21px; }
.value h3 { margin-bottom:8px; font-size:1.2rem; }
.value p { color: var(--slate); font-size:.97rem; }

/* split feature row */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items:stretch; }
.split .panel { padding: 40px; border-radius: var(--radius-lg); border:1px solid var(--line); background: var(--paper); }
.split .panel--dark { background: var(--grad-ink); border-color: var(--line-dark); color:#fff; }
.split .panel--dark h3 { color:#fff; }
.split .panel--dark p { color: rgba(255,255,255,.72); }
.split .panel h3 { font-size: 1.5rem; margin-bottom: 12px; }
.split .panel p { color: var(--slate); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 70px 0 32px; margin-top: 96px; border-top:1px solid var(--line-dark); }
.footer a { color: rgba(255,255,255,.66); transition: color .15s; }
.footer a:hover { color: #fff; }
.footer__grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:40px; }
.footer h4 { font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:16px; color: rgba(255,255,255,.45); }
.footer ul { list-style:none; display:flex; flex-direction:column; gap:11px; font-size:.96rem; }
.footer .brand { color:#fff; margin-bottom:16px; }
.footer .brand:hover { color:#fff; }
.footer__about { max-width: 290px; font-size:.96rem; }
.footer__bottom { margin-top:48px; padding-top:24px; border-top:1px solid var(--line-dark); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.88rem; color: rgba(255,255,255,.45); }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__chart { display:none; }
  .grid--3, .stats, .steps, .team-grid, .values { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items:flex-start; background: var(--light); padding: 22px 28px; gap:18px; border-bottom:1px solid var(--line); transform: translateY(-160%); transition: transform .28s ease; }
  .nav__links.open { transform:none; }
  .nav__toggle { display:block; }
  .grid--2, .grid--3, .work-grid, .form-grid, .values, .team-grid, .split { grid-template-columns: 1fr; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 26px; }
  .form-card { padding: 28px; }
}
@media (max-width: 460px) {
  .stats, .steps { grid-template-columns: 1fr; }
  .hero__chips { gap: 20px; }
}
