/*
 * LDM Co LLC — shared foundation
 *
 * This file intentionally has no content-visibility or entrance-state rules.
 * Content should be readable before any page script runs.
 */

:root {
  color-scheme: light;

  --ink: #071411;
  --paper: #F7F5EF;
  --coral: #D95B43;
  --coral-ink: #A23E2D;
  --ink-soft: #31403A;
  --muted: #68716B;
  --muted-light: #D7D9D2;
  --paper-deep: #EBEAE3;
  --line: rgba(7, 20, 17, 0.16);
  --line-strong: rgba(7, 20, 17, 0.32);

  /* Descriptive aliases keep component styles readable across page workers. */
  --color-ink: var(--ink);
  --color-paper: var(--paper);
  --color-coral: var(--coral);
  --color-muted: var(--muted);

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;

  --content-max: 78rem;
  --reading-max: 44rem;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --header-height: 4.5rem;
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --control-size: 2.75rem;
}

/* Fixed headers should never hide the destination of an in-page link. */
:is(section, article)[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: inherit;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

h1 {
  font-size: clamp(3.25rem, 10vw, 8.5rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.35rem, 6vw, 5rem);
  max-width: 14ch;
}

h3 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  max-width: 18ch;
}

p {
  max-width: 70ch;
}

ul,
ol {
  padding: 0;
}

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

button {
  cursor: pointer;
}

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

img,
video {
  height: auto;
}

svg {
  overflow: visible;
}

::selection {
  background: var(--coral);
  color: var(--ink);
}

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

a:hover {
  color: var(--coral);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--control-size);
  padding: 0.625rem 0.875rem;
  transform: translateY(calc(-100% - 1rem));
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.screenshot-rail img,
.netsward-hero-media img,
.desktop-evidence img,
.mobile-evidence-showcase img,
.reports-cta-media img,
.ht-hero-visual img,
.ht-gallery img {
  cursor: zoom-in;
}

.media-lightbox {
  width: min(92vw, 70rem);
  max-width: none;
  max-height: 92svh;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #071411;
  color: #fff;
}

.media-lightbox::backdrop {
  background: rgba(2, 8, 7, 0.86);
}

.media-lightbox__close {
  display: block;
  min-width: 5rem;
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.media-lightbox__close:hover,
.media-lightbox__close:focus-visible {
  background: #fff;
  color: #071411;
}

.media-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78svh;
  margin: 1rem auto 0;
  object-fit: contain;
}

.media-lightbox__caption {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.section-shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--content-max));
  margin-inline: auto;
  padding-block: var(--section-space);
}

.section-shell--narrow {
  max-width: var(--reading-max);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--coral-ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

/* Fixed by default so overlay pages can place the header over a visual. */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-height);
  padding: 0.75rem var(--gutter);
  background: var(--paper);
  border-block-end: 1px solid var(--line);
  color: var(--ink);
}

.site-header--overlay {
  background: transparent;
  border-block-end-color: transparent;
  color: var(--paper);
}

.site-header--overlay .brand__mark {
  /* The SVG is ink by default; overlay headers need a paper mark. */
  filter: brightness(0) invert(1);
}

.site-header--solid {
  background: var(--paper);
  border-block-end-color: var(--line);
  color: var(--ink);
}

/* A fixed solid header must not cover the first line of the document. */
.site-header ~ main {
  padding-block-start: var(--header-height);
}

.site-header--overlay ~ main {
  padding-block-start: 0;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--control-size);
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

/* Frame the approved PNG's transparent margins without altering the artwork.
   Paper keeps the teal lettering readable over photography and dark headers. */
.brand.brand--logo {
  position: relative;
  width: 9.75rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 0.25rem;
  background: var(--paper);
}

.brand__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10rem;
  height: 5rem;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.brand__mark {
  width: clamp(2rem, 4vw, 2.75rem);
  height: clamp(2rem, 4vw, 2.75rem);
  flex: 0 0 auto;
  object-fit: contain;
}

.brand__wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  min-width: 0;
}

.site-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links > li {
  display: flex;
}

.site-nav__links > a,
.site-nav__links > li > a,
.site-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-size);
  padding-inline: 0.75rem;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__links > a:hover,
.site-nav__links > li > a:hover,
.site-nav > a:hover {
  color: var(--coral-ink);
}

.site-header--overlay .site-nav__links > a:hover,
.site-header--overlay .site-nav__links > li > a:hover,
.site-header--overlay .site-nav > a:hover {
  color: var(--coral);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: var(--control-size);
  min-height: var(--control-size);
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.15rem;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  color: inherit;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--ink);
}

.button--primary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button--ghost {
  border-color: currentColor;
  color: inherit;
}

.button--ghost:hover {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--ink);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.text-link {
  color: var(--coral-ink);
  font-weight: 650;
  text-decoration-color: currentColor;
}

.text-link:hover {
  color: var(--ink);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer p {
  max-width: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem 0.75rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-size);
  color: inherit;
}

.site-footer a:hover {
  color: var(--coral-ink);
}

@media (max-width: 52rem) {
  .site-header {
    gap: 0.75rem;
  }

  .site-nav__links > a,
  .site-nav__links > li > a,
  .site-nav > a {
    padding-inline: 0.55rem;
  }
}

@media (max-width: 42rem) {
  :root {
    --header-height: 7.25rem;
  }

  .site-header {
    flex-wrap: wrap;
    align-items: center;
    padding-block: 0.625rem;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .site-nav__links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav__links::-webkit-scrollbar {
    display: none;
  }

  .site-nav__links > a,
  .site-nav__links > li > a,
  .site-nav > a {
    flex: 0 0 auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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

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

/* Shared company identity. Locally hosted fonts keep the site self-contained. */
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-regular.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans-semibold.ttf') format('truetype'); font-style: normal; font-weight: 500 900; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/assets/fonts/dm-serif-display.ttf') format('truetype'); font-style: normal; font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/assets/fonts/dm-serif-display-italic.ttf') format('truetype'); font-style: italic; font-weight: 400 900; font-display: swap; }
:root { --font-sans: 'DM Sans', sans-serif; --font-serif: 'DM Serif Display', Georgia, serif; --paper: #f6f3ec; --ink: #183e42; --ink-soft: #36514e; --muted: #53625e; --coral-ink: #965234; --coral: #bd7751; }
::selection { background: #164b50; color: #fff; }
html { scrollbar-color: #6d8581 #f6f3ec; }
:where(input,textarea) { caret-color: #965234; }
body .site-header.company-shell { position: relative; inset: auto; min-height: 88px; padding: 1rem max(var(--gutter), calc((100vw - 1280px)/2)); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; background: #f6f3ec; color: #164b50; border-bottom: 1px solid #164b5026; box-shadow: none; }
body .site-header.company-shell.nav-ready { position: sticky; top: 0; }
body .site-header.company-shell.is-scrolled { background: #f6f3ec; border-bottom-color: transparent; box-shadow: 0 8px 24px #173b3410; }
body .site-header.company-shell ~ main { padding-block-start: 0; }
.company-shell .brand.brand--logo { width: 130px; height: 52px; background: transparent; }
.company-shell .brand__logo { width: 160px; height: 80px; }
.company-shell .company-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .6rem; }
.company-shell .company-nav a { padding: .55rem .8rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; color: #164b50; text-decoration: none; font-size: .95rem; font-weight: 600; transition: background-color 180ms ease, color 180ms ease; }
.company-shell .company-nav a:hover { color: #965234; background: #164b5009; }
.company-shell .company-nav a[href$="#contact"] { border: 1px solid #164b5055; padding-inline: 1.2rem; }
.company-shell .menu-toggle { min-height: 44px; padding: .6rem 1rem; background: none; border: 1px solid #164b5066; border-radius: 10px; color: #164b50; font: 600 .95rem var(--font-sans); cursor: pointer; transition: background-color 180ms ease; }
.company-shell .menu-toggle:hover, .company-shell .menu-toggle[aria-expanded="true"] { background: #164b500c; }
.company-shell .menu-toggle[hidden] { display: none; }
body .company-shell :is(a,button):focus-visible, body .company-footer :is(a,button):focus-visible { outline: 3px solid #965234; outline-offset: 4px; }
body .product-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.3rem; padding: .65rem max(var(--gutter), calc((100vw - 1280px)/2)); background: #ebe9e0; color: #183e42; font-size: .85rem; }
.product-nav strong { font-weight: 600; margin-right: auto; }
body .product-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #183e42; text-decoration: underline; text-underline-offset: .3em; }
body .product-nav a:focus-visible { outline-color: #965234; }
body .site-footer.company-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 2rem; padding: 3.5rem max(var(--gutter), calc((100vw - 1280px)/2)); background: #eeeae1; color: #164b50; border: 0; }
body .company-footer .footer-wordmark { padding: 0; font: 400 1.65rem var(--font-serif); text-decoration: none; color: #164b50; }
.company-footer__intro p { margin-block: .8rem 1.5rem; color: #53625e; font-size: .95rem; }
.company-footer__intro small { color: #53625e; font-size: .8rem; }
body .company-footer nav { display: flex; align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 0; }
.company-footer nav h2 { margin-bottom: .65rem; font: 600 .87rem var(--font-sans); letter-spacing: 0; color: #164b50; }
body .company-footer nav a { min-height: 40px; padding: .4rem 0; color: #36514e; font-size: .87rem; font-weight: 400; letter-spacing: 0; text-decoration: none; }
body .company-footer a:hover { color: #965234; text-decoration: underline; text-underline-offset: .3em; }
@media (min-width: 761px) { .company-shell.nav-ready .menu-toggle { display: none; } }
@media (max-width: 760px) {
  body .site-header.company-shell { min-height: 76px; padding-block: .6rem; gap: .4rem 1rem; }
  .company-shell .brand.brand--logo { width: 115px; height: 48px; }
  .company-shell .brand__logo { width: 144px; height: 72px; }
  .company-shell .company-nav { flex-basis: 100%; gap: .25rem 1rem; padding-block: .5rem; }
  .company-shell.nav-ready .company-nav { display: none; }
  .company-shell.nav-ready.is-menu-open .company-nav { display: grid; grid-template-columns: 1fr 1fr; padding-block: .6rem .8rem; border-top: 1px solid #164b5026; }
  .company-shell .company-nav a { min-height: 48px; }
  body .site-footer.company-footer { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; padding-block: 2.5rem; }
  body .product-nav { gap: 0 1rem; padding-block: .5rem; }
}
@media (max-width: 360px) { body .site-footer.company-footer { grid-template-columns: 1fr; } }
@media (max-height: 480px) { body .site-header.company-shell.nav-ready { position: relative; top: auto; } }
body .company-footer a::after { content: none; }
body .site-footer.company-footer { align-items: start; }
