/*
Theme Name: Meridian Micro
Theme URI: https://www.meridian-micro.com/
Author: Meridian Micro Limited
Author URI: https://www.meridian-micro.com/
Description: Bespoke IT services theme for Meridian Micro — IT support, computer repairs, networking, web design, hosting and data services across Kent and the South East.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
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: meridian-micro
*/

/* ============================================================
   Meridian Micro Ltd — IT / Software Agency Template
   Original design. Blue → indigo gradient, geometric sans.
   ============================================================ */

:root {
  --blue:      #2f6bff;
  --blue-2:    #1f8bff;
  --cyan:      #19b6f0;
  --indigo:    #5a3fe6;
  --grad-brand: linear-gradient(118deg, #2f8bff 0%, #5a3fe6 100%);
  --grad-cool:  linear-gradient(118deg, #19b6f0 0%, #2f6bff 60%, #5a3fe6 100%);
  --ink:       #11132a;
  --ink-2:     #2a2d44;
  --muted:     #6b6f86;
  --muted-2:   #9aa0b6;
  --line:      #e9ebf2;
  --bg:        #ffffff;
  --bg-soft:   #f6f7fb;
  --dark:      #1a1838;
  --dark-2:    #15132e;
  --dark-card: #211f44;
  --radius:    14px;
  --shadow-sm: 0 6px 24px rgba(20, 22, 50, 0.06);
  --shadow-md: 0 18px 50px rgba(20, 22, 50, 0.10);
  --shadow-lg: 0 30px 80px rgba(20, 22, 50, 0.16);
  --maxw: 1200px;
  --ff-head: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eyebrow::before { content: "//"; font-style: normal; opacity: 0.7; }
.eyebrow.light { color: #8db4ff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 30px rgba(47, 107, 255, 0.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(47, 107, 255, 0.42); }
.btn-light { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-3px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-3px); }
.btn-sm { padding: 10px 18px; font-size: .72rem; }

/* link arrow */
.link-arrow {
  font-family: var(--ff-head);
  font-weight: 600; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 7px;
  transition: gap .2s ease, color .2s ease;
}
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 13px; height: 13px; }

/* ---------- Placeholder ---------- */
.ph {
  position: relative;
  background-color: #eef1f8;
  background-image: repeating-linear-gradient(135deg, rgba(47,107,255,.07) 0 12px, rgba(47,107,255,0) 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
  font-family: var(--ff-mono);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden;
}
.ph.dark { background-color: #20203f; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,0) 12px 24px); color: rgba(255,255,255,.5); }
.ph span { padding: 4px 10px; border: 1px dashed currentColor; border-radius: 6px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--dark-2);
  color: rgba(255,255,255,.7);
  font-size: .8rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar .socials { display: flex; gap: 16px; }
.topbar .socials a { opacity: .65; transition: opacity .2s; }
.topbar .socials a:hover { opacity: 1; }
.topbar .socials svg { width: 14px; height: 14px; }
.topbar .meta { display: flex; gap: 26px; }
.topbar .meta span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .meta svg { width: 13px; height: 13px; opacity: .7; }

/* ---------- Search panel ---------- */
.search-panel { position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: #fff; box-shadow: var(--shadow-md); transform: translateY(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.search-panel.open { transform: translateY(0); }
.search-form { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.search-form .si { width: 22px; height: 22px; color: var(--blue); flex: none; }
.search-form input { flex: 1; border: none; outline: none; font-family: var(--ff-head); font-size: 1.25rem; color: var(--ink); background: transparent; padding: 8px 0; min-width: 0; }
.search-form input::placeholder { color: var(--muted-2); }
.search-form .search-close { width: 40px; height: 40px; border: none; background: var(--bg-soft); border-radius: 9px; font-size: 1.5rem; color: var(--ink-2); cursor: pointer; line-height: 1; display: grid; place-items: center; flex: none; transition: background .2s; }
.search-form .search-close:hover { background: var(--line); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 3px; font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand .mark { width: 40px; height: 40px; flex: none; display: block; }
.brand b { font-weight: 800; margin-left: 0.14em; }
.brand .lo { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; position: relative; padding: 6px 0; transition: color .2s; }
.nav a .caret { width: 8px; height: 8px; opacity: .5; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--grad-brand); transition: width .25s ease; }
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header .actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); background: transparent; border: none; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--bg-soft); color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-dot { position: relative; }
.cart-dot::after { content: "2"; position: absolute; top: 2px; right: 2px; width: 15px; height: 15px; font-size: .6rem; font-family: var(--ff-head); font-weight: 700; color: #fff; background: var(--blue); border-radius: 50%; display: grid; place-items: center; }
.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: #0e1330; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; }
.hero-left {
  position: relative; z-index: 3;
  padding: 88px 60px 88px 0;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; background: var(--grad-cool); }
.hero-bg::before { /* globe-ish rings */
  content: ""; position: absolute; left: -10%; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(255,255,255,.10) 58.5%, transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 72%, rgba(255,255,255,.08) 72.5%, transparent 74%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 80% -10%, rgba(255,255,255,.16), transparent 60%); }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); text-transform: uppercase; letter-spacing: -0.03em; }
.hero h1 .stroke { -webkit-text-stroke: 1.5px rgba(255,255,255,.55); color: transparent; }
.hero p.lead { max-width: 440px; color: rgba(255,255,255,.85); font-size: 1.02rem; }
.hero .hero-cta { margin-top: 8px; }

.hero-media { position: relative; }
.hero-media .ph { position: absolute; inset: 0; height: 100%; background-color: #0e1330; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.hero-media .ph { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, rgba(255,255,255,0) 14px 28px); color: rgba(255,255,255,.45); }
.hero-media::before { /* diagonal seam glow */
  content: ""; position: absolute; left: 16%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.25); transform: skewX(-13deg); z-index: 4;
}

/* vertical floating widgets on far right (like reference) */
.hero-rail { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.hero-rail a { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; }
.hero-rail a:nth-child(1){ background:#0e1330; }
.hero-rail a:nth-child(2){ background:#ff6b5e; }
.hero-rail a:nth-child(3){ background:#23c08a; }
.hero-rail svg { width: 16px; height: 16px; }

/* ============================================================
   INDUSTRY STRIP (overlapping cards)
   ============================================================ */
.industries { position: relative; margin-top: -64px; z-index: 20; }
.ind-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 24px 30px;
  scrollbar-width: none;
}
.ind-track::-webkit-scrollbar { display: none; }
.ind-card {
  scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 30px 28px 28px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ind-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.ind-card .corner { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 44px 44px 0; border-color: transparent var(--cyan) transparent transparent; opacity: .9; }
.ind-card .mono { font-family: var(--ff-head); font-weight: 800; font-size: 3.4rem; color: var(--ink); opacity: .12; line-height: 1; margin-bottom: 10px; }
.ind-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.ind-card p { color: var(--muted); font-size: .9rem; }
.ind-dots { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.ind-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: all .2s; padding: 0; }
.ind-dots button.on { width: 26px; border-radius: 5px; background: var(--grad-brand); }

/* ============================================================
   ABOUT / PARTNER
   ============================================================ */
.about { padding: 110px 0 90px; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media .ph { aspect-ratio: 1/1; border-radius: 20px; }
.about-media .badge {
  position: absolute; left: -18px; bottom: 40px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.about-media .badge .num { font-family: var(--ff-head); font-weight: 800; font-size: 1.7rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-media .badge .lbl { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.about h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 14px 0 18px; }
.about .copy { color: var(--muted); margin-bottom: 16px; }
.about .copy em { color: var(--ink-2); font-style: italic; font-weight: 600; }
.video-row { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.video-btn { width: 58px; height: 58px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; cursor: pointer; border: none; position: relative; box-shadow: 0 12px 30px rgba(47,107,255,.4); }
.video-btn svg { width: 18px; height: 18px; margin-left: 3px; }
.video-btn::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(47,107,255,.35); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.video-row .vtxt { font-family: var(--ff-head); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

/* ============================================================
   DARK SERVICES BAND
   ============================================================ */
.dark-band { background: var(--dark); color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden; }
.dark-band::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 380px at 80% 0%, rgba(47,107,255,.22), transparent 60%); }
.dark-band .head { text-align: center; position: relative; z-index: 2; margin-bottom: 50px; }
.dark-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); max-width: 620px; margin: 12px auto 0; }
.dband-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; z-index: 2; }
.dband-card { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 34px 30px; position: relative; overflow: hidden; transition: transform .3s ease, border-color .3s; }
.dband-card:hover { transform: translateY(-8px); border-color: rgba(47,107,255,.5); }
.dband-card .ic { width: 56px; height: 56px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 22px; position: absolute; top: 30px; right: 30px; }
.dband-card .ic svg { width: 26px; height: 26px; color: #fff; }
.dband-card h3 { font-size: 1.3rem; max-width: 60%; margin-bottom: 14px; }
.dband-card p { color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: 22px; }
.dband-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.dband-card li a { display: block; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--ff-head); font-weight: 600; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 9px; transition: color .2s, padding-left .2s; }
.dband-card li a::before { content: "//"; color: var(--cyan); }
.dband-card li a:hover { color: #fff; padding-left: 6px; }

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logos { background: var(--bg-soft); padding: 38px 0; }
.logos .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.logo-item { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; opacity: .65; transition: opacity .25s, color .25s; }
.logo-item:hover { opacity: 1; color: var(--ink); }
.logo-item .glyph { width: 26px; height: 26px; border-radius: 7px; background: currentColor; opacity: .35; }

/* ---------- Brand marquee ---------- */
.brandbar { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track { display: flex; width: max-content; animation: brand-scroll 42s linear infinite; }
.brandbar:hover .brand-track { animation-play-state: paused; }
.brand-set { display: flex; align-items: center; gap: 70px; padding-right: 70px; }
.brand-set img, .brand-set svg { height: 27px; width: auto; opacity: .5; transition: opacity .25s ease, transform .25s ease; }
.brand-set img:hover, .brand-set svg:hover { opacity: 1; transform: translateY(-2px); }
@keyframes brand-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .brand-track { animation: none; } }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services { padding: 96px 0 90px; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 460px; margin-top: 12px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.center h2 { max-width: 560px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 50px; }
.svc-card { text-align: center; padding: 30px 26px; border-radius: var(--radius); transition: transform .3s ease, box-shadow .3s ease, background .3s; }
.svc-card:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateY(-6px); }
.svc-card .ic { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-soft); color: var(--blue); transition: background .3s, color .3s; }
.svc-card:hover .ic { background: var(--grad-brand); color: #fff; }
.svc-card .ic svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: .9rem; }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 0 0 96px; }
.stats-inner { background: var(--grad-cool); border-radius: 18px; padding: 48px 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.stats-inner::after { content:""; position:absolute; inset:0; background: radial-gradient(500px 200px at 90% 120%, rgba(255,255,255,.2), transparent 60%); }
.stat { text-align: center; color: #fff; position: relative; z-index: 2; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.2); }
.stat .n { font-family: var(--ff-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stat .l { font-family: var(--ff-head); font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 10px; opacity: .9; display: flex; align-items: center; justify-content: center; gap: 6px; }
.stat .l::before { content: "//"; opacity: .6; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { padding: 0 0 96px; }
.filter { display: flex; gap: 10px; justify-content: center; margin-bottom: 34px; flex-wrap: wrap; }
.filter button {
  font-family: var(--ff-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  padding: 9px 20px; border-radius: 30px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  cursor: pointer; transition: all .22s ease;
}
.filter button:hover { color: var(--blue); border-color: var(--blue); }
.filter button.on { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(47,107,255,.32); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
  transition: opacity .35s ease, transform .35s ease;
}
.work .ph { position: absolute; inset: 0; height: 100%; }
.work .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(47,63,230,.86));
  opacity: 0; transition: opacity .35s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff;
}
.work:hover .overlay { opacity: 1; }
.work:hover { transform: translateY(-4px); }
.work .overlay .cat { font-family: var(--ff-head); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #bcd0ff; }
.work .overlay h4 { font-size: 1.2rem; margin-top: 4px; }
.work .plus { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .35s ease; }
.work:hover .plus { transform: scale(1) rotate(0); }
.work.hide { display: none; }
.portfolio .more { text-align: center; margin-top: 38px; }

/* ============================================================
   TECH BAND
   ============================================================ */
.tech { position: relative; color: #fff; overflow: hidden; }
.tech .ph { position: absolute; inset: 0; height: 100%; }
.tech .tint { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(20,18,46,.95) 0%, rgba(26,24,56,.82) 45%, rgba(26,24,56,.4) 100%); }
.tech .tri { position: absolute; left: -40px; top: 0; bottom: 0; width: 320px; background: var(--grad-cool); opacity: .9; clip-path: polygon(0 0, 80% 0, 30% 100%, 0 100%); }
.tech .container { position: relative; z-index: 3; padding: 96px 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.tech h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 14px 0 18px; max-width: 460px; }
.tech p { color: rgba(255,255,255,.8); max-width: 440px; margin-bottom: 26px; }
.tech .checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; max-width: 480px; }
.tech .checks li { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: .94rem; }
.tech .checks .chk { width: 22px; height: 22px; border-radius: 6px; background: var(--grad-brand); display: grid; place-items: center; flex: none; }
.tech .checks .chk svg { width: 12px; height: 12px; color: #fff; }
.tech-index { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.ti-item { aspect-ratio: 1/1; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(255,255,255,.04); transition: background .3s, transform .3s; }
.ti-item:hover { background: rgba(47,107,255,.22); transform: translateY(-5px); }
.ti-item svg { width: 30px; height: 30px; color: #8db4ff; }
.ti-item span { font-family: var(--ff-head); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }

/* ============================================================
   NEWS
   ============================================================ */
.news { padding: 96px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.post .thumb { position: relative; aspect-ratio: 16/10; }
.post .thumb .ph { position: absolute; inset: 0; height: 100%; }
.post .tags { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 6px; }
.post .tags span { font-family: var(--ff-head); font-weight: 600; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 5px; background: var(--blue); color: #fff; }
.post .tags span:nth-child(2){ background: var(--indigo); }
.post .body { padding: 24px 24px 26px; }
.post .meta { font-size: .78rem; color: var(--muted-2); display: flex; gap: 14px; margin-bottom: 12px; }
.post .meta span { display: inline-flex; align-items: center; gap: 6px; }
.post .meta svg { width: 12px; height: 12px; }
.post h3 { font-size: 1.18rem; margin-bottom: 16px; }
.post:hover h3 { color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark-2); color: rgba(255,255,255,.62); padding: 78px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .02em; margin-bottom: 22px; }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: .9rem; transition: color .2s, padding-left .2s; }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer .fabout { font-size: .9rem; max-width: 280px; margin-bottom: 20px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: rgba(255,255,255,.7); transition: background .2s, color .2s; }
.foot-social a:hover { background: var(--grad-brand); color: #fff; }
.foot-social svg { width: 15px; height: 15px; }
.sub-form { display: flex; gap: 0; margin-top: 6px; max-width: 320px; }
.sub-form input { flex: 1; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; padding: 13px 16px; border-radius: 8px 0 0 8px; font-family: var(--ff-body); font-size: .9rem; outline: none; transition: border-color .2s; }
.sub-form input::placeholder { color: rgba(255,255,255,.4); }
.sub-form input:focus { border-color: var(--blue); }
.sub-form button { border: none; background: var(--grad-brand); color: #fff; width: 50px; border-radius: 0 8px 8px 0; cursor: pointer; display: grid; place-items: center; }
.sub-form button svg { width: 18px; height: 18px; }
.sub-msg { font-size: .8rem; margin-top: 10px; min-height: 18px; }
.sub-msg.ok { color: #5ee0a8; }
.sub-msg.err { color: #ff8a7a; }
.sub-note { font-size: .82rem; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; }
.foot-bottom .brand { margin: 0; font-size: 1.1rem; }
.foot-bottom .links { display: flex; gap: 22px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   MOBILE
   ============================================================ */
.mobile-nav { position: fixed; inset: 0; z-index: 80; background: var(--dark-2); color: #fff; transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column; padding: 30px 28px; }
.mobile-nav.open { transform: none; }
.mobile-nav .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav a.m { font-family: var(--ff-head); font-weight: 600; font-size: 1.3rem; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
/* WordPress-generated menus */
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: var(--blue); }
.nav .current-menu-item > a::after, .nav .current_page_item > a::after { width: 100%; }
.mobile-nav .m-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-nav .m-menu a { display: block; font-family: var(--ff-head); font-weight: 600; font-size: 1.3rem; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.mobile-nav .m-menu .sub-menu { display: none; }

/* mobile-nav action row */
.mobile-nav .m-cta { margin-top: 26px; }
.mobile-nav .m-cta .btn { width: 100%; justify-content: center; }
.mobile-nav .m-meta { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.6); font-size: .85rem; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav .m-meta span { display: inline-flex; align-items: center; gap: 9px; }
.mobile-nav .m-meta svg { width: 14px; height: 14px; opacity: .7; }
.mobile-nav .m-social { display: flex; gap: 10px; margin-top: 16px; }
.mobile-nav .m-social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.mobile-nav .m-social svg { width: 15px; height: 15px; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { padding: 64px 4px 56px; text-align: left; }
  .hero-media { min-height: 320px; margin: 0 -24px; }
  .hero-media .ph { clip-path: none; }
  .hero-media::before { display: none; }
  .hero-rail { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .dband-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
  .tech .container { grid-template-columns: 1fr; }
  .tech .tri { width: 200px; opacity: .5; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .foot-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* header */
  .topbar { display: none; }
  .nav { display: none; }
  .header .actions .icon-btn:not(.burger) { display: none; }
  .header .actions #quoteBtn { display: none; }
  .burger { display: grid; }
  .header .container { height: 64px; }
  .brand { font-size: 1.15rem; }

  /* hero */
  .hero-left { padding: 52px 0 48px; gap: 18px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .hero p.lead { font-size: .98rem; }
  .hero .btn { width: 100%; justify-content: center; }

  /* industry strip: clean, no hero overlap on mobile */
  .industries { margin-top: 0; padding-top: 30px; background: var(--bg-soft); }
  .ind-track { grid-auto-columns: 84%; gap: 16px; padding: 4px 18px 30px; }
  .ind-card { box-shadow: var(--shadow-sm); }

  /* about */
  .about { padding: 70px 0 60px; }
  .about-media .ph { aspect-ratio: 4/3; }
  .about-media .badge { left: 16px; bottom: -18px; padding: 13px 16px; }
  .about h2 { font-size: 1.8rem; }

  /* dark band */
  .dark-band { padding: 64px 0 70px; }
  .dband-card { padding: 28px 22px; }
  .dband-card h3 { max-width: 70%; font-size: 1.2rem; }
  .dband-card .ic { width: 46px; height: 46px; top: 26px; right: 22px; }
  .dband-card .ic svg { width: 22px; height: 22px; }

  /* services */
  .services { padding: 64px 0 60px; }
  .sec-head { flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
  .sec-head h2 { font-size: 1.85rem; }
  .svc-grid { grid-template-columns: 1fr; gap: 8px; }
  .svc-card { background: #fff; box-shadow: var(--shadow-sm); }

  /* stats */
  .stats { padding: 0 0 64px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 34px 0; padding: 40px 20px; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.2); padding-top: 34px; }

  /* portfolio */
  .portfolio { padding: 0 0 64px; }
  .filter { gap: 8px; }
  .filter button { padding: 8px 16px; font-size: .78rem; }
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .work .overlay { opacity: 1; background: linear-gradient(180deg, transparent 45%, rgba(47,63,230,.88)); }
  .work .plus { transform: scale(1) rotate(0); }

  /* tech */
  .tech .container { padding: 64px 24px; gap: 40px; }
  .tech h2 { font-size: 1.85rem; }
  .tech .checks { grid-template-columns: 1fr; }
  .tech-index { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ti-item { border-radius: 12px; gap: 8px; }
  .ti-item svg { width: 24px; height: 24px; }
  .ti-item span { font-size: .68rem; }

  /* news */
  .news { padding: 64px 0; }
  .news-grid { grid-template-columns: 1fr; gap: 20px; }

  /* footer */
  .footer { padding: 60px 0 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid > :first-child, .foot-grid > :last-child { grid-column: auto; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; align-items: center; }
  .sub-form { max-width: 100%; }

  /* consistent page side padding so cards & images are inset and fully rounded on both sides */
  :root { --side: 22px; }
  .container,
  .services, .portfolio, .news, .about, .stats { padding-left: var(--side, 22px); padding-right: var(--side, 22px); }
  .hero-media { margin-left: calc(-1 * var(--side, 22px)); margin-right: calc(-1 * var(--side, 22px)); }
}

@media (max-width: 420px) {
  :root { --side: 18px; }
  .hero h1 { font-size: clamp(2rem, 12vw, 2.6rem); }
  .ind-track { grid-auto-columns: 90%; }
  .tech-index { grid-template-columns: repeat(2, 1fr); }
  .stat .n { font-size: 2.2rem; }
}


/* ---------- WordPress template helpers ---------- */
.page-title{font-family:var(--ff-head);font-size:clamp(2rem,4vw,2.8rem);letter-spacing:-.02em;margin:12px 0 22px}
.page-content{color:var(--ink-2);font-size:1.02rem;line-height:1.75}
.page-content h2{font-family:var(--ff-head);color:var(--ink);font-size:1.6rem;margin:30px 0 12px}
.page-content h3{font-family:var(--ff-head);color:var(--ink);font-size:1.25rem;margin:24px 0 10px}
.page-content p{margin:0 0 16px}
.page-content ul{margin:0 0 18px;padding-left:20px}
.page-content li{margin:6px 0}
.page-content a{color:var(--blue);font-weight:600}
.post .body h3 a{color:inherit}
.nav ul{display:flex;gap:30px;list-style:none;margin:0;padding:0}
.nav li{position:relative}
.pager{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.pager .page-numbers,.navigation.pagination .page-numbers{font-family:var(--ff-head);font-weight:600;padding:9px 16px;border-radius:8px;border:1px solid var(--line);color:var(--ink-2);transition:border-color .2s,color .2s,background .2s}
.pager a.page-numbers:hover,.navigation.pagination a.page-numbers:hover{border-color:var(--blue);color:var(--blue)}
.pager .page-numbers.current,.navigation.pagination .page-numbers.current{background:var(--grad-brand);border-color:transparent;color:#fff}
.navigation.pagination{margin-top:44px}
.navigation.pagination .nav-links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.navigation.pagination .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
