/* New Media Studio — shared brand base (subpages: story, pricing, partners).
   The homepage (index.html) keeps its own inline styles so the animated hero
   stays self-contained. Visual language mirrors index: dark bg, cyan accent,
   Inter, glassy surfaces, studio-white vs software-cyan two-sided coding. */

:root {
  --bg: #ffffff;
  --surface: rgba(13, 33, 56, 0.04);
  --surface-2: #f3f5f8;
  --fg: #0d2138;
  --fg-muted: #5a6b7e;
  --fg-soft: rgba(13, 33, 56, 0.72);
  --accent: #1f9bd6;
  --accent-dark: #1577a8;
  --accent-light: #5ec1ec;
  --accent-2: #79c143;
  --line: rgba(13, 33, 56, 0.12);
  --line-soft: rgba(13, 33, 56, 0.07);
  --good: #2f9e44;
  --bad: #e5484d;
  --studio: #0d2138;
  --software: #1f9bd6;
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
}
.accent { color: var(--accent); }
.studio-accent { color: var(--studio); }
.software-accent { color: var(--software); }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.nav-cta) {
  font-size: 13px; font-weight: 500; color: var(--fg-muted);
  text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s ease;
}
.nav-links > a:not(.nav-cta):hover { color: var(--fg); }
.nav-links > a.active { color: var(--fg); }
.nav-item { position: relative; }
.nav-top {
  font-size: 13px; font-weight: 500; color: var(--fg-muted); text-decoration: none;
  letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s ease;
}
.nav-top.active { color: var(--fg); }
.nav-top::after { content: "\25BE"; font-size: 9px; opacity: 0.7; }
.nav-item:hover .nav-top, .nav-item:focus-within .nav-top { color: var(--fg); }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 12px; min-width: 250px; opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown-panel {
  background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(13, 33, 56, 0.16); display: flex; flex-direction: column;
}
.dropdown-panel a {
  padding: 11px 14px; border-radius: 9px; text-decoration: none;
  color: var(--fg-soft); font-size: 13.5px; font-weight: 600;
  display: flex; flex-direction: column; gap: 2px; transition: background 0.15s ease, color 0.15s ease;
}
.dropdown-panel a span { font-size: 11.5px; color: var(--fg-muted); font-weight: 400; }
.dropdown-panel a:hover { background: var(--surface); color: var(--fg); }
.nav-cta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  text-decoration: none; color: var(--bg);
  background: var(--accent); padding: 10px 22px; border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent-light); }

.btn {
  display: inline-block; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--bg); background: var(--accent);
  padding: 16px 34px; border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); border-color: var(--accent); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 172px 0 76px; text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px 420px at 50% 8%, rgba(31, 155, 214, 0.14), transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.03em; margin-top: 16px; max-width: 18ch; margin-left: auto; margin-right: auto; }
.page-hero .lead { margin: 22px auto 0; max-width: 58ch; font-size: 18px; color: var(--fg-muted); text-wrap: pretty; }

/* ---------- Sections ---------- */
section { padding: 100px 0; border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.section-head p { margin: 18px auto 0; color: var(--fg-muted); font-size: 17px; max-width: 62ch; text-wrap: pretty; }

/* Section-header treatment: a short green→blue gradient bar (logo's MEDIA
   gradient + underscore motif) replaces the old uppercase eyebrows/kickers. */
.page-hero h1::after,
.section-head h2::after,
.cta h2::after,
.pricing-blurb h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 2px;
  margin: 22px auto 0; background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.statement h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 2px;
  margin: 20px 0 0; background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* ---------- Prose (story / manifesto) ---------- */
.statement { max-width: 800px; margin: 0 auto; }
.statement + .statement { margin-top: 72px; }
.statement .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.statement h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.statement p { margin-top: 20px; font-size: 18px; color: var(--fg-soft); text-wrap: pretty; }
.statement p .em { color: var(--fg); font-weight: 500; }
.pullquote {
  max-width: 880px; margin: 0 auto; text-align: center;
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.25; text-wrap: balance;
}
.pullquote .accent { color: var(--accent); }

/* Venn — marketing × technology × storytelling */
.venn { position: relative; width: 360px; max-width: 100%; height: 322px; margin: 52px auto 0; }
.venn .c { position: absolute; width: 200px; height: 200px; border-radius: 50%; mix-blend-mode: multiply; }
.venn .c1 { left: 80px; top: 0; background: radial-gradient(circle, rgba(31,155,214,0.32), rgba(31,155,214,0.06)); border: 1px solid rgba(31,155,214,0.5); }
.venn .c2 { left: 6px; top: 116px; background: radial-gradient(circle, rgba(13,33,56,0.2), rgba(13,33,56,0.04)); border: 1px solid rgba(13,33,56,0.4); }
.venn .c3 { left: 154px; top: 116px; background: radial-gradient(circle, rgba(121,193,67,0.32), rgba(121,193,67,0.06)); border: 1px solid rgba(121,193,67,0.5); }
.venn .vl { position: absolute; transform: translate(-50%, -50%); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.venn .vl.m { left: 180px; top: 50px; }
.venn .vl.t { left: 78px; top: 252px; }
.venn .vl.s { left: 282px; top: 252px; }
.venn .vc { position: absolute; left: 180px; top: 162px; transform: translate(-50%, -50%); text-align: center; font-weight: 700; color: var(--accent); font-size: 12.5px; line-height: 1.25; }

/* ---------- Cards: pricing ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 30px; backdrop-filter: blur(8px);
}
.price-card.featured { border-color: rgba(31, 155, 214, 0.5); box-shadow: 0 0 0 1px rgba(31,155,214,0.25); }
.price-card .tier { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.price-card .price { margin-top: 16px; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--fg-muted); letter-spacing: 0; }
.price-card .price-lead { margin-top: 10px; color: var(--fg-muted); font-size: 14.5px; min-height: 3.2em; }
.price-card ul { list-style: none; margin: 24px 0 28px; }
.price-card li { padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--fg-soft); display: flex; gap: 11px; align-items: baseline; }
.price-card li::before { content: "✓"; color: var(--good); font-size: 12px; flex-shrink: 0; }
.price-card .btn { margin-top: auto; text-align: center; }

/* ---------- Partners map ---------- */
.map { margin: 0 auto; max-width: 980px; }
.map img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); }

/* ---------- Cards: partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 22px; text-align: center; backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 150px;
}
.partner-card .logo {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(31,155,214,0.22), rgba(13,33,56,0.06));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: var(--fg);
}
.partner-card .pname { font-size: 14.5px; font-weight: 600; }
.partner-card .ptype { font-size: 12px; color: var(--fg-muted); }

/* ---------- Services ---------- */
.svc { scroll-margin-top: 84px; }
.svc-num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.12em; }
.svc h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 10px; max-width: 18ch; }
.svc-lead { margin-top: 18px; max-width: 64ch; color: var(--fg-soft); font-size: 18px; text-wrap: pretty; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.flow .step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; }
.flow .step.intel { border-color: rgba(31, 155, 214, 0.5); box-shadow: 0 0 0 1px rgba(31,155,214,0.2); }
.flow .step .sn { font-size: 12px; font-weight: 700; color: var(--accent); }
.flow .step h4 { font-size: 15px; margin-top: 10px; font-weight: 600; }
.flow .step p { margin-top: 8px; font-size: 13px; color: var(--fg-muted); line-height: 1.55; }
.callout {
  margin-top: 30px; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--fg-soft); font-size: 16px; text-wrap: pretty;
}
.callout b { color: var(--fg); }
.note {
  margin-top: 28px; display: flex; gap: 14px; align-items: flex-start;
  background: rgba(31, 155, 214, 0.07); border: 1px solid rgba(31, 155, 214, 0.28);
  border-radius: 14px; padding: 18px 20px;
}
.note .badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(31, 155, 214, 0.45); border-radius: 999px;
  padding: 5px 11px; white-space: nowrap; flex-shrink: 0;
}
.note p { font-size: 14.5px; color: var(--fg-soft); }

/* ---------- Pricing note ---------- */
.pricing-blurb { max-width: 740px; margin: 0 auto 40px; text-align: center; }
.pricing-blurb h2 { font-size: clamp(24px, 3.4vw, 36px); }
.pricing-blurb p { margin-top: 16px; color: var(--fg-soft); font-size: 18px; text-wrap: pretty; }
.price-note { max-width: 640px; margin: 0 auto 44px; text-align: center; font-size: 17px; color: var(--fg-soft); }
.price-card .price.custom { font-size: 30px; }

/* ---------- Contact form ---------- */
.form-card {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; backdrop-filter: blur(8px);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--fg-soft); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 15px; color: var(--fg); font: inherit; font-size: 15px; width: 100%;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #ffffff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%), linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.form-actions .btn { border: 0; cursor: pointer; }
.form-actions .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-note { font-size: 13px; color: var(--fg-muted); }
.form-status { grid-column: 1 / -1; font-size: 14px; margin-top: 4px; }
.form-status.err { color: var(--bad); }
.form-success { grid-column: 1 / -1; text-align: center; padding: 30px 10px; }
.form-success .check {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(74, 222, 128, 0.15); color: var(--good);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.form-success h3 { font-size: 24px; }
.form-success p { margin-top: 10px; color: var(--fg-muted); }
.form-success .su-note { margin-top: 16px; font-size: 13.5px; }
.form-success .su-note strong { color: var(--fg); font-weight: 600; }
.heads-up {
  max-width: 720px; margin: 0 auto 20px; display: flex; gap: 12px; align-items: baseline;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 18px; font-size: 14px; color: var(--fg-muted); line-height: 1.55;
}
.heads-up .hu-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap; flex-shrink: 0;
}
.heads-up strong { color: var(--fg); font-weight: 600; }
.contact-aside { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--fg-muted); }
.contact-aside a { color: var(--accent); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ---------- Mid-page CTA band ---------- */
.cta { text-align: center; padding: 130px 0; border-bottom: none; position: relative; overflow: hidden; }
.cta .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px 320px at 50% 30%, rgba(31,155,214,0.12), transparent 70%); }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(30px, 5vw, 52px); max-width: 20ch; margin: 14px auto 0; }
.cta p { margin: 22px auto 0; max-width: 48ch; color: var(--fg-muted); font-size: 17px; text-wrap: pretty; }
.cta .btn { margin-top: 38px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 46px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.credit { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--fg-muted); letter-spacing: 0.02em; }
.credit img { height: 44px; width: auto; display: block; opacity: 0.92; }
.credit a { display: block; }
.foot-meta { font-size: 13px; color: var(--fg-muted); }

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

@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  section { padding: 78px 0; }
  .statement + .statement { margin-top: 52px; }
}
@media (max-width: 640px) {
  .nav-links > a:not(.nav-cta), .nav-item { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
