/* ==========================================================================
   InventHelp — Site 7
   Enterprise dossier: deep slate ground, white document panels,
   tight sans typography, mono data labels, strong horizontal dividers.
   ========================================================================== */

/* --- 1. Reset ------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body,
h1, h2, h3, h4, p, figure, figcaption, blockquote,
ul, ol, dl, dt, dd, li { margin: 0; padding: 0; }

ul, ol { list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a { color: inherit; }

/* --- 2. Tokens ----------------------------------------------------------- */

:root {
  --ground:      #0b131b;
  --ground-2:    #14202b;
  --ground-line: rgba(255, 255, 255, 0.14);
  --panel:       #ffffff;
  --panel-tint:  #f2f5f7;

  --ink:      #0d1720;
  --ink-2:    #4b5c6b;
  --ink-3:    #7d8c99;
  --on-dark:  #e9eef2;
  --on-dark-2:#9fb0bd;

  --rule:        #d7dee4;
  --rule-strong: #0d1720;
  --accent:      #0f7a6b;
  --accent-lift: #17a08c;
  --accent-tint: #e4f2ef;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --sans:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --gutter: 1.6rem;
  --rail:   9rem;
  --pad:    3.2rem;

  --step-2: 0.68rem;
  --step-1: 0.79rem;
  --step0:  1.035rem;
  --step1:  1.18rem;
  --step2:  1.5rem;
  --step3:  1.95rem;
  --step4:  2.85rem;
}

/* --- 3. Base ------------------------------------------------------------- */

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step0);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 122, 107, 0.42);
}

a:hover { color: var(--ink); border-bottom-color: var(--ink); }

a:focus-visible {
  outline: 2px solid var(--accent-lift);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

strong { font-weight: 600; }

.shell {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- 4. Masthead --------------------------------------------------------- */

.site-header {
  background: var(--ground);
  border-bottom: 1px solid var(--ground-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.brand {
  border-bottom: 0;
  line-height: 0;
  flex: 0 0 auto;
}

.brand img { width: 198px; height: auto; }

.brand:focus-visible { outline-offset: 6px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.35rem;
}

.site-nav a {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--step-2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  border-bottom: 0;
  padding: 0.5rem 0.85rem;
  border-left: 1px solid transparent;
}

.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.site-nav a[aria-current='page'] {
  color: #fff;
  background: rgba(23, 160, 140, 0.16);
  border-left: 1px solid var(--accent-lift);
}

/* --- 5. Hero ------------------------------------------------------------- */

.hero {
  background: var(--ground);
  color: var(--on-dark);
  padding: 3.4rem 0 6.4rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ground-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 3.4rem;
}

.title-block { grid-column: 1; grid-row: 1; }
.hero-figure { grid-column: 2; grid-row: 1; margin: 0; }

.hero-frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ground-2);
  border: 1px solid var(--ground-line);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-lift);
  border: 1px solid rgba(23, 160, 140, 0.45);
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step4);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: #fff;
  text-wrap: balance;
}

.standfirst {
  font-size: var(--step1);
  line-height: 1.58;
  color: var(--on-dark-2);
  margin-top: 1.35rem;
  max-width: 34rem;
}

.byline {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--step-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-top: 1.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ground-line);
}

/* Data strip under the title block */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ground-line);
  margin-top: 1.6rem;
}

.stat-strip div {
  padding: 1.05rem 1.1rem 0.2rem 0;
  border-right: 1px solid var(--ground-line);
}

.stat-strip div:last-child { border-right: 0; }
.stat-strip div + div { padding-left: 1.1rem; }

.stat-strip b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.stat-strip span {
  display: block;
  font-family: var(--mono);
  font-size: var(--step-2);
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-top: 0.5rem;
}

/* --- 6. Document panel --------------------------------------------------- */

main { display: block; }

.panel {
  max-width: 58rem;
  margin: -4.2rem auto 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  box-shadow: 0 26px 64px rgba(4, 12, 20, 0.34);
  padding: 3.1rem var(--pad) 3.4rem;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--accent);
}

.article {
  display: grid;
  grid-template-columns: [rail-start] var(--rail) [rail-end text-start] minmax(0, 1fr) [text-end];
  column-gap: 0;
}

.article > * { grid-column: text-start / text-end; }

.article > p { margin-bottom: 1.35rem; }

.lead {
  font-size: var(--step1);
  line-height: 1.62;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 1.15rem;
  margin-bottom: 1.8rem;
}

/* Section head: mono label in the rail, heading in the text column,
   the two border-tops meeting to form one unbroken divider. */

.eyebrow {
  grid-column: rail-start / rail-end;
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--rule-strong);
  padding: 1.15rem 1.6rem 0 0;
  margin-top: 2.9rem;
}

.article > h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step3);
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--ink);
  border-top: 2px solid var(--rule-strong);
  padding-top: 1.05rem;
  margin-top: 2.9rem;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.article > h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step2);
  line-height: 1.24;
  margin: 2rem 0 0.75rem;
}

/* Lists */

.article ul li,
.article ol li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.article ul { margin-bottom: 1.5rem; }
.article ol { margin-bottom: 1.5rem; counter-reset: seq; }

.article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 0.7rem;
  height: 2px;
  background: var(--accent);
}

.article ol li { counter-increment: seq; }

.article ol li::before {
  content: counter(seq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--accent);
  line-height: 2.35;
}

/* Tabular ledger */

.ledger {
  grid-column: rail-start / text-end;
  margin: 2.4rem calc(var(--pad) * -1) 2.6rem;
  border-top: 2px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule-strong);
  background: var(--panel-tint);
  padding: 0 var(--pad);
}

.ledger-title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 1rem 0 0.35rem;
}

.ledger dl { border-top: 1px solid var(--rule); }

.ledger dl > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0 1.6rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.ledger dl > div:last-child { border-bottom: 0; padding-bottom: 1.1rem; }

.ledger dt {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.ledger dd {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Pull quote */

.article > blockquote {
  grid-column: rail-start / text-end;
  margin: 2.6rem calc(var(--pad) * -1) 2.8rem;
  padding: 2.1rem var(--pad) 2rem;
  background: var(--ground);
  color: #fff;
}

.article > blockquote p {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step2);
  line-height: 1.32;
  letter-spacing: -0.014em;
  margin-bottom: 0;
  max-width: 40rem;
}

.article > blockquote .attrib {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--step-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-lift);
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ground-line);
}

/* Figures — edge to edge inside the panel */

.article > figure {
  grid-column: rail-start / text-end;
  margin: 2.5rem calc(var(--pad) * -1) 2.7rem;
}

.frame {
  overflow: hidden;
  background: var(--panel-tint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ratio-wide  { aspect-ratio: 16 / 9; }
.ratio-still { aspect-ratio: 3 / 2; }

figcaption {
  font-family: var(--mono);
  font-size: var(--step-2);
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.75rem var(--pad) 0;
}

/* Closing line */

.endmark {
  grid-column: rail-start / text-end;
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--rule-strong);
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* --- 7. Footer ----------------------------------------------------------- */

.site-footer {
  background: var(--ground);
  color: var(--on-dark-2);
  margin-top: 4.5rem;
  padding: 3rem 0 2.4rem;
  border-top: 1px solid var(--ground-line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ground-line);
}

.footer-mark { border-bottom: 0; line-height: 0; }
.footer-mark img { width: 172px; height: auto; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
}

.footer-nav a {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--step-2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2em;
}

.footer-nav a:hover { color: #fff; border-bottom-color: var(--accent-lift); }

/* Injected three-column link block */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem 2.8rem;
  padding: 2.3rem 0 2rem;
}

.footer-cols h2 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 0.8rem;
  margin-bottom: 0.95rem;
  border-bottom: 2px solid var(--accent);
}

.footer-cols ul li {
  margin-bottom: 0.45rem;
  padding-left: 0.85rem;
  position: relative;
}

.footer-cols ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 1px;
  background: var(--ink-3);
}

.footer-cols a {
  font-family: var(--sans);
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--on-dark-2);
  border-bottom: 0;
}

.footer-cols a:hover { color: #fff; text-decoration: underline; }

.copyright {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--step-2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--ground-line);
  padding-top: 1.4rem;
}

/* --- 8. Responsive ------------------------------------------------------- */

@media (max-width: 1080px) {
  :root { --rail: 7.5rem; --step4: 2.5rem; }
  .hero-inner { gap: 2.4rem; }
}

@media (max-width: 900px) {
  :root { --step4: 2.3rem; --step3: 1.75rem; --pad: 2.4rem; }

  .hero { padding: 2.6rem 0 5.2rem; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .title-block { grid-column: 1; grid-row: 2; }
  .hero-figure { grid-column: 1; grid-row: 1; }

  .hero-frame { aspect-ratio: 16 / 9; }

  .standfirst { max-width: none; }

  .panel { max-width: 46rem; margin-top: -3.4rem; }

  /* rail collapses: label sits above the heading */
  .article { grid-template-columns: minmax(0, 1fr); }

  .article > .eyebrow {
    grid-column: 1;
    border-top: 2px solid var(--rule-strong);
    padding-right: 0;
    padding-bottom: 0.1rem;
    margin-bottom: 0;
  }

  .article > h2 {
    border-top: 0;
    padding-top: 0;
    margin-top: 0.55rem;
  }

  .article > figure,
  .article > blockquote,
  .article > .ledger,
  .article > .endmark { grid-column: 1; }

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

@media (max-width: 720px) {
  :root {
    --step0: 1rem;
    --step4: 1.95rem;
    --step3: 1.5rem;
    --step2: 1.28rem;
    --step1: 1.1rem;
    --gutter: 1.15rem;
    --pad: 1.35rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .brand img { width: 168px; }

  .site-nav { gap: 0.2rem; margin-left: -0.85rem; }

  .hero { padding-bottom: 4.2rem; }
  .hero-frame { aspect-ratio: 3 / 2; }

  .stat-strip { grid-template-columns: minmax(0, 1fr); }

  .stat-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--ground-line);
    padding: 0.85rem 0;
  }

  .stat-strip div + div { padding-left: 0; }
  .stat-strip div:last-child { border-bottom: 0; }

  .panel {
    max-width: none;
    margin-top: -2.6rem;
    padding: 2.1rem var(--pad) 2.4rem;
  }

  .ledger dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }

  .article > blockquote { padding: 1.6rem var(--pad) 1.5rem; }

  .footer-top { flex-direction: column; align-items: flex-start; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
}

/* --- 9. Motion & print --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-nav, .site-footer { display: none; }
  body { background: #fff; }
  .panel { box-shadow: none; margin-top: 0; }
}
