/*
Theme Name: Nexolite
Theme URI: https://thenexolite.com
Author: Nexolite
Author URI: https://thenexolite.com
Description: The Nexolite agency theme with a Team page — a wide, modern homepage with a split hero, an audience section, a partner block with figures, a newsletter band and a dark link footer. Ships with Home, About, Services, Work and Contact templates plus a working contact form.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
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: nexolite
Tags: agency, business, ecommerce, custom-logo, custom-menu, two-columns
*/

/* ===============================================================
   1. Tokens
   =============================================================== */
:root {
  --teal: #037c6e;
  --teal-dark: #02635a;
  --mint: #53b59d;
  --mint-soft: #e8f4f0;
  --ink: #0f1211;
  --ink-2: #2c3634;
  --body: #4c5654;
  --muted: #7a8481;
  --white: #ffffff;
  --soft: #f5f8f7;
  --line: #e3e9e7;
  --footer: #1b1e1d;
  --footer-base: #0a0c0b;

  --display: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --body-font: "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: 22px;
  --radius: 10px;
  --step: clamp(64px, 7vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.1; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); }
h4 { font-size: 17px; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ===============================================================
   2. Utilities
   =============================================================== */
.nx-wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.nx-narrow { max-width: 780px; }
.nx-center { text-align: center; margin-inline: auto; }

.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 22px;
}
.nx-eyebrow::before { content: ""; width: 2px; height: 17px; background: var(--mint); }
.nx-center .nx-eyebrow::before { display: none; }

.nx-lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--body); max-width: 62ch; }
.nx-center .nx-lead { margin-inline: auto; }

.nx-skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 999; }
.nx-skip:focus { left: 12px; top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ===============================================================
   3. Buttons
   =============================================================== */
.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 14px 12px 26px;
  border-radius: var(--radius);
  border: 1.5px solid var(--teal);
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.nx-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.nx-btn__arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 15px;
  line-height: 1;
  transition: transform .2s ease;
}
.nx-btn:hover .nx-btn__arrow { transform: translate(2px, -2px); }

.nx-btn--outline { background: transparent; color: var(--teal); border-color: var(--line); }
.nx-btn--outline:hover { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.nx-btn--outline .nx-btn__arrow { background: var(--mint-soft); }

.nx-btn--dark { background: var(--ink); border-color: var(--ink); }
.nx-btn--dark:hover { background: #000; border-color: #000; }
.nx-btn--dark .nx-btn__arrow { color: var(--ink); }

.nx-btn--plain { padding-right: 26px; }
.nx-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.nx-center .nx-actions { justify-content: center; }

/* ===============================================================
   4. Header
   =============================================================== */
.nx-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nx-header__inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }

.nx-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nx-brand img { max-height: 44px; width: auto; }
.nx-brand__mark { width: 36px; height: 36px; flex: none; }
.nx-brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .01em;
  color: var(--ink);
  text-transform: uppercase;
}

.nx-nav > ul { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.nx-nav a {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
  padding: 28px 0;
  display: inline-block;
}
.nx-nav a:hover { color: var(--teal); }
.nx-nav .current-menu-item > a,
.nx-nav .current_page_item > a { color: var(--teal); }

/* dropdowns */
.nx-nav li { position: relative; }
.nx-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nx-nav .sub-menu {
  position: absolute;
  top: 100%; left: -18px;
  min-width: 232px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15,18,17,.09);
  padding: 10px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nx-nav li:hover > .sub-menu,
.nx-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nx-nav .sub-menu a { display: block; padding: 9px 20px; font-size: 15.5px; }

.nx-header__cta { display: none; }
@media (min-width: 1080px) { .nx-header__cta { display: inline-flex; } }

.nx-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 42px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer;
}
.nx-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1023px) {
  .nx-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 6px 0 16px; display: none; max-height: 78vh; overflow-y: auto;
  }
  .nx-nav.is-open { display: block; }
  .nx-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nx-nav > ul > li { border-bottom: 1px solid var(--line); }
  .nx-nav a { display: block; padding: 14px var(--gutter); }
  .nx-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 8px; min-width: 0;
  }
  .nx-nav .sub-menu a { padding-left: calc(var(--gutter) + 16px); color: var(--body); }
}
@media (min-width: 1024px) { .nx-burger { display: none; } }

/* ===============================================================
   5. Sections
   =============================================================== */
.nx-section { padding-block: var(--step); }
.nx-section--soft { background: var(--soft); }
.nx-section--tight { padding-block: clamp(46px, 5vw, 74px); }
.nx-head { margin-bottom: 56px; }

/* ===============================================================
   6. Hero
   =============================================================== */
.nx-hero { padding-block: clamp(48px, 6vw, 92px) clamp(56px, 7vw, 100px); overflow: hidden; }
.nx-hero__grid { display: grid; gap: clamp(44px, 5vw, 70px); align-items: center; }
@media (min-width: 1000px) { .nx-hero__grid { grid-template-columns: 1.02fr 1fr; } }

.nx-hero h1 { margin-bottom: 26px; }
.nx-hero h1 span { color: var(--teal); }
.nx-hero .nx-lead { font-size: clamp(17px, 1.4vw, 19.5px); }

/* the composed visual on the right */
.nx-visual { position: relative; padding: 26px 0 0 34px; }
.nx-visual__stripes {
  position: absolute; top: 0; left: 6%; width: 46%; height: 42%;
  background-image: repeating-linear-gradient(90deg, var(--mint) 0 1.5px, transparent 1.5px 13px);
  opacity: .5;
}
.nx-visual__block {
  position: relative;
  aspect-ratio: 5 / 4.4;
  border-radius: 0 0 0 96px;
  background: linear-gradient(150deg, var(--mint) 0%, var(--teal) 78%);
  margin-left: 12%;
}
.nx-visual__block::after {
  content: "";
  position: absolute; left: 12%; right: 8%; bottom: -14px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 1.5px, transparent 1.5px 11px);
  opacity: .7;
}
.nx-visual__img {
  position: absolute;
  inset: 12% -6% 16% -14%;
  display: flex; align-items: center; justify-content: center;
}
.nx-visual__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 40px rgba(3,124,110,.28)); }

/* fallback panel when no hero image is set */
.nx-panel {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 26px 60px rgba(15,18,17,.16);
  overflow: hidden;
  border: 1px solid var(--line);
}
.nx-panel__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; background: var(--ink); color: #fff;
  font-family: var(--display); font-size: 13px; letter-spacing: .06em;
}
.nx-panel__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); display: inline-block; }
.nx-panel__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2);
}
.nx-panel__row:last-child { border-bottom: 0; }
.nx-panel__row b { font-family: var(--display); font-weight: 500; }
.nx-panel__pill {
  font-family: var(--display); font-size: 12px; font-weight: 500;
  padding: 4px 11px; border-radius: 20px; background: var(--mint-soft); color: var(--teal-dark);
}
.nx-panel__pill--live { background: var(--teal); color: #fff; }

.nx-visual__caption {
  margin-top: 26px;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.7vw, 36px);
  color: var(--teal);
  letter-spacing: -0.02em;
  min-height: 1.2em;
}

/* ===============================================================
   7. Audience columns ("Who we serve")
   =============================================================== */
.nx-cols { display: grid; gap: 0; }
@media (min-width: 900px) { .nx-cols { grid-template-columns: repeat(3, 1fr); } }
.nx-col { padding: 8px 34px 30px; text-align: center; border-bottom: 1px solid var(--line); }
.nx-col:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .nx-col { border-bottom: 0; border-right: 1px solid var(--line); }
  .nx-col:last-child { border-right: 0; }
}
.nx-icon {
  width: 58px; height: 58px; margin: 0 auto 22px;
  border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); background: #fff;
}
.nx-icon svg { width: 26px; height: 26px; }
.nx-col h3 { margin-bottom: 14px; }
.nx-col p { font-size: 16px; }

/* ===============================================================
   8. Service cards
   =============================================================== */
.nx-grid { display: grid; gap: 24px; }
.nx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.nx-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.nx-card:hover { border-color: var(--mint); box-shadow: 0 18px 40px rgba(3,124,110,.10); transform: translateY(-3px); }
.nx-card .nx-icon { margin: 0 0 22px; }
.nx-card h3 { margin-bottom: 12px; }
.nx-card p { font-size: 16px; margin-bottom: 0; }
.nx-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.nx-tags li {
  font-family: var(--display); font-size: 12.5px; font-weight: 500;
  padding: 5px 12px; border-radius: 20px;
  background: var(--mint-soft); color: var(--teal-dark);
}

/* ===============================================================
   9. Partner block + figures
   =============================================================== */
.nx-partner { background: var(--soft); border-top: 2px solid var(--mint); }
.nx-partner__grid { display: grid; gap: clamp(34px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .nx-partner__grid { grid-template-columns: .85fr 1.15fr; } }

.nx-partner__art { position: relative; }
.nx-partner__art img { border-radius: 14px; }
.nx-orbit {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(83,181,157,.16) 0 40%, transparent 41%),
    conic-gradient(from 200deg, var(--mint) 0deg, var(--teal) 130deg, transparent 240deg);
  -webkit-mask: radial-gradient(circle, transparent 0 54%, #000 55%);
  mask: radial-gradient(circle, transparent 0 54%, #000 55%);
  max-width: 340px;
  margin-inline: auto;
}
.nx-partner__badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(15,18,17,.14);
  padding: 20px 26px;
  text-align: center;
  min-width: 190px;
}
.nx-partner__badge strong {
  display: block;
  font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--ink); line-height: 1.1;
}
.nx-partner__badge span { font-size: 14px; color: var(--muted); }

.nx-figures { display: grid; gap: 16px; margin: 34px 0; }
@media (min-width: 460px) { .nx-figures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .nx-figures { grid-template-columns: repeat(4, 1fr); } }
.nx-figure { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; text-align: center; }
.nx-figure dt { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); color: var(--ink); line-height: 1.1; }
.nx-figure dd { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ===============================================================
   10. Process
   =============================================================== */
.nx-steps { display: grid; gap: 20px; counter-reset: nx; }
@media (min-width: 900px) { .nx-steps { grid-template-columns: repeat(4, 1fr); } }
.nx-step { border-top: 2px solid var(--line); padding-top: 22px; transition: border-color .2s ease; }
.nx-step:hover { border-top-color: var(--teal); }
.nx-step__no { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--mint); letter-spacing: .1em; }
.nx-step h3 { margin: 8px 0 10px; }
.nx-step p { font-size: 15.5px; margin: 0; }

/* ===============================================================
   11. Work cards
   =============================================================== */
.nx-work { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .25s ease, transform .25s ease; }
.nx-work:hover { box-shadow: 0 20px 44px rgba(15,18,17,.10); transform: translateY(-3px); }
.nx-work__plate { aspect-ratio: 16 / 10; position: relative; background: var(--teal); }
.nx-work__plate span {
  position: absolute; left: 20px; bottom: 16px;
  font-family: var(--display); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.nx-work__plate[data-plate="1"] { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 2px, transparent 2px 16px); }
.nx-work__plate[data-plate="2"] { background: linear-gradient(140deg, var(--mint), var(--teal)); }
.nx-work__plate[data-plate="3"] { background: var(--ink); background-image: radial-gradient(circle at 68% 34%, rgba(83,181,157,.7) 0 26%, transparent 27%); }
.nx-work__plate[data-plate="4"] { background: var(--mint); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.2) 0 10px, transparent 10px 22px); }
.nx-work__plate[data-plate="5"] { background: var(--teal-dark); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 1px, transparent 1px 18px), repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 18px); }
.nx-work__plate[data-plate="6"] { background: linear-gradient(200deg, var(--ink), var(--teal-dark)); }
.nx-work__body { padding: 24px 26px 28px; }
.nx-work__meta { font-family: var(--display); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-bottom: 10px; }
.nx-work__body h3 { margin-bottom: 10px; }
.nx-work__body p { font-size: 15.5px; margin: 0; }

/* ===============================================================
   12. Lists
   =============================================================== */
.nx-list { list-style: none; margin: 0; padding: 0; }
.nx-list li { position: relative; padding: 11px 0 11px 32px; border-bottom: 1px solid var(--line); font-size: 16px; }
.nx-list li:last-child { border-bottom: 0; }
.nx-list li::before {
  content: "";
  position: absolute; left: 2px; top: 20px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* ===============================================================
   13. Newsletter band
   =============================================================== */
.nx-band { display: grid; }
@media (min-width: 900px) { .nx-band { grid-template-columns: 1fr 1fr; } }
.nx-band__art {
  position: relative;
  min-height: 300px;
  background: #fff;
  background-image:
    repeating-linear-gradient(90deg, rgba(83,181,157,.5) 0 1.5px, transparent 1.5px 14px),
    linear-gradient(180deg, #fff 0 45%, var(--mint-soft) 100%);
  background-size: 46% 44%, 100% 100%;
  background-position: 8% 0, 0 0;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.nx-band__art-inner {
  width: 100%; max-width: 400px;
  border-radius: 0 90px 0 0;
  background: linear-gradient(140deg, var(--mint), var(--teal));
  aspect-ratio: 3 / 2;
  position: relative;
}
.nx-band__art-inner::after {
  content: "";
  position: absolute; left: 8%; right: 14%; bottom: -12px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 1.5px, transparent 1.5px 11px);
}
.nx-band__form {
  background: linear-gradient(125deg, var(--mint) 0%, var(--teal) 62%, var(--teal-dark) 100%);
  color: #fff;
  padding: clamp(40px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.nx-band__form h2 { color: #fff; max-width: 22ch; }
.nx-band__form p { color: rgba(255,255,255,.88); max-width: 46ch; }
.nx-subscribe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 520px; }
.nx-subscribe input[type="email"] {
  flex: 1 1 220px;
  border: 0; border-radius: 8px;
  padding: 15px 18px;
  font-family: var(--body-font); font-size: 16px;
  background: #fff; color: var(--ink);
}
.nx-subscribe button {
  border: 0; border-radius: 8px;
  padding: 15px 30px;
  font-family: var(--display); font-size: 16px; font-weight: 500;
  background: var(--ink); color: #fff; cursor: pointer;
  transition: background .2s ease;
}
.nx-subscribe button:hover { background: #000; }
.nx-subscribe .nx-hp { position: absolute; left: -9999px; }

/* ===============================================================
   14. Forms
   =============================================================== */
.nx-contact-grid { display: grid; gap: clamp(34px, 4vw, 60px); }
@media (min-width: 980px) { .nx-contact-grid { grid-template-columns: 1.25fr .85fr; } }

.nx-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px, 3.4vw, 40px); box-shadow: 0 18px 44px rgba(15,18,17,.05); }
.nx-field { margin-bottom: 22px; }
.nx-field label { display: block; font-family: var(--display); font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 9px; }
.nx-field input, .nx-field select, .nx-field textarea {
  width: 100%;
  font-family: var(--body-font); font-size: 16px; color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 13px 15px;
  transition: border-color .2s ease, background .2s ease;
}
.nx-field textarea { min-height: 140px; resize: vertical; }
.nx-field input:focus, .nx-field select:focus, .nx-field textarea:focus { border-color: var(--teal); background: #fff; outline: none; }
.nx-field--half { display: grid; gap: 22px; }
@media (min-width: 620px) { .nx-field--half { grid-template-columns: 1fr 1fr; } }
.nx-hp { position: absolute; left: -9999px; }
.nx-note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

.nx-alert { padding: 15px 18px; border-radius: 9px; border: 1px solid var(--teal); background: var(--mint-soft); color: var(--teal-dark); margin-bottom: 24px; font-size: 16px; }
.nx-alert--bad { border-color: #c0563c; background: #fdf0ec; color: #97402b; }

.nx-detail { border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0; }
.nx-detail dt { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.nx-detail dd { margin: 0; font-size: 17px; color: var(--ink-2); }

/* ===============================================================
   15. CTA + footer
   =============================================================== */
.nx-cta { text-align: center; padding-block: clamp(56px, 6vw, 88px); }
.nx-cta h2 { margin-bottom: 14px; }

.nx-footer { background: var(--footer); color: rgba(255,255,255,.72); padding-top: clamp(50px, 5vw, 74px); font-size: 15.5px; }
.nx-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.nx-footer a:hover { color: var(--mint); }
.nx-footer__grid { display: grid; gap: 34px 30px; padding-bottom: 46px; }
@media (min-width: 700px) { .nx-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .nx-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; } }
.nx-footer h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.nx-footer ul { list-style: none; margin: 0; padding: 0; }
.nx-footer li { margin-bottom: 11px; }
.nx-footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.nx-footer__brand .nx-brand__name { color: #fff; font-size: 23px; }
.nx-footer__social { display: flex; gap: 14px; margin-top: 18px; }
.nx-footer__social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.nx-footer__social a:hover { border-color: var(--mint); }
.nx-footer__social svg { width: 17px; height: 17px; }
.nx-footer__base {
  background: var(--footer-base);
  margin-top: 10px;
  padding: 20px 0;
  font-size: 14px;
}
.nx-footer__base .nx-wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center; }
.nx-footer__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }

/* ===============================================================
   16. Prose + WP core
   =============================================================== */
.nx-prose { max-width: 74ch; }
.nx-prose h2 { margin-top: 1.5em; }
.nx-prose h3 { margin-top: 1.3em; }
.nx-prose ul, .nx-prose ol { padding-left: 1.2em; }
.nx-prose li { margin-bottom: .5em; }
.nx-prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--mint); color: var(--ink-2); font-style: italic; }

.nx-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.nx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .nx-reveal { opacity: 1; transform: none; } }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--muted); }
.sticky, .bypostauthor { display: block; }

/* ===============================================================
   17. Team cards
   =============================================================== */
.nx-team { display: grid; gap: 24px; }
@media (min-width: 700px)  { .nx-team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .nx-team { grid-template-columns: repeat(3, 1fr); } }

.nx-member {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 18, 17, .07);
  transition: box-shadow .25s ease, transform .25s ease;
}
.nx-member:hover { box-shadow: 0 20px 44px rgba(3, 124, 110, .14); transform: translateY(-3px); }

/* the fine vertical stripes on both edges */
.nx-member::before,
.nx-member::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 42px;
  background-image: repeating-linear-gradient(90deg, var(--mint) 0 1px, transparent 1px 9px);
  opacity: .28;
  pointer-events: none;
}
.nx-member::before { left: 0; }
.nx-member::after { right: 0; }

.nx-member__photo {
  width: 96px;
  height: 122px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  background: var(--mint-soft);
  position: relative;
  z-index: 1;
}
.nx-member__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  color: var(--teal);
  background: linear-gradient(150deg, var(--mint-soft), #d6ebe4);
}

.nx-member__body { position: relative; z-index: 1; min-width: 0; padding-top: 4px; }
.nx-member__body h3 { margin: 0 0 8px; font-size: clamp(19px, 1.7vw, 23px); }
.nx-member__role { margin: 0 0 16px; font-size: 15.5px; color: var(--body); }

.nx-member__in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-2);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nx-member__in svg { width: 16px; height: 16px; }
.nx-member__in:hover { border-color: var(--teal); color: var(--teal); background: var(--mint-soft); }

/* ===============================================================
   18. Mobile refinements
   =============================================================== */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; }

@media (max-width: 1023px) {
  .nx-header__inner { min-height: 68px; }
  .nx-brand__name { font-size: 21px; }
  .nx-brand__mark { width: 30px; height: 30px; }
  .nx-brand img { max-height: 36px; }
}

/* the hero visual is absolutely positioned on desktop — flatten it on small screens
   so nothing hangs off the edge */
@media (max-width: 999px) {
  .nx-hero { padding-top: 34px; }
  .nx-visual { padding: 18px 0 0; max-width: 560px; margin-inline: auto; width: 100%; }
  .nx-visual__stripes { left: 2%; width: 42%; height: 34%; }
  .nx-visual__block { margin-left: 8%; aspect-ratio: 5 / 3.6; border-radius: 0 0 0 70px; }
  .nx-visual__img { inset: 12% 3% 14% 3%; }
  .nx-visual__caption { margin-top: 20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --step: 56px; }

  h1 { font-size: clamp(30px, 8.4vw, 38px); }
  h2 { font-size: clamp(25px, 6.6vw, 32px); }
  body { font-size: 16px; line-height: 1.68; }

  .nx-btn { font-size: 15px; padding: 11px 12px 11px 20px; gap: 11px; width: 100%; justify-content: space-between; }
  .nx-btn__arrow { width: 30px; height: 30px; }
  .nx-actions { gap: 10px; }

  .nx-visual__block { aspect-ratio: 5 / 4; border-radius: 0 0 0 52px; }
  .nx-visual__img { inset: 10% 2% 12% 2%; }
  .nx-panel__bar { padding: 11px 14px; font-size: 12px; }
  .nx-panel__row { padding: 11px 14px; font-size: 13.5px; gap: 10px; }
  .nx-panel__pill { font-size: 11px; padding: 3px 9px; }

  .nx-col { padding: 8px 4px 26px; }
  .nx-card { padding: 26px 22px; }
  .nx-work__body { padding: 20px 22px 24px; }
  .nx-form { padding: 24px 20px; border-radius: 14px; }
  .nx-field { margin-bottom: 18px; }

  .nx-head { margin-bottom: 38px; }

  .nx-member { padding: 22px 20px; gap: 16px; }
  .nx-member::before, .nx-member::after { width: 26px; }
  .nx-member__photo { width: 78px; height: 100px; }
  .nx-member__role { margin-bottom: 12px; font-size: 14.5px; }

  .nx-band__art { min-height: 190px; padding: 24px; }
  .nx-band__form { padding: 34px 20px 40px; }
  .nx-subscribe { gap: 10px; }
  .nx-subscribe input[type="email"] { flex: 1 1 100%; }
  .nx-subscribe button { flex: 1 1 100%; }

  .nx-footer__grid { gap: 30px; padding-bottom: 34px; }
  .nx-footer__base .nx-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nx-footer__legal { gap: 8px 16px; }
}

@media (max-width: 400px) {
  .nx-member { flex-direction: column; }
  .nx-member__photo { width: 88px; height: 110px; }
}

/* comfortable tap targets on touch devices */
@media (hover: none) {
  .nx-nav a { padding-block: 14px; }
  .nx-footer li { margin-bottom: 14px; }
}

/* uploaded footer logo */
.nx-footer__logo { display: inline-block; margin-bottom: 18px; }
.nx-footer__logo img { max-height: 52px; width: auto; }
@media (max-width: 640px) { .nx-footer__logo img { max-height: 44px; } }

/* ===============================================================
   19. Service cards with image tops
   =============================================================== */
.nx-card--img { padding: 0; overflow: hidden; }
.nx-card--img .nx-card__plate {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.nx-card--img .nx-card__plate img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.nx-card--img:hover .nx-card__plate img { transform: scale(1.04); }
.nx-card--img .nx-card__body { padding: 26px 28px 30px; }
.nx-card--img .nx-card__body .nx-icon { margin: 0 0 16px; }
@media (max-width: 640px) {
  .nx-card--img .nx-card__body { padding: 22px 20px 24px; }
}

/* ===============================================================
   20. Work plate with image
   =============================================================== */
.nx-work__plate { overflow: hidden; }
.nx-work__plate img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .35s ease, transform .4s ease;
}
.nx-work:hover .nx-work__plate img { opacity: .92; transform: scale(1.03); }
.nx-work__plate span { position: relative; z-index: 2; }

/* About image */
.nx-about-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 52px rgba(3,124,110,.18);
  display: block;
}
