
:root {
  color-scheme: light;
  --radius: 8px;
  --max: 1200px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; }
body, button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.1rem; }
.site-header, .nav, .hero, .section, .footer, .cta-band, .newsletter-band, .stack-band { width: 100%; }
.hero > *, .section > *, .hero-copy, .hero-panel, .signal-card, .service-card, .post-card, .case-card, .case-card > div, .featured-post, .category-rail, .article-body, .article-aside { min-width: 0; }
.theme-signal {
  --bg: #f7f8fb; --surface: #ffffff; --surface-2: #e9eef6; --text: #101827; --muted: #536071;
  --primary: #174ea6; --accent: #d71920; --accent-2: #00a3c7; --dark: #111827; --on-dark: #ffffff;
}
.theme-command {
  color-scheme: dark;
  --bg: #05080d; --surface: #0d141d; --surface-2: #152232; --text: #f7fafc; --muted: #a8b3c2;
  --primary: #28b7ff; --accent: #ffc247; --accent-2: #f06449; --dark: #020407; --on-dark: #f7fafc;
}
.theme-command[data-mode="light"] {
  color-scheme: light;
  --bg: #f4f8fb; --surface: #ffffff; --surface-2: #dce8f2; --text: #0d1724; --muted: #526273;
  --primary: #006fb9; --accent: #f5a000; --accent-2: #d8422f; --dark: #102033; --on-dark: #ffffff;
}
.theme-editorial {
  --bg: #f4f5f1; --surface: #ffffff; --surface-2: #dde7df; --text: #14211d; --muted: #5d6c66;
  --primary: #17624f; --accent: #e6533c; --accent-2: #2d5f9a; --dark: #0c1c18; --on-dark: #f8faf7;
}
.theme-route {
  color-scheme: dark;
  --bg: #03070c; --surface: #0a1119; --surface-2: #101d2a; --text: #f5fbff; --muted: #a4b8c8;
  --primary: #29c8ff; --accent: #ffbd4a; --accent-2: #35e2b2; --dark: #020407; --on-dark: #f8fbff;
}
.theme-route[data-mode="light"] {
  color-scheme: light;
  --bg: #f5f8fb; --surface: #ffffff; --surface-2: #e4edf4; --text: #111a24; --muted: #586b7a;
  --primary: #0076bd; --accent: #ee9900; --accent-2: #0f9977; --dark: #101f2d; --on-dark: #ffffff;
}
.theme-photo {
  --bg: #f7f8f7; --surface: #ffffff; --surface-2: #e7eceb; --text: #101716; --muted: #596866;
  --primary: #165e67; --accent: #d8a03a; --accent-2: #b74435; --dark: #0b1212; --on-dark: #f8fbfa;
}
.theme-flow {
  color-scheme: dark;
  --bg: #040712; --surface: #0b1020; --surface-2: #141b33; --text: #f7f9ff; --muted: #a7b1ca;
  --primary: #34d7ff; --accent: #ffb84d; --accent-2: #ef4b5b; --dark: #020410; --on-dark: #f8fbff;
}
.theme-flow[data-mode="light"] {
  color-scheme: light;
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #e6ebf4; --text: #111827; --muted: #5d6678;
  --primary: #006db3; --accent: #e89b20; --accent-2: #d63c4d; --dark: #111827; --on-dark: #ffffff;
}
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  backdrop-filter: blur(18px);
}
.signal-header { background: color-mix(in srgb, var(--surface) 96%, transparent); }
.command-header { background: color-mix(in srgb, var(--surface) 91%, transparent); }
.editorial-header { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.route-header, .flow-header { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.photo-header { background: color-mix(in srgb, var(--surface) 95%, transparent); }
.landing-header { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.editorial-header .nav { max-width: 1160px; }
.signal-header .nav { max-width: 1320px; }
.nav {
  max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 9px clamp(16px, 3vw, 34px);
}
.brand img { width: 116px; height: auto; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--muted); font-size: 1rem; }
.nav-links a { min-height: 34px; display: inline-flex; align-items: center; font-weight: 750; }
.nav-links a:hover { color: var(--primary); }
.language-link { color: var(--text) !important; font-weight: 900; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px;
  border-radius: var(--radius); background: var(--text); color: var(--bg); font-size: .88rem; font-weight: 900;
}
.nav-toggle, .mode-toggle {
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); background: var(--surface); color: var(--text);
  border-radius: var(--radius); min-height: 36px; padding: 7px 10px;
}
.nav-toggle { display: none; }
.mode-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; }
.mode-toggle span { padding: 6px 8px; border-radius: 6px; color: var(--muted); }
.theme-command[data-mode="dark"] .mode-toggle span:first-child,
.theme-command[data-mode="light"] .mode-toggle span:last-child,
.theme-route[data-mode="dark"] .mode-toggle span:first-child,
.theme-route[data-mode="light"] .mode-toggle span:last-child,
.theme-flow[data-mode="dark"] .mode-toggle span:first-child,
.theme-flow[data-mode="light"] .mode-toggle span:last-child { background: var(--primary); color: #061018; }
.hero {
  max-width: var(--max); margin: 0 auto; min-height: calc(100vh - 73px); padding: clamp(42px, 7vw, 92px) clamp(16px, 3vw, 44px);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr); align-items: center; gap: clamp(28px, 6vw, 76px);
}
.hero.page-blog-index, .hero.page-category-archive, .hero.page-tag-archive, .hero.page-author-archive {
  min-height: auto; padding-top: clamp(42px, 6vw, 78px); padding-bottom: clamp(34px, 5vw, 68px);
}
.hero-copy h1 { margin: 0; font-size: clamp(2.45rem, 5.5vw, 5.9rem); line-height: .96; letter-spacing: 0; max-width: 820px; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: pretty; }
.hero.page-service-or-content-page .hero-copy h1,
.hero.page-company-page .hero-copy h1,
.hero.page-services-index .hero-copy h1,
.hero.page-wp-template-fragment .hero-copy h1 {
  font-size: clamp(2.35rem, 4.35vw, 4.7rem);
  line-height: 1.02;
  max-width: 900px;
}
.theme-editorial .hero-copy h1, .theme-editorial .section h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.hero-copy p { max-width: 690px; color: var(--muted); font-size: 1.08rem; line-height: 1.72; }
.eyebrow { margin: 0 0 13px; color: var(--accent); text-transform: uppercase; font-weight: 900; letter-spacing: .08em; font-size: .76rem; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  min-height: 45px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius);
  padding: 12px 18px; font-weight: 900; border: 1px solid transparent;
}
.button.primary { background: var(--accent); color: #111; }
.button.secondary { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--text) 18%, transparent); }
.hero-panel { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.hero-panel figure { margin: 0; min-height: 430px; border-radius: var(--radius); overflow: hidden; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.hero-panel img { width: 100%; height: 100%; min-height: 430px; }
.signal-card, .hero-stats, .ops-board div, .service-card, .post-card, .case-card, .category-rail, .featured-post, .deliverables div, .process-lanes div, .stack-band, .article-aside, .legal-copy, form {
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: var(--radius);
}
.signal-card { padding: 16px; display: grid; gap: 6px; }
.signal-card span, .service-card span, .case-card span, .post-meta, .article-aside span { color: var(--accent); font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.signal-card strong, .service-card h3, .post-card h3, .case-card h3, .article-body p, .section p { overflow-wrap: break-word; }
.signal-card strong { font-size: 1.08rem; line-height: 1.25; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; background: color-mix(in srgb, var(--text) 12%, transparent); }
.hero-stats div { background: var(--surface); padding: 16px; }
.hero-stats strong { display: block; color: var(--primary); font-size: 1.6rem; }
.hero-stats span, .ops-board span, .case-card dd { color: var(--muted); font-size: .9rem; }
.theme-route .hero {
  max-width: none;
  min-height: calc(100vh - 56px);
  padding-left: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
  padding-right: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
  background:
    radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 32%, transparent), transparent 72%);
}
.route-panel figure { min-height: 500px; background: var(--surface); }
.route-panel img { min-height: 500px; object-fit: cover; object-position: center; }
.route-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.route-steps span, .photo-caption, .flow-caption {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: var(--radius);
  padding: 12px;
}
.route-steps span { color: var(--muted); font-weight: 850; text-align: center; }
.theme-photo .hero {
  max-width: none;
  min-height: calc(100vh - 56px);
  grid-template-columns: minmax(0, .78fr) minmax(420px, 1.22fr);
  padding-left: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
  padding-right: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
}
.theme-photo .hero-copy {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.theme-photo .hero-copy h1 {
  font-size: clamp(2.35rem, 4.25vw, 4.6rem);
  line-height: 1.02;
}
.photo-panel figure { min-height: 610px; }
.photo-panel img { min-height: 610px; object-position: center; }
.photo-caption, .flow-caption { display: grid; gap: 5px; }
.photo-caption span, .flow-caption span { color: var(--muted); line-height: 1.55; }
.flow-panel { position: relative; }
.flow-panel figure { min-height: 520px; opacity: .68; }
.flow-panel img { min-height: 520px; }
.flow-field {
  position: absolute; inset: 24px; pointer-events: none; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%, color-mix(in srgb, var(--accent) 9%, transparent));
}
.flow-line {
  position: absolute; left: 10%; right: 10%; height: 2px; top: 45%;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--primary) 80%, transparent));
}
.flow-line.line-b { top: 62%; transform: scaleX(.84); opacity: .62; }
.flow-dot {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 28px var(--accent);
}
.flow-dot.dot-a { left: 18%; top: 43%; }
.flow-dot.dot-b { left: 49%; top: 59%; background: var(--primary); box-shadow: 0 0 28px var(--primary); }
.flow-dot.dot-c { right: 18%; top: 43%; }
.lp-hero {
  min-height: calc(100vh - 56px);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr); align-items: center; gap: clamp(26px, 5vw, 66px);
  padding: clamp(46px, 7vw, 96px) max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
}
.lp-hero h1 {
  margin: 0; font-size: clamp(2.4rem, 5.2vw, 5.5rem); line-height: .98; letter-spacing: 0;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.lp-hero p { color: var(--muted); font-size: 1.12rem; line-height: 1.72; max-width: 690px; }
.lp-visual { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); min-height: 560px; }
.lp-visual img { width: 100%; min-height: 560px; }
.lp-problem {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr); gap: clamp(24px, 5vw, 60px);
}
.lp-problem ul, .lp-faq > div:last-child {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 12px;
}
.lp-problem li, .lp-faq details {
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: var(--radius); padding: 18px;
}
.lp-faq {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(320px, 1.22fr); gap: clamp(24px, 5vw, 64px);
}
.lp-faq summary { cursor: pointer; font-weight: 900; color: var(--text); }
.lp-faq details p { margin-bottom: 0; }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(46px, 7vw, 88px) clamp(16px, 3vw, 44px); }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section h2 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 3.4rem); line-height: 1.04; letter-spacing: 0; }
.section p { color: var(--muted); line-height: 1.72; }
.intro-grid, .service-detail, .contact-layout, .case-detail, .blog-feature, .article-layout {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); gap: clamp(24px, 5vw, 68px); align-items: start;
}
.ops-board, .deliverables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ops-board div, .deliverables div { padding: 18px; }
.ops-board strong, .deliverables strong { display: block; color: var(--primary); font-size: 1.2rem; margin-bottom: 8px; }
.service-grid, .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { padding: 20px; min-height: 238px; display: flex; flex-direction: column; gap: 11px; }
.post-card { padding: 0; overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.post-image { display: block; background: var(--surface-2); }
.post-image img { width: 100%; height: 185px; object-fit: cover; }
.post-card-body { padding: 18px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.service-card h3, .post-card h3, .case-card h3, .process-lanes h3 { margin: 0; font-size: 1.2rem; line-height: 1.22; }
.service-card p, .post-card p, .case-card p { margin: 0; }
.service-card a, .post-card a, .case-card a, .category-rail a, .article-aside a, .contact-methods a { color: var(--primary); font-weight: 900; margin-top: auto; }
.post-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--accent); }
.post-grid.dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-card { overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; }
.case-card img { width: 100%; height: 100%; min-height: 280px; }
.case-card > div { padding: 20px; display: grid; gap: 12px; }
.case-card dl, .metric-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.case-card dt, .metric-row strong { color: var(--primary); font-size: 1.6rem; font-weight: 900; }
.case-card dd { margin: 0; }
.blog-feature { align-items: stretch; }
.featured-post { padding: 0; overflow: hidden; display: grid; grid-template-columns: .95fr 1.05fr; }
.featured-post img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.featured-post > div { padding: clamp(22px, 4vw, 36px); display: grid; align-content: center; }
.category-rail { padding: clamp(22px, 4vw, 36px); }
.featured-post h2 { margin-bottom: 16px; }
.category-rail { display: flex; flex-direction: column; gap: 10px; }
.category-rail h2 { font-size: 1.35rem; margin-bottom: 8px; }
.category-rail a { padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.newsletter-band, .stack-band {
  background: var(--dark); color: var(--on-dark); max-width: none; padding-left: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px)); padding-right: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
  display: flex; justify-content: space-between; gap: 28px; align-items: center;
}
.newsletter-band p, .cta-band p { color: color-mix(in srgb, var(--on-dark) 72%, transparent); }
.article-layout { align-items: start; }
.article-aside { padding: 18px; position: sticky; top: 96px; display: grid; gap: 12px; }
.article-body { max-width: 800px; }
.article-body h2 { margin-bottom: 18px; }
.article-body h3 { margin-top: 32px; font-size: 1.35rem; }
.article-body p, .article-body li { color: var(--muted); line-height: 1.8; }
.article-hero-image { margin: 20px 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.article-hero-image img { width: 100%; min-height: 340px; }
.case-detail img { width: 100%; min-height: 420px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.metric-row div { padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.metric-row span { display: block; color: var(--muted); }
.process-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.process-lanes div { padding: 22px; }
.process-lanes span { color: var(--accent); font-weight: 900; }
.stack-band { display: grid; grid-template-columns: minmax(0, .8fr) minmax(280px, 1.2fr); }
.stack-band h2 { color: var(--on-dark); }
.stack-band ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.stack-band li { border: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent); border-radius: var(--radius); padding: 10px 12px; }
.contact-layout form { padding: 22px; display: grid; gap: 13px; }
.contact-methods { display: grid; gap: 10px; margin-top: 20px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); background: var(--bg); color: var(--text); border-radius: var(--radius); padding: 12px; }
textarea { min-height: 118px; resize: vertical; }
form button { border: 0; border-radius: var(--radius); background: var(--accent); color: #111; padding: 13px 18px; font-weight: 900; }
.legal-hero { max-width: 960px; padding-top: clamp(54px, 8vw, 96px); padding-bottom: clamp(22px, 4vw, 42px); }
.legal-hero h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.9rem); line-height: 1; letter-spacing: 0; }
.legal-hero p { max-width: 690px; font-size: 1.08rem; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.legal-nav { position: sticky; top: 92px; display: grid; gap: 10px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: var(--radius); padding: 18px; }
.legal-nav a { color: var(--muted); font-weight: 800; }
.legal-copy { max-width: 880px; padding: clamp(28px, 5vw, 48px); }
.legal-copy h2 { margin-top: 0; }
.legal-copy h3 { margin-top: 32px; }
.cta-band {
  background: var(--dark); color: var(--on-dark); max-width: none; padding: clamp(42px, 7vw, 78px) max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.1rem); }
.footer {
  max-width: none; margin: 0; padding: clamp(34px, 6vw, 64px) max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
  display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.6fr); gap: clamp(26px, 5vw, 74px);
  background: var(--dark); color: var(--on-dark);
}
.footer p { color: color-mix(in srgb, var(--on-dark) 72%, transparent); line-height: 1.7; max-width: 360px; }
.footer-brand img { width: 132px; height: auto; margin-bottom: 18px; filter: brightness(1.15); }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.footer nav, .footer-contact { display: grid; align-content: start; gap: 10px; color: color-mix(in srgb, var(--on-dark) 72%, transparent); }
.footer strong { color: var(--on-dark); }
.footer a:hover { color: var(--on-dark); }
.theme-signal .hero { position: relative; }
.theme-signal .hero::before {
  content: ""; position: absolute; inset: 0 16px; pointer-events: none; opacity: .45;
  background-image: linear-gradient(color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px);
  background-size: 38px 38px;
}
.theme-signal .hero-copy, .theme-signal .hero-panel { position: relative; }
.theme-signal .service-card, .theme-signal .post-card { border-top: 4px solid var(--accent); }
.theme-command .nav, .theme-command .hero-panel figure, .theme-command .service-card, .theme-command .post-card, .theme-command .case-card { box-shadow: 0 22px 70px color-mix(in srgb, #000 35%, transparent); }
.theme-command .hero { max-width: none; padding-left: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px)); padding-right: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px)); }
.theme-route .nav, .theme-flow .nav, .theme-route .hero-panel figure, .theme-flow .hero-panel figure { box-shadow: 0 22px 80px color-mix(in srgb, #000 42%, transparent); }
.theme-route .service-card, .theme-route .case-card, .theme-flow .post-card { border-color: color-mix(in srgb, var(--primary) 24%, transparent); }
.theme-photo .case-card, .theme-photo .service-card, .theme-photo .post-card { box-shadow: 0 16px 48px color-mix(in srgb, #1d2a28 10%, transparent); }
.theme-flow .hero {
  max-width: none;
  padding-left: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
  padding-right: max(clamp(16px, 3vw, 44px), calc((100vw - var(--max)) / 2 + 44px));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 32%),
    radial-gradient(circle at 72% 20%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 34%);
}
.theme-editorial .hero { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); }
.theme-editorial .hero-panel figure { border-radius: 0; }
.theme-editorial .service-grid { grid-template-columns: 1fr 1fr; }
.theme-editorial .post-card, .theme-editorial .service-card { min-height: 220px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-panel { animation: rise .55s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .flow-line { animation: flowPulse 5.2s ease-in-out infinite; }
  .flow-line.line-b { animation-duration: 6.4s; animation-delay: .8s; }
  .flow-dot { animation: dotTravel 5.8s ease-in-out infinite alternate; }
  .flow-dot.dot-b { animation-delay: .7s; }
  .flow-dot.dot-c { animation-delay: 1.1s; }
  @keyframes flowPulse { 0%, 100% { opacity: .42; transform: translateX(-8px) scaleX(.92); } 50% { opacity: 1; transform: translateX(8px) scaleX(1); } }
  @keyframes dotTravel { from { transform: translateX(-12px); opacity: .58; } to { transform: translateX(22px); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line, .flow-dot, .hero-panel { animation: none !important; }
}
@media (max-width: 940px) {
  .nav { grid-template-columns: auto auto; align-items: center; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; grid-column: 1 / -1; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 12px; }
  .nav.is-open .nav-links { display: flex; }
  .nav-actions { grid-column: 1 / -1; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .hero, .intro-grid, .service-detail, .contact-layout, .case-detail, .blog-feature, .article-layout, .stack-band, .footer, .footer-columns, .featured-post, .legal-layout, .lp-hero, .lp-problem, .lp-faq { grid-template-columns: 1fr; }
  .theme-route .hero, .theme-photo .hero, .theme-flow .hero, .lp-hero { grid-template-columns: 1fr; min-height: auto; padding-left: clamp(16px, 4vw, 28px); padding-right: clamp(16px, 4vw, 28px); }
  .theme-editorial .hero { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .theme-command .hero { padding-left: clamp(16px, 4vw, 28px); padding-right: clamp(16px, 4vw, 28px); }
  .hero-panel figure, .hero-panel img, .case-detail img, .photo-panel figure, .photo-panel img, .route-panel figure, .route-panel img, .flow-panel figure, .flow-panel img, .lp-visual, .lp-visual img { min-height: 300px; }
  .service-grid, .post-grid, .post-grid.dense, .case-grid, .process-lanes, .theme-editorial .service-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .case-card img { max-height: 260px; }
  .newsletter-band, .cta-band { display: grid; }
  .legal-nav { position: static; }
  .article-aside { position: static; }
}
@media (max-width: 520px) {
  .brand img { width: 116px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero-panel { justify-self: stretch; max-width: 100%; width: 100%; }
  .hero-panel figure, .signal-card, .hero-stats { width: 100%; max-width: 100%; }
  .hero-copy h1 { font-size: 1.95rem; line-height: 1.05; }
  .theme-photo .hero-copy h1,
  .theme-photo .hero.page-service-or-content-page .hero-copy h1,
  .theme-photo .hero.page-company-page .hero-copy h1,
  .theme-photo .hero.page-services-index .hero-copy h1,
  .theme-photo .hero.page-wp-template-fragment .hero-copy h1 { font-size: 1.86rem; line-height: 1.06; }
  .eyebrow { font-size: .66rem; letter-spacing: .03em; }
  .section h2 { font-size: 1.72rem; }
  .button { width: 100%; }
  .hero-stats, .ops-board, .deliverables, .case-card dl, .metric-row { grid-template-columns: 1fr; }
  .route-steps { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 2.05rem; line-height: 1.06; }
  .mode-toggle { width: 100%; }
}
