/* ========================================================================== 
   REMI Companies — structural foundation
   A durable, accessible base for the public site and WordPress content.
   Brand-specific composition is layered in atelier.css and remi.css.
   ========================================================================== */

/* ---------- Design tokens ---------- */

:root {
  --ink: #101c27;
  --ink-2: #07131f;
  --paper: #f3f5f4;
  --paper-2: #e7ecee;
  --cream: #f8faf9;
  --copper: #f27a2f;
  --copper-2: #ffad72;
  --copper-3: #cb5615;
  --accent-d: #6db5ef;
  --gold: #f6a35f;
  --mut: #53616d;
  --mut-d: #b4c0c9;
  --line: rgba(16, 28, 39, 0.16);
  --line-strong: rgba(16, 28, 39, 0.32);
  --line-d: rgba(243, 245, 244, 0.18);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --serif: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --accent-font: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1360px;
  --reading: 760px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(5rem, 9vw, 8.5rem);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.76, 0.28, 1);
  --shadow: 0 28px 70px -48px rgba(7, 19, 31, 0.7);
  --shadow-strong: 0 35px 90px -48px rgba(7, 19, 31, 0.9);
}

body.design-corners-soft { --radius: 16px; }
body.design-corners-square { --radius: 0; }
body.design-spacing-compact { --section: clamp(4rem, 7vw, 6rem); }
body.design-spacing-balanced { --section: clamp(4.5rem, 8vw, 7rem); }
body.design-spacing-airy { --section: clamp(5rem, 9vw, 8.5rem); }

/* ---------- Reset and accessibility ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.12vw, 1.075rem);
  line-height: 1.68;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

main {
  position: relative;
  isolation: isolate;
  min-height: 40vh;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure,
blockquote,
dl,
dd {
  margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding: 0;
}

nav ul,
nav ol,
.foot-links,
.ticks,
.comment-list {
  margin: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.17em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

::selection {
  background: var(--copper);
  color: #fff;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-d);
  outline-offset: 4px;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  overflow: visible;
  clip: auto;
  background: var(--copper);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6,
.h-xl,
.h-lg,
.h-md,
.foot-statement {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1,
.h-xl {
  font-size: clamp(3.7rem, 8vw, 8.5rem);
  line-height: 0.86;
}

h2,
.h-lg {
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.92;
}

h3,
.h-md {
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  line-height: 1;
}

h4 {
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
}

h1 em,
h2 em,
h3 em,
.accent {
  color: var(--copper);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

p {
  text-wrap: pretty;
}

.lede {
  max-width: 54ch;
  color: var(--mut);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.34rem);
  line-height: 1.62;
}

.eyebrow,
.hero-eyebrow,
.remi-kicker,
.mono-note,
.fig-cap,
.meta-row,
.entry-meta,
.post-meta,
.svc-idx,
.tl-year {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow,
.hero-eyebrow,
.remi-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  color: var(--copper-3);
}

.eyebrow::before,
.hero-eyebrow::before,
.remi-kicker::before {
  width: 38px;
  height: 2px;
  background: currentColor;
  content: "";
}

.eyebrow--bare::before {
  display: none;
}

.sec--dark h1,
.sec--dark h2,
.sec--dark h3,
.sec--dark h4,
.sec--dark h5,
.page-hero h1,
.site-foot h2,
.site-foot h3,
.site-foot .foot-statement {
  color: var(--cream);
}

.sec--dark .lede,
.page-hero .lede {
  color: var(--mut-d);
}

.sec--dark .eyebrow,
.page-hero .eyebrow,
.site-foot .eyebrow {
  color: var(--copper-2);
}

/* ---------- Shared layout ---------- */

.wrap {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  --wrap: 1500px;
}

.wrap--narrow {
  max-width: calc(var(--reading) + (var(--gutter) * 2));
}

.sec {
  position: relative;
  padding-block: var(--section);
}

.sec--sm {
  padding-block: calc(var(--section) * 0.64);
}

.sec--tint {
  background: var(--paper-2);
}

.sec--dark {
  background: var(--ink-2);
  color: var(--cream);
}

.sec--dark.sec--plain {
  background-image: none;
}

.sec-head,
.sec-head--c {
  margin-bottom: clamp(2.75rem, 5vw, 4.75rem);
}

.sec-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sec-head--c {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 0.9rem clamp(2rem, 4vw, 4.5rem);
}

.sec-head--c > :only-child,
.sec-head--c > .eyebrow {
  grid-column: 1 / -1;
}

.sec-head--c > .eyebrow {
  margin-bottom: 0;
}

.sec-head--c > h2 {
  grid-column: 1;
}

.sec-head--c > .lede {
  grid-column: 2;
  align-self: end;
  justify-self: end;
}

.sec-head > div > h2,
.sec-head--c h2,
.sec-head > h2 {
  max-width: 13ch;
}

.sec-head .lede,
.sec-head--c .lede {
  margin-top: 1.25rem;
  margin-bottom: 0.2rem;
}

.sec-head--c > div + .lede,
.sec-head--c > h2 + .lede {
  margin-top: 0;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 2rem);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split,
.split--form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.split--tight {
  align-items: start;
}

.tac {
  text-align: center;
}

/* ---------- Buttons and links ---------- */

.btn {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn::after {
  content: "\2197";
  font-size: 1.1em;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translate(2px, -2px);
}

.btn--lg {
  min-height: 58px;
  padding-inline: 1.85rem;
}

.btn--copper,
.remi-btn--accent {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
}

.btn--copper:hover,
.remi-btn--accent:hover {
  border-color: var(--copper-3);
  background: var(--copper-3);
}

.btn--ink,
.remi-btn--primary {
  border-color: var(--ink-2);
  background: var(--ink-2);
  color: #fff;
}

.btn--ink:hover,
.remi-btn--primary:hover {
  border-color: var(--copper);
  background: var(--copper);
}

.btn--gold {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
}

.btn--gold:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink-2);
}

.btn--ghost,
.remi-btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover,
.remi-btn--ghost:hover {
  border-color: var(--copper);
  color: var(--copper-3);
}

.sec--dark .btn--ghost,
.page-hero .btn--ghost,
.site-foot .btn--ghost,
.m-menu .btn--ghost {
  border-color: var(--line-d);
  color: var(--cream);
}

.sec--dark .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.site-foot .btn--ghost:hover,
.m-menu .btn--ghost:hover {
  border-color: var(--copper-2);
  color: var(--copper-2);
}

.tlink,
.remi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--copper-3);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.tlink::after,
.remi-link::after {
  content: "\2192";
  transition: transform 0.25s var(--ease);
}

.tlink:hover::after,
.remi-link:hover::after {
  transform: translateX(5px);
}

/* ---------- Utility bar and site header ---------- */

.topbar {
  position: relative;
  z-index: 125;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink-2);
  color: var(--mut-d);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar .wrap {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.topbar-bullets,
.topbar-soc {
  display: flex;
  align-items: center;
}

.topbar-bullets span {
  padding-inline: 1rem;
  border-right: 1px solid var(--line-d);
}

.topbar-bullets span:first-child {
  padding-left: 0;
}

.topbar-soc {
  gap: 0.85rem;
}

.topbar a {
  color: var(--cream);
}

.topbar a:hover {
  color: var(--copper-2);
}

.topbar-soc svg {
  width: 16px;
  height: 16px;
}

.site-head {
  position: sticky;
  z-index: 120;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 244, 0.94);
  backdrop-filter: blur(18px) saturate(1.15);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-head.is-stuck {
  background: rgba(243, 245, 244, 0.98);
  box-shadow: 0 18px 50px -38px rgba(7, 19, 31, 0.8);
}

.site-head .wrap {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.9rem, 1.8vw, 2rem);
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo,
.custom-logo {
  display: block;
  width: auto;
  max-width: min(205px, 34vw);
  max-height: 56px;
}

.brand-mark {
  color: var(--copper);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 0.3rem;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-head nav {
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.25vw, 1.45rem);
}

.nav .menu-item,
.nav > li {
  position: relative;
}

.nav > .menu-item > a,
.nav > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 90px;
  padding-block: 1.8rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.8rem, 0.76rem + 0.05vw, 0.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.085em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav > .menu-item > a::before,
.nav > li > a::before {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  background: var(--copper);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav > .menu-item > a:hover::before,
.nav > .current-menu-item > a::before,
.nav > .current-menu-ancestor > a::before {
  transform: scaleX(1);
}

.nav .caret {
  display: none;
}

.nav > .menu-item-has-children > a::after {
  width: 0.4rem;
  height: 0.4rem;
  margin: -0.2rem 0 0 0.08rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}

.nav > .menu-item-has-children:is(:hover, :focus-within, .is-menu-open) > a::after,
.nav > .menu-item-has-children:is(:hover, :focus-within, .is-menu-open) > a .caret {
  color: var(--copper-3);
  transform: translateY(0.15rem) rotate(225deg);
}

.nav .sub-menu,
.nav .sub {
  position: absolute;
  top: calc(100% - 3px);
  left: 50%;
  width: max-content;
  min-width: 240px;
  max-width: min(292px, calc(100vw - (2 * var(--gutter))));
  margin: 0;
  padding: 0.36rem 0;
  visibility: hidden;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--copper);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 24px 58px -34px rgba(7, 19, 31, 0.78);
  list-style: none;
  opacity: 0;
  overflow: visible;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav .menu-item:hover > .sub-menu,
.nav .menu-item:focus-within > .sub-menu,
.nav .menu-item.is-menu-open > .sub-menu,
.nav .has-sub:hover > .sub,
.nav .has-sub:focus-within > .sub {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav .sub-menu li,
.nav .sub li {
  margin: 0;
  padding: 0;
}

.nav .sub-menu li + li,
.nav .sub li + li {
  border-top: 1px solid var(--line);
}

.nav .sub-menu a,
.nav .sub a {
  display: flex;
  min-height: 0;
  align-items: center;
  padding: 0.64rem 0.9rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-decoration: none;
  text-transform: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.nav .sub-menu a::before,
.nav .sub a::before {
  display: none;
}

.nav .sub-menu a:hover,
.nav .sub-menu a:focus-visible,
.nav .sub a:hover,
.nav .sub a:focus-visible,
.nav .sub-menu .current-menu-item > a {
  background: rgba(242, 122, 47, 0.08);
  color: var(--copper-3);
  padding-left: 1.08rem;
}

.head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
}

.nav-phone {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.08rem, 0.98rem + 0.12vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-phone:hover {
  color: var(--copper-3);
}

.head-cta {
  min-height: 46px;
  padding: 0.8rem 1.15rem;
}

.burger {
  display: none;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}

.burger span {
  display: block;
  width: 21px;
  height: 1px;
  background: var(--ink);
}

/* ---------- Mobile menu ---------- */

.m-menu {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: flex;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  flex-direction: column;
  visibility: hidden;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--ink-2);
  color: var(--cream);
  opacity: 1;
  transform: translateX(100%);
  box-shadow: -28px 0 70px -50px rgba(0, 0, 0, 0.95);
  transition: transform 0.36s var(--ease), visibility 0.36s;
}

/* Keep the closed dialog out of pointer, focus, and visual flow even in
   browsers that do not support the inert attribute. */
.m-menu[aria-hidden="true"] {
  pointer-events: none;
}

.m-menu::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(109, 181, 239, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(109, 181, 239, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.m-menu.is-open {
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.m-menu.is-open .m-close:focus-visible {
  outline-color: var(--copper-2);
}

.m-head {
  display: flex;
  min-height: 84px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  border-bottom: 1px solid var(--line-d);
}

.m-menu .site-logo,
.m-menu .custom-logo {
  max-width: min(180px, 48vw);
  max-height: 48px;
}

.m-menu .brand-name {
  color: var(--cream);
}

.m-menu .brand-sub {
  color: var(--mut-d);
}

.m-close {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem;
  border: 0;
  background: none;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.m-close span {
  color: var(--copper-2);
  font-size: 1.5rem;
  font-weight: 300;
}

.m-nav {
  display: flex;
  width: min(100%, 720px);
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding: clamp(1rem, 3.5vh, 2.25rem) var(--gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.m-nav::-webkit-scrollbar {
  display: none;
}

.m-nav > li,
.m-nav > a,
.m-group {
  display: block;
  border-bottom: 1px solid var(--line-d);
}

.m-nav > li > a,
.m-nav > a,
.m-group > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.52rem, 1.25vh, 0.78rem) 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(2.25rem, 8.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.m-group > a::after {
  color: var(--copper-2);
  content: "+";
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
}

.m-group.is-open > a::after {
  content: "\2212";
}

.m-subwrap,
.m-group .sub-menu {
  max-height: 0;
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.25s var(--ease), visibility 0.4s;
}

.m-group.is-open .m-subwrap,
.m-group.is-open .sub-menu {
  max-height: 36rem;
  visibility: visible;
  opacity: 1;
}

.m-nav.has-open-group {
  justify-content: flex-start;
}

.m-subwrap ul,
.m-group .sub-menu {
  margin: 0;
  padding: 0.35rem 0 0.8rem 1rem;
  list-style: none;
}

.m-subwrap {
  padding: 0.35rem 0 0.8rem 1rem;
}

.m-subwrap a,
.m-group .sub-menu a {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0.55rem 0.75rem 0.55rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--mut-d);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.m-subwrap a:not(.m-subwrap-all)::before,
.m-group .sub-menu a:not(.m-subwrap-all)::before {
  position: absolute;
  left: 0.25rem;
  width: 5px;
  height: 5px;
  background: var(--copper-2);
  content: "";
  opacity: 0.7;
  transform: rotate(45deg);
}

.m-subwrap a:hover,
.m-subwrap a:focus-visible,
.m-group .sub-menu a:hover,
.m-group .sub-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: var(--copper-2);
  padding-left: 1.45rem;
}

.m-subwrap-all {
  min-height: 48px !important;
  margin-bottom: 0.15rem;
  padding: 0.65rem 0.8rem 0.65rem 0.95rem !important;
  border-top-color: rgba(242, 122, 47, 0.32) !important;
  border-left: 3px solid var(--copper-2);
  background: rgba(242, 122, 47, 0.08);
  color: var(--copper-2) !important;
  font-family: var(--display);
  font-size: 1.08rem !important;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-transform: uppercase;
}

.m-foot {
  display: flex;
  width: min(100%, 720px);
  flex: 0 0 auto;
  align-items: stretch;
  justify-content: center;
  gap: 0.8rem;
  margin: auto auto 0;
  padding: 1rem var(--gutter) max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-d);
  text-align: center;
}

.m-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
}

.m-phone span {
  margin-bottom: 0.4rem;
  color: var(--mut-d);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.m-foot .btn {
  min-width: min(100%, 260px);
}

/* ---------- Forms ---------- */

.remi-form,
.contact-form,
.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field,
.comment-form > p {
  min-width: 0;
  margin: 0;
}

.field--full,
.remi-form__full,
.comment-form-comment,
.form-submit,
.comment-notes,
.logged-in-as {
  grid-column: 1 / -1;
}

.field label,
.remi-form label,
.comment-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  min-height: 138px;
  resize: vertical;
}

select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-d);
  box-shadow: 0 0 0 3px rgba(109, 181, 239, 0.16);
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--mut) !important;
  font-family: var(--sans) !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.45;
  text-transform: none !important;
}

.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  accent-color: var(--copper);
}

/* ---------- Footer ---------- */

.site-foot {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--copper);
  background: var(--ink-2);
  color: var(--mut-d);
}

.site-foot::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(109, 181, 239, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(109, 181, 239, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.site-foot > * {
  position: relative;
}

.foot-intro {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-d);
}

.foot-statement {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 5.8rem);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(140px, 0.65fr) minmax(140px, 0.65fr) minmax(240px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.foot-brand p {
  max-width: 34ch;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.foot-h {
  margin: 0 0 1.3rem;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.foot-links li + li {
  margin-top: 0.65rem;
}

.foot-links a,
.foot-contact a {
  color: var(--mut-d);
  font-size: 0.88rem;
  text-decoration: none;
}

.foot-links a:hover,
.foot-contact a:hover {
  color: var(--copper-2);
}

.foot-soc-sq {
  display: flex;
  gap: 0.55rem;
}

.foot-soc-sq a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-d);
  color: var(--cream);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.foot-soc-sq a:hover {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
}

.foot-soc-sq svg {
  width: 17px;
  height: 17px;
}

.fc-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line-d);
}

.fc-row:last-child {
  border-bottom: 1px solid var(--line-d);
}

.fc-ic {
  color: var(--copper-2);
}

.fc-ic svg {
  width: 19px;
  height: 19px;
}

.fc-row b,
.fc-row span,
.fc-row a {
  display: block;
}

.fc-row b {
  margin-bottom: 0.18rem;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.foot-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-d);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-bot a:hover {
  color: var(--copper-2);
}

/* ---------- WordPress content ---------- */

.article,
.entry-content {
  color: var(--mut);
}

.article > * + *,
.entry-content > * + * {
  margin-top: 1.35em;
}

.article h2,
.entry-content h2,
.article h3,
.entry-content h3 {
  margin-top: 1.5em;
  color: var(--ink);
}

.article a,
.entry-content a {
  color: var(--copper-3);
  text-decoration: underline;
}

.article ul,
.entry-content ul,
.article ol,
.entry-content ol {
  padding-left: 1.25rem;
}

.article li + li,
.entry-content li + li {
  margin-top: 0.45rem;
}

.article blockquote,
.entry-content blockquote {
  padding: 1rem 0 1rem 1.4rem;
  border-left: 3px solid var(--copper);
  color: var(--ink);
  font-size: 1.15em;
}

.article table,
.entry-content table,
.capability-table {
  width: 100%;
  border-collapse: collapse;
}

.article th,
.entry-content th,
.capability-table th {
  background: var(--ink-2);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.article th,
.article td,
.entry-content th,
.entry-content td,
.capability-table th,
.capability-table td {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.wp-caption,
.alignwide,
.alignfull {
  max-width: 100%;
}

.alignleft {
  float: left;
  margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption-text,
.gallery-caption {
  margin-top: 0.55rem;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.post-thumb {
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--paper-2);
}

.post-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.entry-meta,
.post-meta {
  margin: 0.85rem 0;
  color: var(--mut);
}

.widget-area {
  position: sticky;
  top: 130px;
}

.widget {
  padding: 1.5rem 0;
  border-top: 2px solid var(--ink);
}

.widget + .widget {
  margin-top: 1rem;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li + li {
  margin-top: 0.55rem;
}

.widget a:hover {
  color: var(--copper-3);
}

.comments-area {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
}

.comment-list > li {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-numbers,
.pn {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.pn:hover {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
}

.notice {
  margin-block: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent-d);
  background: rgba(109, 181, 239, 0.1);
}

.notice-success {
  border-color: #4d9b75;
  background: rgba(77, 155, 117, 0.1);
}

/* ---------- Motion ---------- */

.remi-reveal .rv,
.remi-reveal .rv-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.remi-reveal .rv-group > :nth-child(2) { transition-delay: 0.07s; }
.remi-reveal .rv-group > :nth-child(3) { transition-delay: 0.14s; }
.remi-reveal .rv-group > :nth-child(4) { transition-delay: 0.21s; }
.remi-reveal .rv-group > :nth-child(5) { transition-delay: 0.28s; }
.remi-reveal .rv-group > :nth-child(6) { transition-delay: 0.35s; }

.remi-reveal .rv.is-in,
.remi-reveal .rv-group.is-in > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .site-head nav,
  .head-actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) and (pointer: coarse) {
  .site-head nav,
  .head-actions {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 900px) {
  .sec-head,
  .sec-head--c,
  .split,
  .split--form,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sec-head,
  .sec-head--c {
    align-items: start;
    gap: 0;
  }

  .sec-head--c > :where(div, .eyebrow, h2, h3, .lede) {
    grid-column: 1;
  }

  .sec-head--c > .lede {
    width: 100%;
    grid-column: 1;
    justify-self: start;
  }

  .sec-head--c > .lede,
  .sec-head--c > div + .lede,
  .sec-head--c > h2 + .lede {
    margin-top: 1.25rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .widget-area {
    position: static;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 88px;
  }

  .topbar {
    display: none;
  }

  .site-head .wrap {
    min-height: 76px;
  }

  .site-logo,
  .custom-logo {
    max-height: 45px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .remi-form,
  .contact-form,
  .comment-form,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    gap: 2.75rem;
  }

  .foot-bot {
    align-items: flex-start;
    flex-direction: column;
  }

  .m-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .m-phone {
    text-align: center;
  }

  .m-foot .btn {
    width: 100%;
  }

  .article table,
  .entry-content table,
  .capability-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 1.15rem;
  }

  .btn,
  .btn--lg {
    width: 100%;
  }

  .m-nav > li > a,
  .m-nav > a,
  .m-group > a {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }
}

@media (max-width: 1240px) and (max-height: 700px),
       (hover: none) and (pointer: coarse) and (max-height: 700px) {
  .m-head {
    min-height: 68px;
    padding-block: 0.55rem;
  }

  .m-menu .site-logo,
  .m-menu .custom-logo {
    max-height: 40px;
  }

  .m-nav {
    justify-content: flex-start;
    padding-block: 0.65rem;
  }

  .m-nav > li > a,
  .m-nav > a,
  .m-group > a {
    padding-block: 0.36rem;
    font-size: clamp(1.85rem, 5.8vh, 2.45rem);
  }

  .m-foot {
    gap: 0.55rem;
    padding-block: 0.65rem max(0.75rem, env(safe-area-inset-bottom));
  }

  .m-phone {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .remi-reveal .rv,
  .remi-reveal .rv-group > * {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .burger,
  .foot-soc-sq a {
    border: 1px solid currentColor;
  }
}
