/*
Theme Name: MagTimes
Theme URI: https://magtimes.net
Author: Salman Zahid
Author URI: https://magtimes.net
 Description: Independent digital newsroom and growth studio. MagTimes is the daily read for operators shaping software, search, and the on-chain economy, and the desk that runs digital PR, SEO, and AI ranking to the same editorial standard. A clear editorial system built for authority and readability.
  Version: 1.0.67
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magtimes
Tags: blog, news, editorial, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles
 */

/* ============================================================
   MagTimes design tokens
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --cream: #F4F6F8;
  --surface: #FFFFFF;
  --ink: #12141A;
  --ink-soft: #252830;
  --muted: #5C616B;
  --primary: #D01224;
  --primary-fg: #FFFFFF;
  --navy: #0E2744;
  --navy-fg: #FFFFFF;
  --teal: #067A8C;
  --teal-fg: #FFFFFF;
  --border: #E2E5EA;
  --line: #D5D9E0;
  --ring: #D01224;

  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius: 12px;

  --shadow-border: 0 0 0 1px rgba(19,21,28,.06), 0 1px 2px -1px rgba(19,21,28,.06), 0 2px 4px 0 rgba(19,21,28,.04);
  --shadow-border-hover: 0 0 0 1px rgba(19,21,28,.10), 0 12px 28px -14px rgba(19,21,28,.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 72rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; outline: 1px solid rgba(19,21,28,.08); outline-offset: -1px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.25rem); line-height: 28px; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: rgba(208,18,36,.22); color: var(--ink); }

button, .btn { cursor: pointer; font: inherit; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 64px 0; }
.section-lg { padding: 96px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } .section-lg { padding: 120px 0; } }
.bg-cream { background: var(--cream); }
.narrow-copy { max-width: 52rem; }
.narrow-copy p { color: var(--ink-soft); font-size: 18px; line-height: 28px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 48px; overflow: hidden; border-radius: var(--radius-md); background: var(--navy); }
@media (min-width: 768px) { .about-stats { grid-template-columns: repeat(4, 1fr); } }
.about-stats > div { background: var(--navy); color: #fff; padding: 20px; }
.about-stats > div:first-child { background: var(--primary); }
.about-stats strong { display: block; font-family: var(--font-display); font-size: 30px; line-height: 36px; }
.about-stats span { display: block; margin-top: 4px; font-size: 11px; line-height: 16px; text-transform: uppercase; letter-spacing: .14em; opacity: .8; }
.faq-list { max-width: 48rem; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 20px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; }
.faq-question b { color: var(--primary); font-size: 24px; font-weight: 400; line-height: 1; }
.faq-answer { padding: 0 36px 20px 0; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.faq-ask-kicker { margin-top: 48px; }

.masthead-rule { height: 3px; background: var(--primary); display: block; }
.cream-band { background: var(--cream); }
.hairline { background: var(--line); display: block; height: 1px; border: 0; }

.kicker {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin: 0 0 14px;
}
@media (min-width: 768px) { .kicker { font-size: 12px; letter-spacing: 0.22em; } }

.text-teal { color: var(--teal); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-ink-soft { color: var(--ink-soft); }
.bg-primary { background: var(--primary); color: var(--primary-fg); }
.bg-navy { background: var(--navy); color: var(--navy-fg); }
.bg-teal { background: var(--teal); color: var(--teal-fg); }
.bg-cream { background: var(--cream); }

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--primary-fg);
  padding: 10px 16px; border-radius: 8px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================================
   Header
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
@media (min-width: 768px) { .site-header__bar { height: 68px; } }
.site-logo-link { display: inline-flex; color: inherit; }
.site-logo-link:hover { text-decoration: none; }
 .site-logo { --logo-accent: #d01224; --logo-dot: #ff8190; --logo-highlight: rgba(208,18,36,.95); --logo-word: var(--ink); --logo-tagline: var(--muted); display: inline-flex; align-items: center; gap: 12px; width: 190px; min-height: 54px; color: var(--logo-word); }
.site-logo--footer { --logo-accent: #d01224; --logo-dot: #ff8190; --logo-highlight: rgba(208,18,36,.95); --logo-word: #fff; --logo-tagline: rgba(255,255,255,.62); width: 200px; min-height: 58px; gap: 14px; }
.site-logo__mark { position: relative; display: block; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; border-radius: 12px; color: var(--logo-accent); animation: logoMarkIn 500ms var(--ease-out) both; }
.site-logo--footer .site-logo__mark { width: 58px; height: 58px; flex-basis: 58px; }
.site-logo__mark::after { content: ""; position: absolute; inset: -25% auto -25% -30%; width: 2px; background: var(--logo-dot); pointer-events: none; transform: translateX(-8px); animation: logoMarkLine 1.1s var(--ease-out) 420ms both; }
.site-logo--footer .site-logo__mark::after { background: #ff8190; }
.site-logo__mark svg { display: block; width: 100%; height: 100%; }
.site-logo__mark-bg { fill: currentColor; }
.site-logo__bar { fill: #f3f6fa; transform-box: fill-box; transform-origin: center bottom; animation: logoBarRise 600ms var(--ease-out) both; }
.site-logo__bar:nth-of-type(2) { animation-delay: 120ms; }
 .site-logo__bar:nth-of-type(3) { animation-delay: 220ms; }
 .site-logo__bar:nth-of-type(4) { animation-delay: 320ms; }
.site-logo__dot { fill: var(--logo-dot); transform-box: fill-box; transform-origin: center; animation: logoDotPop 500ms var(--ease-out) 300ms both; }
.site-logo__copy { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; line-height: 1; animation: logoCopyIn 650ms var(--ease-out) 520ms both; }
.site-logo__copy::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; z-index: 2; width: 2px; background: var(--logo-dot); pointer-events: none; animation: logoTypeLine 5.8s ease-in-out 1.25s infinite alternate both; }
.site-logo--footer .site-logo__copy::before { background: #ff8190; }
.site-logo__wordmark { position: relative; z-index: 0; display: flex; align-self: flex-start; color: var(--logo-word); font-family: var(--font-sans); font-size: 19px; line-height: 1.05; font-weight: 700; letter-spacing: -0.045em; white-space: nowrap; background-image: linear-gradient(var(--logo-highlight),var(--logo-highlight)); background-repeat: no-repeat; background-position: 0 0; background-size: 0 100%; animation: logoWordHighlight 5.8s ease-in-out 1.25s infinite; }
.site-logo__letter { display: inline-block; opacity: 0; transform: translateY(5px); animation: logoLetterIn 420ms var(--ease-out) both; }
.site-logo__letter:nth-child(1) { animation-delay: 820ms; }
.site-logo__letter:nth-child(2) { animation-delay: 870ms; }
.site-logo__letter:nth-child(3) { animation-delay: 920ms; }
.site-logo__letter:nth-child(4) { animation-delay: 970ms; }
.site-logo__letter:nth-child(5) { animation-delay: 1020ms; }
.site-logo__letter:nth-child(6) { animation-delay: 1070ms; }
.site-logo__letter:nth-child(7) { animation-delay: 1120ms; }
.site-logo__letter:nth-child(8) { animation-delay: 1170ms; }
.site-logo--footer .site-logo__wordmark { font-size: 21px; }
.site-logo__tagline { position: relative; z-index: 0; align-self: flex-start; margin-top: 4px; color: var(--logo-tagline); font-family: var(--font-sans); font-size: 9.5px; line-height: 1; font-weight: 500; letter-spacing: -0.015em; white-space: nowrap; background-image: linear-gradient(var(--logo-highlight),var(--logo-highlight)); background-repeat: no-repeat; background-position: 0 0; background-size: 0 100%; animation: logoTaglineHighlight 5.8s ease-in-out 1.25s infinite; }

.site-nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a, .site-nav .nav-item {
  padding: 0 12px; height: 44px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.site-nav a:hover, .site-nav .nav-item:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.site-nav .icon-sm { width: 14px; height: 14px; }
.site-nav a.current { color: var(--primary); }

.site-header__cta { display: none; }
.site-header__cta.btn { min-height: 36px; padding: 0 14px; border-radius: 4px; font-size: 12px; font-weight: 500; }
@media (min-width: 768px) { .site-header__cta { display: inline-flex; } }

.menu-toggle { background: transparent; border: 0; padding: 8px; border-radius: 8px; color: var(--ink); }
.menu-toggle:hover { background: var(--cream); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile drawer */
.mobile-drawer { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 100; padding: 20px; overflow: auto; }
.mobile-drawer.is-open { display: block; }
.mobile-drawer__top { display: flex; justify-content: flex-end; align-items: center; height: 64px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.mobile-drawer nav a { padding: 14px 12px; font-size: 18px; font-weight: 500; color: var(--ink); border-radius: 10px; }
.mobile-drawer nav a:hover { background: var(--cream); text-decoration: none; }
.mobile-drawer__foot { margin-top: 24px; }
.mobile-services { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 0 0 8px 12px; }
.mobile-services a { color: var(--muted); font-size: 14px; padding: 8px 12px; }

/* Mega menu */
.mega-wrap { position: relative; }
.mega {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(4px);
  width: 540px; max-width: 92vw; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-border-hover);
  display: none; z-index: 60;
}
.mega-wrap:hover .mega, .mega-wrap:focus-within .mega { display: block; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega a { padding: 10px 12px; border-radius: 8px; display: block; font-size: 14px; }
.mega a span { display: block; font-weight: 500; color: var(--ink); }
.mega a:hover { background: var(--cream); text-decoration: none; }
.mega a small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 150ms;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: #b80e1f; }
.btn--teal { background: var(--teal); color: var(--teal-fg); }
.btn--teal:hover { background: #056675; }
.btn--navy { background: var(--navy); color: var(--navy-fg); }
.btn--navy:hover { background: #091b32; }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: #252830; }
.btn--inverse { background: #fff; color: var(--ink); }
.btn--inverse:hover { background: rgba(255,255,255,.92); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--cream); }
.btn--lg { min-height: 48px; padding: 0 28px; font-size: 14px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 64px 0 80px; }
@media (min-width: 768px) { .hero { padding: 96px 0 95px; } h2 { line-height: 40px; } }
.hero__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
  .hero__grid > div { grid-column: span 7; }
  .hero__grid > aside { grid-column: span 5; }
  .hero h1 { font-size: 72px; line-height: .98; }
}
.hero__rule { display: block; height: 4px; width: 96px; border-radius: 4px; background: var(--primary); margin: 20px 0 20px; transform-origin: left; animation: ruleGrow 700ms var(--ease-out) both; }
.hero h1 { margin: 0 0 24px; }
.hero__rotating-word { position: relative; display: inline-block; min-width: 0; width: var(--magtimes-word-width, 5.3ch); height: 1.05em; vertical-align: baseline; }
.hero__rotating-word-item { position: absolute; top: 0; left: 0; white-space: nowrap; opacity: 0; transform: translateY(.28em); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.hero__rotating-word-item.is-active { opacity: 1; transform: translateY(0); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 36rem; margin: 0 0 32px; }
@media (min-width: 768px) { .hero p.lead { font-size: 20px; line-height: 28px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats */
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--navy);
  border-radius: var(--radius-md); overflow: hidden;
}
.stats__cell { --stats-delay: 0ms; padding: 28px 20px; color: #fff; }
.stats__cell--accent { background: var(--primary); }
.stats__value { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 36px; animation: statValueIn 650ms var(--ease-out) calc(240ms + var(--stats-delay)) both; }
.stats__label { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.8; animation: statLabelIn 500ms var(--ease-out) calc(360ms + var(--stats-delay)) both; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 12px 0; }
.marquee__track { display: flex; gap: 40px; animation: marquee 42s linear infinite; white-space: nowrap; }
.marquee__item { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.8; flex-shrink: 0; }
.marquee__sep { opacity: 0.5; }

/* ============================================================
   Service cards
   ============================================================ */
.services { padding: 80px 0; background: var(--cream); }
@media (min-width: 768px) { .services { padding: 96px 0; } }
.services__grid { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-border); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  display: flex; flex-direction: column; min-height: 228px;
  border: 0;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-border-hover); text-decoration: none; }
.service-card__plate {
  width: 40px; height: 40px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0; color: #fff; flex-shrink: 0;
}
.service-card__plate .icon-lg { width: 20px; height: 20px; }
.service-card__plate--primary { background: var(--primary); }
.service-card__plate--teal { background: var(--teal); }
.service-card__plate--navy { background: var(--navy); }
.service-card__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; margin: 16px 0 0; flex: 0 0 auto !important; }
.service-card h3 { font-size: 20px; line-height: 28px; margin: 8px 0 0; }
.service-card > p:not(.service-card__kicker) { color: var(--muted); font-size: 14px; line-height: 20px; margin: 8px 0 0; flex: 1; }
.service-card__more { margin-top: 16px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.service-single-hero { background: var(--cream); }
.service-single-hero h1 { max-width: 54rem; }
.service-single-hero .lead { max-width: 48rem; }
.service-audience { max-width: 42rem; margin: 20px 0 0; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.service-copy-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .service-copy-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 96px; } }
.service-copy { max-width: 48rem; }
.service-copy p { color: var(--ink-soft); font-size: 18px; line-height: 30px; }
.service-copy .btn { margin-top: 16px; }
.service-deliverables { align-self: start; padding: 24px; background: var(--cream); border-radius: var(--radius-md); }
.service-deliverables ul { list-style: none; margin: 0; padding: 0; }
.service-deliverables li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; line-height: 22px; }
.service-deliverables li:first-child { border-top: 0; padding-top: 0; }
.service-method h2 { margin-top: 8px; }
.service-method-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 768px) { .service-method-grid { grid-template-columns: repeat(4, 1fr); } }
.service-method-step { padding: 20px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-border); }
.service-method-step > span { color: var(--primary); font-family: var(--font-display); font-size: 24px; }
.service-method-step h3 { margin: 12px 0 0; }
.service-method-step p { color: var(--muted); font-size: 14px; line-height: 23px; margin: 8px 0 0; }
.service-leads-grid { margin-top: 24px; }
.service-related .work__grid { margin-top: 24px; }
.service-other-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ============================================================
   AI Rank Method
   ============================================================ */
.ai-method { background: var(--teal); color: #fff; padding: 80px 0; }
.ai-method h2 { color: #fff; }
.ai-method .kicker { color: rgba(255,255,255,.85); }
.ai-method__steps { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ai-method__steps { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.ai-step { padding: 22px 20px; border-radius: var(--radius-md); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.ai-step__n { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ai-step h4 { font-size: 16px; color: #fff; margin: 6px 0 4px; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.ai-step p { font-size: 13.5px; margin: 0; opacity: 0.9; line-height: 1.5; }

/* ============================================================
   Standards / principles (navy band)
   ============================================================ */
.standards { background: var(--navy); color: #fff; padding: 80px 0; }
@media (min-width: 768px) { .standards { padding: 96px 0; } }
.standards h2 { color: #fff; }
.standards .kicker { color: rgba(255,255,255,.7); }
.principles { display: grid; gap: 1px; margin-top: 40px; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.1); grid-template-columns: 1fr; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle { background: var(--navy); padding: 24px; }
@media (min-width: 768px) { .principle { padding: 32px; } }
.principle h3 { color: #fff; font-family: var(--font-display); font-size: 20px; line-height: 28px; margin: 0; }
.principle p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 24px; margin: 8px 0 0; }
.principles--light { background: var(--line); }
.principles--light .principle { background: #fff; color: var(--ink); }
.principles--light .principle h3 { color: var(--ink); }
.principles--light .principle p { color: var(--muted); }

/* ============================================================
   Selected work
   ============================================================ */
.work { padding: 80px 0; }
@media (min-width: 768px) { .work { padding: 96px 0; } }
.work__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .work__grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; } }
.case-card { background: var(--surface); border: 0; border-radius: var(--radius-md); padding: 24px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); box-shadow: var(--shadow-border); }
@media (min-width: 768px) { .case-card { padding: 32px; } }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-border-hover); text-decoration: none; }
.case-card .kicker { color: var(--muted); margin: 0; letter-spacing: 0.16em; }
.case-card h3 { font-size: 24px; line-height: 32px; margin: 12px 0 0; }
.case-card > p:not(.kicker) { color: var(--muted); font-size: 14px; line-height: 24px; margin: 12px 0 0; }
.case-card__metrics { display: flex; gap: 24px; margin-top: 24px; }
.case-card__result { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 600; color: var(--teal); letter-spacing: -0.025em; margin: 0; }
.case-card__metric-label { color: var(--muted); font-size: 12px; line-height: 16px; margin: 0; }

/* ============================================================
   How we work
   ============================================================ */
.process { padding: 80px 0; background: var(--cream); }
@media (min-width: 768px) { .process { padding: 96px 0; } }
.process__steps { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .process__steps { grid-template-columns: repeat(4, 1fr); } }
.process-step { background: #fff; border-radius: var(--radius-md); padding: 20px; border: 0; box-shadow: var(--shadow-border); }
.process-step__n { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 600; color: var(--primary); }
.process-step h3 { font-size: 20px; line-height: 28px; margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; }
.process-step p { color: var(--muted); font-size: 14px; line-height: 24px; margin: 8px 0 0; }

/* ============================================================
   Team
   ============================================================ */
.team { padding: 80px 0; }
@media (min-width: 768px) { .team { padding: 96px 0; } }
 .team__intro { display: grid; gap: 32px; align-items: start; }
 @media (min-width: 1024px) { .team__intro { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: stretch; } .team__intro > .founder-card { grid-column: span 5; } .team__intro > .team__context { grid-column: span 7; } }
  .founder-card { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 40px; text-align: center; }
  .founder-card--featured::before { content: ""; position: absolute; inset: -16px; z-index: -2; background: var(--founder-photo) center 22% / cover no-repeat; filter: blur(12px); transform: scale(1.08); opacity: .62; }
  .founder-card--featured::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,24,48,.42) 0%, rgba(7,24,48,.78) 55%, rgba(7,24,48,.96) 100%); }
  .founder-card--featured > * { position: relative; z-index: 1; }
  .founder-card--featured .founder-card__avatar { position: relative; width: 168px; height: 168px; overflow: hidden; display: inline-flex; border: 4px solid rgba(255,255,255,.78); box-shadow: 0 0 0 8px rgba(208,18,36,.28), 0 18px 40px rgba(0,0,0,.3); animation: founderPortraitIn 800ms var(--ease-out) both; }
  .founder-card--featured .founder-card__avatar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.42) 48%, transparent 66%); transform: translateX(-120%); animation: founderPortraitSheen 6s ease-in-out 1.25s infinite; }
  .founder-card--featured .founder-card__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform 500ms var(--ease-out), filter 500ms var(--ease-out); }
  .founder-card--featured:hover .founder-card__avatar img, .founder-card--featured:focus-within .founder-card__avatar img { transform: scale(1.06); filter: saturate(1.08) contrast(1.04); }
  .founder-card__avatar { width: 128px; height: 128px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-size: 36px; font-weight: 600; border: 3px solid var(--teal); margin: 0 auto 24px; }
 .founder-card__role { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 600; }
 .founder-card__name { color: var(--teal); font-size: 18px; line-height: 28px; font-weight: 600; margin: 4px 0 0; font-family: var(--font-sans); }
 .founder-card p { color: rgba(255,255,255,.75); font-size: 14px; line-height: 24px; margin: 20px auto 0; max-width: 24rem; }
  .founder-card__socials { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
  .founder-card__socials a { width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
  .founder-card__socials a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
  .founder-card__details { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out); }
  .founder-card__details:hover, .founder-card__details:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; text-decoration: none; transform: translateY(-2px); }

  .team__context { display: block; }
 .team__context h2 { font-size: 48px; line-height: 50.4px; margin: 12px 0 0; }
 .team__context p.text-muted { font-size: 16px !important; line-height: 24.8px; margin-top: 16px; }
 .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
 .fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
 .fact h4 { font-family: var(--font-display); font-size: 18px; line-height: 28px; margin: 0; font-weight: 600; letter-spacing: -0.025em; }
 .fact p { color: var(--muted); font-size: 14px; line-height: 24px; margin: 8px 0 0; }

   .team-grid { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .team-grid { grid-template-columns: 1fr 1fr; } }
  .team-grid--large { gap: 16px; }
    .team-grid--featured .author-card { min-height: 360px; padding: 32px 32px 28px; gap: 0; align-items: center; flex-direction: column; background: var(--navy); color: #fff; border-radius: var(--radius-lg); text-align: center; }
   .team-grid--featured .author-card__avatar { width: 112px; height: 112px; flex-basis: 112px; border-radius: 999px; background: rgba(255,255,255,.08); border: 3px solid var(--teal); color: #fff; font-family: var(--font-display); font-size: 32px; margin: 0 auto 20px; }
   .team-grid--featured .author-card__body { display: flex; flex-direction: column; align-items: center; }
   .team-grid--featured .author-card__role { color: rgba(255,255,255,.66) !important; font-family: var(--font-display); font-size: 18px; line-height: 26px; font-weight: 600; text-transform: none; }
   .team-grid--featured .author-card h4 { color: var(--teal); font-size: 28px; line-height: 34px; margin-top: 4px; }
    .team-grid--featured .author-card__description { color: rgba(255,255,255,.75); font-size: 14px; line-height: 24px; margin: 16px auto 0; max-width: 28rem; }
    .team-grid--featured .author-card__hint { top: auto; right: 24px; bottom: 22px; color: var(--teal); }
    .team-grid--featured .author-card--with-photo { isolation: isolate; }
    .team-grid--featured .author-card--with-photo::before { content: ""; position: absolute; inset: -18px; z-index: -2; background: var(--author-photo) center 18% / cover no-repeat; filter: blur(14px); transform: scale(1.08); opacity: .6; }
    .team-grid--featured .author-card--with-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,24,48,.38) 0%, rgba(7,24,48,.76) 58%, rgba(7,24,48,.96) 100%); }
    .team-grid--featured .author-card--with-photo > * { position: relative; z-index: 1; }
    .team-grid--featured .author-card--with-photo .author-card__avatar { position: relative; overflow: hidden; box-shadow: 0 0 0 6px rgba(208,18,36,.24), 0 16px 34px rgba(0,0,0,.28); animation: founderPortraitIn 800ms var(--ease-out) both; }
    .team-grid--featured .author-card--with-photo .author-card__avatar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.42) 48%, transparent 66%); transform: translateX(-120%); animation: founderPortraitSheen 6s ease-in-out 1.25s infinite; }
   .team-grid--authors { margin-top: 16px; }
   @media (min-width: 1024px) { .team-grid--authors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .team-grid--authors .author-card { min-height: 96px; padding: 16px 58px 16px 16px; }
  .team-grid--authors .author-card__avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 18px; }
  .team-grid__footer { display: flex; justify-content: flex-end; margin-top: 20px; }
 .author-card { position: relative; overflow: hidden; background: var(--surface); border: 0; border-radius: var(--radius-md); padding: 20px 58px 20px 20px; display: flex; gap: 18px; align-items: flex-start; text-align: left; min-height: 112px; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out); box-shadow: var(--shadow-border); }
 .author-card:hover, .author-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-border-hover); text-decoration: none; }
.author-card__avatar { width: 60px; height: 60px; border-radius: 10px; background: var(--cream); margin: 0; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); flex: 0 0 60px; }
.author-card__avatar img, .team-profile-card__avatar img, .team-single-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
 .author-card__body { min-width: 0; }
 .author-card h4 { font-family: var(--font-display); font-size: 18px; line-height: 28px; margin: 0; font-weight: 600; letter-spacing: -0.025em; }
 .author-card p { color: var(--muted); font-size: 14px; line-height: 20px; margin: 0; }
 .author-card__role { color: var(--ink-soft) !important; }
 .author-card__focus { font-size: 12px !important; line-height: 18px !important; margin-top: 4px !important; }
 .author-card__hint { position: absolute; top: 18px; right: 18px; color: var(--primary); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
 .author-card__hint span { font-size: 16px; line-height: 12px; margin-left: 2px; }
 .author-card:hover .author-card__hint, .author-card:focus-visible .author-card__hint { opacity: 1; transform: translateX(0); }
 @media (hover: none) { .author-card__hint { opacity: 1; transform: none; } }
@media (max-width: 639px) {
      .site-logo { width: 184px; min-height: 48px; gap: 10px; }
      .site-logo__mark { width: 48px; height: 48px; flex-basis: 48px; border-radius: 11px; }
      .site-logo__wordmark { font-size: 18px; }
      .site-logo__tagline { font-size: 8.8px; }
      .founder-card { grid-template-columns: 1fr; gap: 20px; padding: 36px 24px; text-align: center; }
     .founder-card__avatar { margin: 0 auto; }
     .founder-card__name { font-size: 34px; line-height: 38px; }
      .founder-card p { margin-right: auto; margin-left: auto; }
      .founder-card__socials { flex-direction: row; }
      .team__context h2 { font-size: 36px; line-height: 40px; }
      .facts { grid-template-columns: 1fr; }
      .team-grid__footer { justify-content: flex-start; }
  }

 .team-profile-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .team-profile-grid { grid-template-columns: 1fr 1fr; } }
.team-profile-card { display: grid; gap: 20px; grid-template-columns: 1fr; background: var(--surface); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-border); transition: box-shadow 200ms var(--ease-out); }
@media (min-width: 640px) { .team-profile-card { grid-template-columns: 8rem 1fr; align-items: center; min-height: 212px; } }
.team-profile-card:hover { box-shadow: var(--shadow-border-hover); text-decoration: none; }
.team-profile-card__avatar { position: relative; display: grid; place-items: center; width: 80px; height: 80px; overflow: hidden; border-radius: 8px; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
@media (min-width: 640px) { .team-profile-card__avatar { width: 8rem; height: 8rem; } }
.team-profile-card__avatar i { position: absolute; inset: 12px; border: 1px solid currentColor; opacity: .15; }
.team-profile-card__avatar b { position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: currentColor; opacity: .2; }
.team-profile-card__avatar--navy { background: var(--navy); color: #fff; }
.team-profile-card__avatar--primary { background: var(--primary); color: #fff; }
.team-profile-card__avatar--ink { background: var(--ink); color: #fff; }
.team-profile-card__avatar--cream { background: var(--cream); color: var(--ink); border: 1px solid var(--border); }
.team-profile-card__avatar:has(img) { padding: 0; }
.team-profile-card__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.team-profile-card__body .kicker { margin: 0; }
.team-profile-card__body h2 { font-size: 24px; line-height: 32px; margin: 4px 0 0; }
.team-profile-card__role { color: var(--muted); font-size: 14px; margin: 0; }
.team-profile-card__description { color: var(--ink-soft); font-size: 14px; line-height: 24px; margin: 12px 0 0; }
.team-profile-card__meta { color: var(--muted); font-size: 12px; line-height: 16px; margin: 12px 0 0; }

.team-single-hero { background: var(--cream); }
.team-single-hero--with-photo { position: relative; isolation: isolate; overflow: hidden; }
.team-single-hero--with-photo::before { content: ""; position: absolute; inset: -24px; z-index: -2; background: var(--team-photo) center 18% / cover no-repeat; filter: blur(18px); transform: scale(1.08); opacity: .34; }
.team-single-hero--with-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,250,240,.62); }
.team-single-hero--with-photo > .container { position: relative; z-index: 1; }
.team-single-hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) { .team-single-hero__grid { grid-template-columns: 9rem 1fr; gap: 48px; } }
.team-single-avatar { width: 9rem; height: 9rem; display: grid; place-items: center; border-radius: var(--radius-md); font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.04em; }
.team-single-avatar--navy { background: var(--navy); color: #fff; }
.team-single-avatar--primary { background: var(--primary); color: #fff; }
.team-single-avatar--ink { background: var(--ink); color: #fff; }
.team-single-avatar--cream { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.team-single-avatar:has(img) { overflow: hidden; padding: 0; border-radius: 999px; border: 3px solid var(--primary); box-shadow: 0 0 0 7px rgba(208,18,36,.16), 0 18px 38px rgba(7,24,48,.18); }
.team-single-hero h1 { margin-bottom: 8px; }
.team-single-role { font-family: var(--font-display); font-size: 24px; line-height: 32px; margin: 0 0 16px; }
.team-single-hero .lead { max-width: 48rem; margin-bottom: 24px; }
.team-email { display: inline-block; margin-left: 16px; color: var(--muted); font-size: 14px; }
@media (max-width: 639px) { .team-email { display: block; margin: 16px 0 0; } }
.team-single-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .team-single-grid { grid-template-columns: minmax(0, 1fr) 18rem; gap: 96px; } }
.team-bio { max-width: 48rem; }
.team-bio .kicker { margin-bottom: 24px; }
.team-bio p { color: var(--ink-soft); font-size: 18px; line-height: 30px; }
.team-bio blockquote { margin: 32px 0 0; }
.team-facts { border-top: 1px solid var(--border); }
.team-fact-block { padding: 20px 0; border-bottom: 1px solid var(--border); }
.team-fact-block ul { list-style: none; padding: 0; margin: 0; }
.team-fact-block li { color: var(--ink-soft); font-size: 14px; line-height: 24px; }
.team-fact-block a { color: var(--ink-soft); }
.team-years { display: flex; align-items: baseline; gap: 8px; padding-top: 24px; }
.team-years strong { font-family: var(--font-display); font-size: 30px; line-height: 36px; }
.team-years span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.team-campaign-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .team-campaign-grid { grid-template-columns: repeat(3, 1fr); } }
.team-campaign { padding: 24px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-border); }
.team-campaign h3 { margin: 0; }
.team-campaign p { color: var(--muted); font-size: 14px; line-height: 24px; margin: 12px 0 0; }
.team-masthead { background: var(--cream); }
.team-masthead .team-grid { margin-top: 24px; }
.author-card strong, .author-card small { display: block; }
.author-card strong { font-family: var(--font-display); font-size: 18px; line-height: 24px; }
.author-card small { color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 2px; }

/* ============================================================
   News cards
   ============================================================ */
.news-strip { padding: 80px 0; }
@media (min-width: 768px) { .news-strip { padding: 96px 0; } }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading h2 { max-width: 36rem; margin: 12px 0 0; }
.news-strip .section-heading h2 { max-width: none; }
.section-heading > .btn { display: none; min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 500; }
@media (min-width: 640px) { .section-heading > .btn { display: inline-flex; } }
.news-grid { display: grid; gap: 24px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { background: var(--surface); border: 0; border-radius: var(--radius-lg); overflow: hidden; transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); display: flex; flex-direction: column; min-height: 228px; box-shadow: var(--shadow-border); padding: 20px; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-border-hover); text-decoration: none; }
.news-card__media { aspect-ratio: 16/9; background: var(--cream); display: block; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; outline: none; }
.news-card__body { padding: 0; flex: 1; display: flex; flex-direction: column; }
.news-card .kicker { margin: 0; font-size: 12px; line-height: 16px; letter-spacing: 0.16em; }
.news-card h3 { font-size: 20px; line-height: 28px; margin: 12px 0 0; }
.news-card > .news-card__body > p:not(.kicker) { color: var(--muted); font-size: 14px; line-height: 20px; margin: 8px 0 0; flex: 1; }
.news-card__meta { color: var(--muted); font-size: 12px; line-height: 16px; margin-top: 20px; }
.news-card__body > span:not(.kicker) { color: var(--muted); font-size: 14px; line-height: 22px; margin-top: 8px; }
.news-card--editorial::before { content: ''; display: block; aspect-ratio: 16 / 9; margin-bottom: 20px; border-radius: var(--radius-md); background: var(--navy) center / cover no-repeat; flex: 0 0 auto; }
.news-card--editorial[href*='ai-overviews-and-the-death-of-the-ten-blue-links']::before { background-image: url('https://magtimes.net/wp-content/uploads/2026/09/magtimes-article-ai-overviews.png'); }
.news-card--editorial[href*='digital-pr-is-not-a-guest-post-with-better-lighting']::before { background-image: url('https://magtimes.net/wp-content/uploads/2026/09/magtimes-article-digital-pr.png'); }
.news-card--editorial[href*='the-saas-page-sales-will-actually-send']::before { background-image: url('https://magtimes.net/wp-content/uploads/2026/09/magtimes-article-saas.png'); }
.blog-card__media { display: block; min-height: 0; padding: 0; overflow: hidden; background: var(--navy); color: #fff; }
.blog-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card__media > span { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.blog-archive__grid .news-card { min-height: 100%; }
.blog-hero { background: var(--cream); }
.blog-hero h1 { max-width: 54rem; }
.blog-archive { padding-top: 80px; }
.blog-archive .archive__head h2 { margin: 10px 0 0; }
.blog-archive .archive__head > p { max-width: 18rem; margin: 0; font-size: 14px; }
.news-mobile-all { display: none; }
@media (max-width: 639px) {
  .news-mobile-all { display: inline-flex; margin-top: 32px; }
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--primary); color: #fff; padding: 64px 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; margin: 0; font-size: 36px; line-height: 40px; max-width: 36rem; }
.cta-band p { margin: 12px 0 0; color: rgba(255,255,255,.85); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: #fff; padding: 80px 0 0; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; padding-bottom: 80px; } .site-footer__grid > :nth-child(1) { grid-column: span 4; } .site-footer__grid > :nth-child(2) { grid-column: span 3; } .site-footer__grid > :nth-child(3) { grid-column: span 2; } .site-footer__grid > :nth-child(4) { grid-column: span 3; } }
.site-footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; margin: 0 0 14px; color: rgba(255,255,255,.6); font-family: var(--font-sans); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.82); font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 24px; max-width: 22rem; margin: 20px 0 0; }
.site-footer__brand p + p { color: rgba(255,255,255,.55); margin-top: 16px; }
.site-footer__social { display: flex; gap: 8px; margin-top: 20px; }
.site-footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.82) !important; background: rgba(255,255,255,.04); }
.site-footer__social-link:hover { color: #fff !important; background: rgba(255,255,255,.12); text-decoration: none !important; }
.site-footer__social-link .icon { width: 16px; height: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bottom > .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; font-size: 12px; line-height: 16px; color: rgba(255,255,255,.45); }
.site-footer__bottom span:last-child { display: flex; gap: 16px; }
.site-footer__bottom a { color: rgba(255,255,255,.45); font-size: 12px; }

/* ============================================================
   Page hero
   ============================================================ */
.page-hero { border-bottom: 1px solid var(--border); padding: 64px 0 56px; }
@media (min-width: 768px) { .page-hero { padding: 80px 0 72px; } }
.page-hero h1 { margin: 0 0 16px; max-width: 48rem; }
.page-hero p.lead { font-size: 18px; color: var(--muted); max-width: 36rem; margin: 0; }
@media (min-width: 768px) { .page-hero p.lead { font-size: 20px; } }

/* ============================================================
   Single content
   ============================================================ */
.single-content { padding: 64px 0 96px; }
.single-content .article-body { max-width: 44rem; margin: 0 auto; }
.article-body p, .article-body li { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.4rem; line-height: 0.8;
  float: left; padding: 0.12em 0.12em 0 0; color: var(--primary); font-weight: 600;
}
.article-body h2 { margin-top: 2em; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 4px solid var(--primary); padding: 8px 0 8px 20px; margin: 24px 0; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.article-body pre, .article-body code { font-family: var(--font-mono); font-size: 14px; }
.article-body pre { background: var(--cream); padding: 18px; border-radius: var(--radius-md); overflow: auto; }

/* Contact */
.contact-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; } }
.contact-details { padding: 8px 0; }
.contact-details h2 { margin: 12px 0 32px; }
.contact-details dl { margin: 0; }
.contact-details dl > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.contact-details dt { color: var(--muted); font-size: 14px; }
.contact-details dd { margin: 0; font-size: 14px; }
.contact-details > p:last-child { color: var(--muted); font-size: 14px; line-height: 24px; margin-top: 32px; }
.contact-form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-border); }
@media (min-width: 768px) { .contact-form-card { padding: 32px; } }
.contact-form-card .form { max-width: none; }
@media (min-width: 640px) { .contact-form-card .form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .contact-form-card .form > .field:nth-of-type(7), .contact-form-card .form > button { grid-column: 1 / -1; } }
.contact-layout > .cta-band { grid-column: 1 / -1; }

.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.entry-meta span + span::before { content: " · "; margin: 0 4px; }
.article-hero { background: var(--cream); }
.article-hero__inner { max-width: 56rem; }
.article-hero h1 { max-width: 52rem; }
.article-hero .lead { max-width: 46rem; margin-bottom: 24px; }
.article-hero .entry-meta { margin: 0; }
.article-hero__image { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-border); }
.article-hero__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-page { padding-top: 80px; }
.article-page .article-body { max-width: 48rem; }
.article-page .article-body h2 { font-size: 30px; line-height: 36px; }
.case-hero { background: var(--cream); }
.case-hero h1 { max-width: 54rem; }
.case-hero .lead { max-width: 48rem; }
.case-detail-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-width: 48rem; margin-top: 40px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 640px) { .case-detail-metrics { grid-template-columns: repeat(3, 1fr); } }
.case-detail-metrics > div { background: #fff; padding: 20px; }
.case-detail-metrics strong { display: block; color: var(--teal); font-family: var(--font-display); font-size: 30px; line-height: 36px; }
.case-detail-metrics span { display: block; color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 4px; }
.mission-subhead { margin-top: 48px !important; }
.legal-page { padding-top: 64px; }
.legal-page .article-body { max-width: 48rem; }
.legal-page .article-body h2 { font-size: 28px; line-height: 34px; }
.legal-updated { color: var(--muted) !important; font-size: 14px !important; }
.kit-steps { padding-left: 24px; color: var(--ink-soft); }
.kit-steps li { margin: 12px 0; font-size: 18px; line-height: 30px; }

/* ============================================================
   Archive
   ============================================================ */
section.archive { padding: 64px 0 96px; }
.archive__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.archive__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .archive__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .archive__grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ============================================================
   Forms
   ============================================================ */
.form { max-width: 36rem; }
.field { display: block; margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.field textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   Footer of single
   ============================================================ */
.comments-area { max-width: 44rem; margin: 48px auto 0; }
.comments-area ol { list-style: none; padding: 0; }
.comments-area li.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }

/* Tools */
.tools-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
.tool-card { background: var(--surface); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-border); }
@media (min-width: 768px) { .tool-card { padding: 24px; } }
.tool-card h2, .tool-card h3 { margin-top: 0; }
.tool-stack { margin-top: 20px; }
.tool-meta { color: var(--muted); font-size: 12px; line-height: 16px; margin: 4px 0 0; }
.tool-preview { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; margin-top: 16px; }
.tool-preview p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.tool-preview p + p { margin-top: 4px; }
.tool-preview p:first-child { color: var(--muted); font-size: 14px; }
.tool-preview p:nth-child(2) { color: var(--primary); font-size: 18px; line-height: 24px; }
.tool-preview p:last-child { color: var(--muted); font-size: 14px; }
.tool-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--cream); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.tool-metrics p { font-family: var(--font-display); font-size: 24px; line-height: 32px; margin: 0; }
.tool-metrics span { color: var(--muted); font-size: 12px; line-height: 16px; }
.tool-slug { background: var(--cream); border-radius: var(--radius-sm); padding: 12px; color: var(--ink); font-family: var(--font-mono); font-size: 14px; line-height: 20px; margin: 16px 0 0; overflow-wrap: anywhere; }

/* Publisher network */
.network-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border-radius: var(--radius-md); background: var(--navy); }
@media (min-width: 768px) { .network-stats { grid-template-columns: repeat(4, 1fr); } }
.network-stats > div { background: var(--navy); color: #fff; padding: 24px 20px; }
.network-stats > div:first-child { background: var(--teal); }
.network-stats strong { display: block; font-family: var(--font-display); font-size: 32px; line-height: 40px; }
.network-stats span { display: block; margin-top: 4px; font-size: 11px; line-height: 16px; text-transform: uppercase; letter-spacing: .14em; opacity: .8; }
.network-note { max-width: 52rem; color: var(--muted); font-size: 13px; line-height: 20px; margin: 20px 0 0; }
.network-tiers { display: grid; gap: 1px; margin-top: 32px; overflow: hidden; border-radius: var(--radius-md); background: var(--line); }
@media (min-width: 768px) { .network-tiers { grid-template-columns: repeat(3, 1fr); } }
.network-tiers > div { background: #fff; padding: 24px; }
@media (min-width: 768px) { .network-tiers > div { padding: 32px; } }
.network-tiers h2 { font-size: 24px; line-height: 32px; margin: 0; }
.network-tiers p { color: var(--muted); font-size: 14px; line-height: 24px; margin: 12px 0 0; }
.network-verticals { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .network-verticals { grid-template-columns: 1fr 1fr; } }
.network-verticals > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.network-verticals h3 { font-size: 18px; line-height: 28px; margin: 0; }
.network-verticals p { color: var(--muted); font-size: 14px; line-height: 20px; margin: 8px 0 0; }
.network-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.network-tags span { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: 12px; line-height: 16px; }
.network-shortlist { margin-top: 24px; }

/* ============================================================
   Utilities
   ============================================================ */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); border: 0; margin: 48px 0; }

/* Animations */
@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes logoMarkIn { from { opacity: 0; transform: translateY(5px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes logoBarRise { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes logoDotPop { from { opacity: 0; transform: scale(0); } 70% { transform: scale(1.16); } to { opacity: 1; transform: scale(1); } }
@keyframes logoMarkLine { from { opacity: 0; transform: translateX(-8px); } 25% { opacity: 1; } to { opacity: 0; transform: translateX(128px); } }
@keyframes logoCopyIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes logoLetterIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logoTypeLine { from { opacity: .62; transform: translateX(0); } to { opacity: .62; transform: translateX(112px); } }
@keyframes logoWordHighlight { 0%, 22% { background-size: 0 100%; } 30% { background-size: 100% 100%; } 43% { background-size: 100% 100%; } 51%, 100% { background-size: 0 100%; } }
@keyframes logoTaglineHighlight { 0%, 45% { background-size: 0 100%; } 54% { background-size: 100% 100%; } 78% { background-size: 100% 100%; } 90%, 100% { background-size: 0 100%; } }
@keyframes founderPortraitIn { from { opacity: 0; transform: translateY(14px) scale(.82); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes founderPortraitSheen { 0%, 12% { transform: translateX(-120%); } 32%, 46% { transform: translateX(120%); } 100% { transform: translateX(120%); } }
@keyframes statValueIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes statLabelIn { from { opacity: 0; transform: translateY(5px); } to { opacity: .8; transform: translateY(0); } }
.reveal { animation: revealUp 500ms var(--ease-out) both; }
.reveal-d1 { animation-delay: 80ms; }
.reveal-d2 { animation-delay: 160ms; }
.reveal-d3 { animation-delay: 240ms; }
.reveal-d4 { animation-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .reveal, .reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4, .hero__rule, .site-logo__mark, .site-logo__mark::after, .site-logo__bar, .site-logo__dot, .site-logo__copy, .site-logo__copy::before, .site-logo__letter, .site-logo__wordmark, .site-logo__tagline { animation: none !important; }
  .hero__rotating-word-item, .stats__value, .stats__label { animation: none !important; transition: none !important; }
  .hero__rotating-word-item:first-child { position: static; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Icons */
.icon { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.75; }
.icon-lg { width: 22px; height: 22px; }
.icon-sm { width: 16px; height: 16px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--ink); font-size: 14px; }
.pagination a:hover { background: var(--cream); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* WordPress alignment */
.alignwide { margin-left: calc(50% - 50vw + 16px); margin-right: calc(50% - 50vw + 16px); max-width: 100vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; padding: 6px 0; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sticky { }
.gallery-caption { }

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle, .mobile-drawer { display: none !important; }
}

/* Keep legacy page-builder typography from overriding the newsroom system. */
body:not(.wp-admin) { font-family: var(--font-sans) !important; color: var(--ink) !important; }
body:not(.wp-admin) h1,
body:not(.wp-admin) h2,
body:not(.wp-admin) h3,
body:not(.wp-admin) h4,
body:not(.wp-admin) h5,
  body:not(.wp-admin) h6 { font-family: var(--font-display) !important; letter-spacing: -0.025em !important; }
body:not(.wp-admin) a:not(.btn) { color: inherit; }

/* Services motion and desktop hero balance */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: 0; left: -25%; width: 35%; height: 3px; background: linear-gradient(90deg, transparent, var(--primary), var(--teal), transparent); opacity: .8; animation: pageHeroSweep 6s ease-in-out infinite; }
.page-hero .container { animation: revealUp 650ms var(--ease-out) both; }
.services__grid .service-card { animation: revealUp 600ms var(--ease-out) both; }
.services__grid .service-card:nth-child(1) { animation-delay: 100ms; }
.services__grid .service-card:nth-child(2) { animation-delay: 160ms; }
.services__grid .service-card:nth-child(3) { animation-delay: 220ms; }
.services__grid .service-card:nth-child(4) { animation-delay: 280ms; }
.services__grid .service-card:nth-child(5) { animation-delay: 340ms; }
.services__grid .service-card:nth-child(6) { animation-delay: 400ms; }
.services__grid .service-card:nth-child(7) { animation-delay: 460ms; }
.services__grid .service-card:nth-child(8) { animation-delay: 520ms; }
.services__grid .service-card:nth-child(9) { animation-delay: 580ms; }
.services__grid .service-card:nth-child(10) { animation-delay: 640ms; }
.services__grid .service-card:nth-child(11) { animation-delay: 700ms; }
.services__grid .service-card:nth-child(12) { animation-delay: 760ms; }
@keyframes pageHeroSweep { 0%, 100% { transform: translateX(0); opacity: 0; } 15% { opacity: .8; } 55% { transform: translateX(380%); opacity: .7; } 70% { opacity: 0; } }
@media (min-width: 1024px) { .hero__grid > aside { margin-bottom: 24px; } }
@media (max-width: 1023px) { .hero__grid > aside { margin-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .page-hero::before, .page-hero .container, .services__grid .service-card { animation: none !important; } }