/*
Theme Name: 123 Media Studio
Theme URI: https://www.123media.lt/
Author: 123 Media
Description: Accessible full-site theme for 123 Media video, design, events and marketing technology services.
Version: 2.2.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: media123
*/

:root {
  --m123-ink: #232b30;
  --m123-deep: #041119;
  --m123-surface: #f7fbfd;
  --m123-white: #fff;
  --m123-cyan: #00aeff;
  --m123-cyan-dark: #007b9e;
  --m123-sky: #7ec5d1;
  --m123-muted: #58656d;
  --m123-muted-dark: #948d96;
  --m123-border: 2px solid var(--m123-ink);
  --m123-shadow: 10px 10px 0 var(--m123-ink);
  --m123-container: 1240px;
  --m123-reading: 760px;
  --m123-header: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--m123-header) + 16px); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--m123-ink);
  background: var(--m123-surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
main, section, article, aside, header, footer, nav, div { min-width: 0; }
img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
figure { max-width: 100%; margin: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--m123-cyan-dark); }
button, input, textarea, select { max-width: 100%; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, li, a, summary, address { overflow-wrap: break-word; hyphens: none; }
:focus-visible { outline: 3px solid var(--m123-cyan); outline-offset: 4px; box-shadow: 0 0 0 2px var(--m123-deep); }
::selection { color: var(--m123-deep); background: var(--m123-cyan); }
.screen-reader-text, .m123-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.m123-container { width: min(calc(100% - 40px), var(--m123-container)); margin-inline: auto; }
.m123-section { position: relative; padding-block: clamp(72px, 8vw, 126px); }
.m123-section--white { background: var(--m123-white); }
.m123-section--ink, .m123-section--deep { color: var(--m123-white); background: var(--m123-deep); }
.m123-section--cyan { color: var(--m123-deep); background: var(--m123-cyan); }
.m123-skip-link {
  position: fixed; z-index: 10000; top: 12px; left: 12px; padding: 12px 18px;
  color: var(--m123-deep); background: var(--m123-cyan); border: var(--m123-border);
  font-weight: 900; transform: translateY(-180%);
}
.m123-skip-link:focus { transform: translateY(0); }

/* Header and navigation */
.m123-site-header {
  position: sticky; z-index: 1000; top: 0; color: var(--m123-ink); background: rgba(247, 251, 253, .96);
  border-bottom: 2px solid transparent; backdrop-filter: blur(12px);
}
.m123-site-header.is-scrolled { border-color: var(--m123-ink); }
.m123-header-inner { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); min-height: var(--m123-header); }
.m123-brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.m123-brand img, .m123-brand .custom-logo { width: auto; height: 56px; object-fit: contain; }
.m123-primary-nav { margin-left: auto; }
.m123-primary-nav ul { padding: 0; margin: 0; list-style: none; }
.m123-primary-nav > ul { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.m123-primary-nav li { position: relative; }
.m123-primary-nav a { display: block; padding-block: 14px; font-size: .86rem; font-weight: 900; line-height: 1.2; text-decoration: none; }
.m123-primary-nav > ul > li > a::after { display: block; width: 0; height: 3px; margin-top: 5px; content: ""; background: var(--m123-cyan); transition: width 180ms ease; }
.m123-primary-nav > ul > li:hover > a::after,
.m123-primary-nav > ul > li:focus-within > a::after,
.m123-primary-nav .current-menu-item > a::after { width: 100%; }
.m123-primary-nav .sub-menu {
  position: absolute; z-index: 20; top: calc(100% - 4px); left: -18px; display: none; width: min(280px, 80vw);
  padding: 10px 18px; background: var(--m123-white); border: var(--m123-border); box-shadow: 7px 7px 0 var(--m123-ink);
}
.m123-primary-nav li:hover > .sub-menu, .m123-primary-nav li:focus-within > .sub-menu { display: block; }
.m123-primary-nav .sub-menu li + li { border-top: 1px solid #cbd9df; }
.m123-primary-nav .sub-menu a { padding: 12px 0; }
.m123-primary-nav .sub-menu a:hover { color: var(--m123-cyan-dark); }
.m123-header-cta { flex: 0 0 auto; padding: 12px 18px !important; font-size: .82rem !important; }
.m123-menu-toggle {
  display: none; width: 48px; height: 46px; padding: 11px; margin-left: auto;
  color: var(--m123-ink); background: var(--m123-cyan); border: var(--m123-border); cursor: pointer;
}
.m123-menu-toggle > span:not(.screen-reader-text) { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.m123-menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m123-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.m123-menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Shared typography and controls */
.m123-eyebrow { margin: 0 0 18px; color: var(--m123-cyan-dark); font-size: .75rem; font-weight: 900; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.m123-section--deep .m123-eyebrow, .m123-section--ink .m123-eyebrow { color: var(--m123-cyan); }
.m123-section-title { max-width: 890px; margin: 0; font-size: clamp(2.35rem, 5.2vw, 5.25rem); font-weight: 900; letter-spacing: -.065em; line-height: .94; }
.m123-section-head { display: grid; align-items: end; gap: clamp(28px, 5vw, 90px); grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); margin-bottom: clamp(42px, 6vw, 78px); }
.m123-section-intro, .m123-page-lead { max-width: 680px; margin: 0; color: var(--m123-muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; }
.m123-section--ink .m123-section-intro, .m123-section--deep .m123-section-intro { color: #c3d3da; }
.m123-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px;
  color: var(--m123-white); background: var(--m123-ink); border: var(--m123-border); box-shadow: 5px 5px 0 var(--m123-cyan-dark);
  font-size: .88rem; font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease;
}
.m123-button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--m123-cyan-dark); text-decoration: none; }
.m123-button--ghost { color: var(--m123-ink); background: transparent; box-shadow: none; }
.m123-section--deep .m123-button--ghost, .m123-section--ink .m123-button--ghost { color: var(--m123-white); border-color: var(--m123-white); }
.m123-button--light { color: var(--m123-deep); background: var(--m123-cyan); border-color: var(--m123-cyan); box-shadow: 5px 5px 0 var(--m123-white); }
.m123-button-row, .m123-hero-actions, .m123-contact-actions, .m123-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.m123-text-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; }
.m123-text-link span { transition: transform 150ms ease; }
.m123-text-link:hover span { transform: translateX(5px); }

/* Home hero */
.m123-hero { padding-block: clamp(60px, 7vw, 105px); background: var(--m123-surface); }
.m123-hero-grid { display: grid; align-items: center; gap: clamp(42px, 7vw, 100px); grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr); }
.m123-hero-title { max-width: 850px; margin: 0; font-size: clamp(3rem, 6.3vw, 6.7rem); font-weight: 900; letter-spacing: -.078em; line-height: .88; }
.m123-hero-title span { color: var(--m123-cyan-dark); }
.m123-service-hero .m123-hero-title { font-size: clamp(2.2rem, 10.8vw, 5rem); }
.m123-hero-copy { max-width: 760px; margin: 30px 0 0; color: var(--m123-muted); font-size: clamp(1.08rem, 1.7vw, 1.38rem); line-height: 1.5; }
.m123-hero-actions { margin-top: 34px; }
.m123-hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 22px 0 0; margin: 30px 0 0; border-top: 1px solid #c6d4da; list-style: none; }
.m123-hero-facts li { font-size: .82rem; font-weight: 800; }
.m123-hero-visual { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.m123-hero-image { overflow: hidden; background: var(--m123-sky); border: var(--m123-border); box-shadow: var(--m123-shadow); }
.m123-hero-image img { width: 100%; min-height: 430px; object-fit: cover; }
.m123-visual-caption { display: grid; align-items: start; gap: 15px; grid-template-columns: auto minmax(0, 1fr); padding: 26px 18px 0 0; }
.m123-visual-caption span { display: inline-grid; width: 40px; height: 40px; place-items: center; color: var(--m123-deep); background: var(--m123-cyan); border: var(--m123-border); font-size: .75rem; font-weight: 900; }
.m123-visual-caption strong { font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.08; }
.m123-ticker { overflow: hidden; color: var(--m123-white); background: var(--m123-deep); border-block: 2px solid var(--m123-deep); }
.m123-ticker-track { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; width: min(calc(100% - 32px), var(--m123-container)); padding-block: 16px; margin-inline: auto; }
.m123-ticker-track span { font-size: .76rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.m123-ticker-track span[aria-hidden] { color: var(--m123-cyan); }

/* Homepage clients */
.m123-clients { padding-block: clamp(48px, 6vw, 80px); background: var(--m123-surface); }
.m123-clients-head { display: grid; align-items: end; gap: 24px clamp(32px, 6vw, 90px); grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr); margin-bottom: clamp(30px, 5vw, 54px); }
.m123-clients-title { margin: 0; font-size: clamp(2.4rem, 4.8vw, 4.8rem); font-weight: 900; letter-spacing: -.06em; line-height: .95; }
.m123-clients-copy { max-width: 620px; margin: 0; color: var(--m123-muted); }
.m123-client-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); padding: 0; margin: 0; list-style: none; }
.m123-client-card { display: grid; min-width: 0; min-height: 142px; grid-template-rows: minmax(68px, 1fr) auto; place-items: center; padding: 20px 16px 15px; background: var(--m123-white); border: var(--m123-border); }
.m123-client-logo { display: grid; width: 100%; min-width: 0; place-items: center; }
.m123-client-logo img { width: auto; max-width: 100%; max-height: 62px; object-fit: contain; }
.m123-client-name { max-width: 100%; margin-top: 12px; font-size: .76rem; font-weight: 900; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }

/* Home service pillars */
.m123-pillar-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m123-pillar { display: flex; min-height: 390px; flex-direction: column; padding: clamp(28px, 4vw, 48px); background: var(--m123-surface); border: var(--m123-border); box-shadow: 7px 7px 0 var(--m123-sky); }
.m123-pillar--primary { background: var(--m123-cyan); box-shadow: 7px 7px 0 var(--m123-ink); }
.m123-pillar--dark { color: var(--m123-white); background: var(--m123-deep); box-shadow: 7px 7px 0 var(--m123-cyan); }
.m123-card-number { display: inline-block; margin-bottom: auto; font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.m123-card-label { margin: 38px 0 10px; color: var(--m123-muted); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.m123-pillar--primary .m123-card-label { color: var(--m123-deep); }
.m123-pillar--dark .m123-card-label { color: var(--m123-sky); }
.m123-pillar h3 { max-width: 570px; margin: 0; font-size: clamp(2rem, 3.6vw, 4rem); font-weight: 900; letter-spacing: -.055em; line-height: .96; }
.m123-pillar h3 a { text-decoration: none; }
.m123-pillar > p:not(.m123-card-label) { max-width: 630px; margin: 22px 0; }
.m123-pillar .m123-text-link, .m123-inline-links { margin-top: auto; }
.m123-inline-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.m123-inline-links a { display: block; padding: 7px 12px; background: rgba(255, 255, 255, .68); border: 1px solid var(--m123-ink); font-size: .78rem; font-weight: 900; text-decoration: none; }

/* Feature, process and smart sections */
.m123-feature-grid { display: grid; align-items: center; gap: clamp(44px, 7vw, 100px); grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
.m123-feature-media { border: 2px solid var(--m123-cyan); box-shadow: 10px 10px 0 var(--m123-cyan); }
.m123-feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.m123-feature-copy h2, .m123-smart-copy h2 { margin: 0; font-size: clamp(2.5rem, 4.8vw, 5.4rem); font-weight: 900; letter-spacing: -.065em; line-height: .94; }
.m123-feature-copy > p, .m123-smart-copy > p { margin: 26px 0; font-size: 1.08rem; }
.m123-check-list { display: grid; gap: 12px; padding: 0; margin: 28px 0 34px; list-style: none; }
.m123-check-list li { position: relative; padding-left: 30px; }
.m123-check-list li::before { position: absolute; top: .42em; left: 0; width: 14px; height: 14px; content: ""; background: var(--m123-cyan); border: 2px solid currentColor; }
.m123-process-grid { display: grid; gap: 0; padding: 0; margin: 0; border: var(--m123-border); list-style: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m123-process-grid li { min-height: 290px; padding: 28px; background: var(--m123-white); }
.m123-process-grid li + li { border-left: var(--m123-border); }
.m123-process-grid span { color: var(--m123-cyan-dark); font-size: .76rem; font-weight: 900; }
.m123-process-grid h3 { margin: 70px 0 14px; font-size: clamp(1.45rem, 2.5vw, 2.25rem); line-height: 1; }
.m123-process-grid p { margin: 0; color: var(--m123-muted); }
.m123-smart-grid { display: grid; align-items: center; gap: clamp(40px, 7vw, 90px); grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); }
.m123-smart-copy .m123-eyebrow { color: var(--m123-deep); }
.m123-smart-copy .m123-button-row { margin-top: 34px; }
.m123-smart-diagram { display: grid; gap: 12px; }
.m123-smart-diagram div { display: grid; align-items: center; gap: 12px 20px; grid-template-columns: 42px minmax(0, 1fr); padding: 22px; background: var(--m123-white); border: var(--m123-border); box-shadow: 6px 6px 0 var(--m123-ink); }
.m123-smart-diagram span { grid-row: 1 / 3; font-size: .75rem; font-weight: 900; }
.m123-smart-diagram strong { font-size: 1.35rem; line-height: 1.1; }
.m123-smart-diagram small { color: var(--m123-muted); }

/* FAQ and contacts */
.m123-faq-layout { display: grid; align-items: start; gap: clamp(42px, 8vw, 120px); grid-template-columns: minmax(270px, .75fr) minmax(0, 1.25fr); }
.m123-faq-intro { position: sticky; top: calc(var(--m123-header) + 30px); }
.m123-faq-intro .m123-text-link { margin-top: 28px; }
.m123-accordion-list, .m123-faq-list { display: grid; gap: 12px; }
.m123-accordion-list details, .m123-faq-item { padding: 22px 24px; background: var(--m123-surface); border: var(--m123-border); }
.m123-accordion-list summary { font-size: clamp(1.08rem, 2vw, 1.35rem); font-weight: 900; cursor: pointer; }
.m123-accordion-list p, .m123-faq-answer { margin: 17px 0 0; color: var(--m123-muted); }
.m123-faq-item h2, .m123-faq-item h3 { margin: 0; font-size: clamp(1.18rem, 2.2vw, 1.6rem); line-height: 1.2; }
.m123-contact-section, .m123-contact { background: var(--m123-sky); }
.m123-contact-card { display: grid; align-items: end; gap: clamp(40px, 8vw, 100px); grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); padding: clamp(28px, 5vw, 66px); background: var(--m123-cyan); border: var(--m123-border); box-shadow: var(--m123-shadow); }
.m123-contact-card h2 { max-width: 800px; margin: 0; font-size: clamp(2.35rem, 5vw, 5.6rem); font-weight: 900; letter-spacing: -.07em; line-height: .94; }
.m123-contact-card .m123-eyebrow { color: var(--m123-deep); }
.m123-contact-card p { max-width: 680px; margin: 24px 0 0; }
.m123-contact-details { display: flex; min-width: 0; flex-direction: column; font-style: normal; }
.m123-contact-link { display: block; padding: 14px 0; border-top: var(--m123-border); font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 900; text-decoration: none; overflow-wrap: anywhere; }
.m123-contact-link:last-of-type { border-bottom: var(--m123-border); }
.m123-contact-details > span, .m123-contact-hours { margin-top: 16px; font-size: .84rem; font-weight: 800; }
.m123-contact-details .m123-button { align-self: flex-start; margin-top: 24px; }

/* Generic pages and content */
.m123-page-hero { padding-block: clamp(64px, 9vw, 132px); color: var(--m123-white); background: var(--m123-deep); }
.m123-page-hero--compact { padding-block: clamp(52px, 6vw, 88px); }
.m123-page-hero--error { min-height: 64vh; display: grid; align-items: center; }
.m123-page-hero__inner { max-width: var(--m123-container); }
.m123-page-hero h1 { max-width: 1060px; margin: 0; font-size: clamp(2.75rem, 7vw, 7.5rem); font-weight: 900; letter-spacing: -.075em; line-height: .9; overflow-wrap: anywhere; }
.m123-page-hero .m123-page-lead { margin-top: 26px; color: #c4d4da; }
.m123-page-hero .m123-eyebrow { color: var(--m123-cyan); }
.m123-page-hero .m123-hero-actions { margin-top: 32px; }
.m123-error-code { display: block; margin-bottom: 12px; color: var(--m123-cyan); font-size: clamp(4rem, 14vw, 12rem); font-weight: 900; letter-spacing: -.08em; line-height: .8; }
.m123-content-shell { min-height: 60vh; padding-block: clamp(60px, 8vw, 110px); }
.m123-content-shell > .m123-container { max-width: var(--m123-reading); }
.m123-content-shell h1 { margin: 0 0 36px; font-size: clamp(2.6rem, 6vw, 5.6rem); letter-spacing: -.06em; line-height: .95; }
.entry-content, .m123-prose { max-width: var(--m123-reading); }
.entry-content > *:first-child, .m123-prose > *:first-child { margin-top: 0; }
.entry-content h2, .m123-prose h2 { margin: 2.2em 0 .65em; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.05; }
.entry-content h3, .m123-prose h3 { margin: 1.8em 0 .6em; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.15; }
.entry-content a, .m123-prose a { overflow-wrap: anywhere; }
.m123-prose--legal { max-width: 860px; }
.m123-split, .m123-contact-layout { display: grid; align-items: start; gap: clamp(38px, 7vw, 96px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m123-card-grid { display: grid; gap: 22px; }
.m123-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m123-card-grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m123-info-card { display: flex; min-height: 260px; flex-direction: column; padding: clamp(24px, 3.5vw, 40px); background: var(--m123-white); border: var(--m123-border); box-shadow: 6px 6px 0 var(--m123-sky); }
.m123-info-card h2, .m123-info-card h3 { margin: 26px 0 14px; font-size: clamp(1.55rem, 2.7vw, 2.5rem); letter-spacing: -.035em; line-height: 1.05; }
.m123-info-card p { margin: 0 0 20px; color: var(--m123-muted); }
.m123-info-card .m123-text-link { margin-top: auto; }
.m123-note, .m123-review-notice { padding: 18px 20px; margin: 26px 0; background: #e7f6fb; border-left: 5px solid var(--m123-cyan-dark); }
.m123-section--ink .m123-info-card { color: var(--m123-ink); }
.m123-section--ink .m123-prose { color: #d4e0e5; }
.m123-section--ink .m123-cta-row { margin-top: 34px; }

/* Service-page renderer */
.m123-services-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m123-service-card { display: flex; min-height: 330px; flex-direction: column; padding: clamp(24px, 3.5vw, 42px); color: var(--m123-ink); background: var(--m123-white); border: var(--m123-border); box-shadow: 7px 7px 0 var(--m123-sky); }
.m123-service-card--cyan { background: var(--m123-cyan); box-shadow: 7px 7px 0 var(--m123-white); }
.m123-service-card--sky { background: var(--m123-sky); box-shadow: 7px 7px 0 var(--m123-ink); }
.m123-service-card--navy, .m123-service-card--ink { color: var(--m123-white); background: var(--m123-deep); box-shadow: 7px 7px 0 var(--m123-cyan); }
.m123-service-number { font-size: .76rem; font-weight: 900; }
.m123-service-card h2, .m123-service-card h3 { margin: 50px 0 14px; font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.045em; line-height: 1; }
.m123-service-card p { margin: 0 0 22px; }
.m123-service-links { display: grid; gap: 7px; padding: 18px 0 0; margin: auto 0 0; border-top: 1px solid currentColor; list-style: none; }
.m123-service-links a { font-weight: 900; }
.m123-process-layout { display: grid; align-items: start; gap: clamp(40px, 8vw, 110px); grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); }
.m123-process-copy { position: sticky; top: calc(var(--m123-header) + 30px); }
.m123-process-list { display: grid; gap: 16px; }
.m123-process-item { display: grid; gap: 18px; grid-template-columns: 52px minmax(0, 1fr); padding: 24px; background: var(--m123-white); border: var(--m123-border); }
.m123-process-item > span { display: grid; width: 44px; height: 44px; place-items: center; color: var(--m123-deep); background: var(--m123-cyan); border: var(--m123-border); font-size: .75rem; font-weight: 900; }
.m123-process-item h3 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.m123-process-item p { margin: 8px 0 0; color: var(--m123-muted); }

/* Listings, articles and pagination */
.m123-project-filters { display: flex; align-items: flex-start; gap: 14px 20px; padding: 20px; margin-bottom: 34px; background: var(--m123-surface); border: var(--m123-border); }
.m123-filter-label { padding-top: 9px; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.m123-project-filters ul, .m123-project-term-list { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.m123-filter-chip, .m123-project-term { display: inline-flex; min-height: 38px; align-items: center; padding: 6px 11px; color: var(--m123-ink); background: var(--m123-white); border: 1px solid var(--m123-ink); font-size: .76rem; font-weight: 900; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.m123-filter-chip:hover, .m123-filter-chip:focus-visible, .m123-filter-chip.is-active { color: var(--m123-white); background: var(--m123-ink); }
.m123-project-term:hover, .m123-project-term:focus-visible { color: var(--m123-deep); background: var(--m123-cyan); }
.m123-project-tile__body .m123-project-term-list { margin-bottom: 15px; }
.m123-page-hero .m123-project-term-list { margin-top: 28px; }
.m123-page-hero .m123-project-term { color: var(--m123-white); background: rgba(255, 255, 255, .06); border-color: var(--m123-cyan); }
.m123-page-hero .m123-project-term:hover, .m123-page-hero .m123-project-term:focus-visible { color: var(--m123-deep); background: var(--m123-cyan); }
.m123-listing-grid, .m123-project-listing { display: grid; gap: 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m123-post-card, .m123-project-tile { overflow: hidden; background: var(--m123-surface); border: var(--m123-border); box-shadow: 6px 6px 0 var(--m123-sky); }
.m123-post-card__image, .m123-project-tile__image { display: block; overflow: hidden; border-bottom: var(--m123-border); }
.m123-post-card__image img, .m123-project-tile__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 220ms ease; }
.m123-post-card:hover img, .m123-project-tile:hover img { transform: scale(1.025); }
.m123-post-card__body, .m123-project-tile__body { padding: 24px; }
.m123-post-card h2, .m123-project-tile h2 { margin: 12px 0 16px; font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.08; overflow-wrap: anywhere; }
.m123-post-card h2 a, .m123-project-tile h2 a { text-decoration: none; }
.m123-post-card p, .m123-project-tile p { color: var(--m123-muted); }
.m123-post-meta { color: var(--m123-muted); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.m123-empty-state { padding: 32px; background: var(--m123-surface); border: var(--m123-border); }
.navigation.pagination, .posts-navigation, .post-navigation { margin-top: 50px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-links a, .nav-links span { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; border: 2px solid var(--m123-ink); font-weight: 900; }
.nav-links .current { color: var(--m123-white); background: var(--m123-ink); }
.m123-featured-image { margin-top: clamp(40px, 6vw, 84px); }
.m123-featured-image img { width: 100%; max-height: 760px; object-fit: cover; border: var(--m123-border); }
.m123-article-content { padding-block: clamp(56px, 8vw, 108px); }
.m123-project-detail .m123-article-content { width: min(calc(100% - 40px), 1040px); max-width: 1040px; }
.m123-project-detail .wp-block-embed, .m123-project-detail .wp-block-video, .m123-project-detail .wp-block-gallery, .m123-project-detail .wp-block-image { max-width: 100%; margin-block: clamp(28px, 5vw, 54px); }
.m123-project-detail .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--m123-deep); }
.m123-project-detail .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m123-project-detail video, .m123-project-detail iframe, .m123-project-detail img { max-width: 100%; }
.m123-project-detail .wp-block-video video { display: block; width: 100%; height: auto; }
.m123-project-detail .wp-block-gallery.has-nested-images { align-items: flex-start; }
.m123-project-detail .wp-block-gallery.has-nested-images figure.wp-block-image { background: var(--m123-surface); }
.m123-project-detail .wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: auto; object-fit: contain; }
.m123-project-back { display: inline-flex; margin-top: 34px; }
.m123-post-navigation { padding-bottom: clamp(60px, 8vw, 100px); }
.m123-search-results { display: grid; gap: 18px; }
.m123-search-results article { padding: 24px; border: var(--m123-border); }
.m123-search-results h2 { margin: 8px 0; }

/* Footer */
.m123-site-footer { padding-block: 58px 28px; color: var(--m123-white); background: var(--m123-deep); }
.m123-site-footer address { font-style: normal; }
.m123-footer-main { display: grid; align-items: start; gap: 42px; grid-template-columns: minmax(250px, 1.25fr) minmax(180px, .55fr) minmax(220px, .7fr); }
.m123-footer-brand img { width: 150px; filter: grayscale(1) brightness(0) invert(1); }
.m123-footer-brand p { max-width: 470px; margin: 22px 0 0; color: #aab8bf; }
.m123-footer-heading { margin: 0 0 16px; color: var(--m123-cyan); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.m123-footer-links { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.m123-footer-links a { color: var(--m123-white); text-decoration: none; overflow-wrap: anywhere; }
.m123-footer-links a:hover { color: var(--m123-cyan); }
.m123-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; margin-top: 56px; color: #aab8bf; border-top: 1px solid #35434b; font-size: .82rem; }
.m123-footer-bottom a { color: inherit; }

/* WordPress content helpers */
.alignwide { width: min(100%, var(--m123-container)); max-width: var(--m123-container); margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-caption, .gallery, .wp-block-image { max-width: 100%; }
.wp-caption-text { color: var(--m123-muted); font-size: .84rem; }
.has-js .m123-reveal { opacity: 0; transform: translateY(24px); transition: opacity 480ms ease, transform 480ms ease; }
.has-js .m123-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  :root { --m123-header: 78px; }
  .m123-menu-toggle { display: block; }
  .m123-header-cta { display: none; }
  .m123-primary-nav {
    position: absolute; z-index: 900; top: 100%; right: 0; bottom: auto; left: 0; display: none;
    height: calc(100svh - var(--m123-header)); margin: 0; padding: 26px 20px 44px; overflow-y: auto;
    color: var(--m123-ink); background: var(--m123-cyan); border-top: var(--m123-border);
  }
  .m123-primary-nav.is-open { display: block; }
  .m123-primary-nav > ul { align-items: stretch; flex-direction: column; gap: 0; }
  .m123-primary-nav li { width: 100%; border-bottom: 2px solid var(--m123-ink); }
  .m123-primary-nav a { padding: 14px 0; font-size: clamp(1.2rem, 3vw, 1.8rem); }
  .m123-primary-nav > ul > li > a::after { display: none; }
  .m123-primary-nav .sub-menu { position: static; display: block; width: 100%; padding: 0 0 12px 18px; background: transparent; border: 0; box-shadow: none; }
  .m123-primary-nav .sub-menu li { border: 0; }
  .m123-primary-nav .sub-menu a { padding: 7px 0; font-size: 1rem; }
  .m123-hero-grid { gap: 50px; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); }
  .m123-hero-title { font-size: clamp(3rem, 6.6vw, 5.3rem); }
  .m123-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m123-process-grid li:nth-child(3) { border-left: 0; border-top: var(--m123-border); }
  .m123-process-grid li:nth-child(4) { border-top: var(--m123-border); }
  .m123-listing-grid, .m123-project-listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .m123-hero-grid, .m123-feature-grid, .m123-smart-grid, .m123-faq-layout, .m123-contact-card,
  .m123-split, .m123-contact-layout, .m123-process-layout { grid-template-columns: minmax(0, 1fr); }
  .m123-hero { padding-top: 52px; }
  .m123-hero-title { max-width: 760px; font-size: clamp(3rem, 10vw, 5.6rem); }
  .m123-hero-visual { width: min(100%, 650px); }
  .m123-hero-image img { min-height: 0; aspect-ratio: 16 / 10; }
  .m123-section-head { align-items: start; grid-template-columns: minmax(0, 1fr); }
	.m123-clients-head { align-items: start; grid-template-columns: minmax(0, 1fr); }
  .m123-faq-intro, .m123-process-copy { position: static; }
  .m123-card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m123-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m123-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .m123-container { width: min(calc(100% - 28px), var(--m123-container)); }
	.m123-client-grid { gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.m123-client-card { min-height: 118px; padding: 14px 9px 11px; }
	.m123-client-logo img { max-height: 48px; }
	.m123-client-name { margin-top: 9px; font-size: .68rem; }
  .m123-section { padding-block: 68px; }
  .m123-brand img, .m123-brand .custom-logo { height: 48px; }
  .m123-hero-title { font-size: clamp(2.75rem, 13vw, 4.4rem); }
  .m123-hero-copy { margin-top: 24px; }
  .m123-hero-actions, .m123-button-row, .m123-contact-actions { align-items: stretch; flex-direction: column; }
  .m123-hero-actions .m123-button, .m123-button-row .m123-button, .m123-contact-actions .m123-button { width: 100%; }
  .m123-hero-facts { align-items: flex-start; flex-direction: column; }
  .m123-pillar-grid, .m123-card-grid--services, .m123-card-grid--three, .m123-services-grid,
  .m123-listing-grid, .m123-project-listing { grid-template-columns: minmax(0, 1fr); }
  .m123-pillar { min-height: 340px; }
  .m123-process-grid { grid-template-columns: minmax(0, 1fr); }
  .m123-process-grid li { min-height: 230px; }
  .m123-process-grid li + li { border-top: var(--m123-border); border-left: 0; }
  .m123-process-grid h3 { margin-top: 44px; }
  .m123-contact-card { padding: 26px; box-shadow: 7px 7px 0 var(--m123-ink); }
  .m123-contact-link { overflow-wrap: anywhere; }
  .m123-contact-details .m123-button { width: 100%; }
  .m123-page-hero h1 { font-size: clamp(2.55rem, 13vw, 4.5rem); }
  .m123-project-filters { align-items: stretch; flex-direction: column; padding: 16px; }
  .m123-filter-label { padding-top: 0; }
  .m123-project-detail .m123-article-content { width: min(calc(100% - 28px), 1040px); }
  .m123-footer-main { grid-template-columns: minmax(0, 1fr); }
  .m123-footer-brand { grid-column: auto; }
  .m123-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .m123-container { width: min(calc(100% - 24px), var(--m123-container)); }
  .m123-header-inner { gap: 10px; }
  .m123-brand img, .m123-brand .custom-logo { height: 43px; max-width: 118px; }
  .m123-hero-title { font-size: clamp(2.45rem, 12.8vw, 3.35rem); letter-spacing: -.065em; }
  .m123-section-title { font-size: clamp(2.2rem, 11.5vw, 3.2rem); }
  .m123-pillar, .m123-service-card, .m123-info-card { padding: 22px; }
  .m123-pillar h3 { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .m123-feature-copy h2, .m123-smart-copy h2, .m123-contact-card h2 { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .m123-smart-diagram div { gap: 8px 12px; padding: 18px; }
  .m123-smart-diagram strong { font-size: 1.15rem; }
  .m123-accordion-list details, .m123-faq-item { padding: 18px; }
  .m123-process-item { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .m123-contact-card { padding: 22px; }
}

@media (max-width: 340px) {
	.m123-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .has-js .m123-reveal { opacity: 1; transform: none; }
}
