/* ==========================================================================
   YHVH Cyrus Enterprises — yhvhcyrusenterprises.com
   Design language: technical document. Square corners, hairline grids,
   numbered sections, mono data, one inverted navy block per page.
   ========================================================================== */

:root {
  /* Two colours: dark blue and white. Everything else is one of them
     lightened, tinted or darkened — no greys, no third hue. */
  --paper:      #ffffff;
  --mist:       #eff4fc;   /* white tinted toward the blue */
  --deep:       #071b3d;   /* darkest blue: hero, panel, footer */
  --deep-2:     #0f2b57;
  --rule:       #c8d6ec;
  --rule-soft:  #e2eaf7;
  --ink:        #0a1c3f;   /* body text is dark blue, not charcoal */
  --ink-soft:   #35486e;
  --ink-faint:  #56688c;
  --navy:       #123268;   /* accent and links */
  --signal:     #4b86e8;   /* on dark only */
  --navy-wash:  #e7eefb;

  --display: "Space Grotesk", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --sans:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 66ch;
  --gutter: 1.5rem;
  --shell: 75rem;      /* 1200px */
  --rail: 7.5rem;      /* numbered section rail */
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: from-font; }
a:hover { color: var(--deep); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

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

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--deep); color: #fff; padding: 0.7rem 1.2rem; font-size: 0.9375rem; }
.skip-link:focus { left: 0.75rem; top: 0.75rem; color: #fff; }

/* --- Mono labels ---------------------------------------------------------- */
.eyebrow, .label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.9rem;
}

/* --- Utility strip -------------------------------------------------------- */
.utility {
  background: var(--deep);
  color: #90a8d2;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}
.utility__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 1.5rem; padding-block: 0.55rem; }
.utility span { white-space: nowrap; }

/* --- Masthead ------------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2.25rem; padding-block: 1.1rem; }
.wordmark { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.wordmark img { width: 30px; height: 30px; }
.wordmark span {
  font-family: var(--display); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: -0.03em; color: var(--ink);
}
.wordmark:hover span { color: var(--navy); }

.mainnav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.mainnav a { font-size: 0.9375rem; color: var(--ink-soft); text-decoration: none; padding-block: 0.3rem; }
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--navy); }

/* --- Buttons: square, technical ------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--navy);
  border-radius: 0;
  text-decoration: none;
  transition: background-color 110ms linear, color 110ms linear;
}
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink-soft); border-color: var(--rule); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.75rem; }
button.btn { cursor: pointer; appearance: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.ext::after { content: " ↗"; letter-spacing: 0; }

/* on dark */
.invert .btn--solid { background: #fff; color: var(--deep); border-color: #fff; }
.invert .btn--solid:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.invert .btn--ghost { color: #fff; border-color: rgba(150,190,245,0.55); }
.invert .btn--ghost:hover { background: #fff; color: var(--deep); border-color: #fff; }

/* --- Hero: inverted, gridded ---------------------------------------------- */
.hero {
  background:
    linear-gradient(180deg, rgba(75,134,232,0.22), transparent 58%),
    var(--deep);
  color: #dce6f8;
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 4rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(140,180,240,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140,180,240,0.10) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(70% 90% at 70% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .shell { position: relative; }
.hero .eyebrow { color: var(--signal); }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.4rem, 5.6vw, 4rem); }
.hero__copy { max-width: 56ch; margin-top: 2rem; }
@media (min-width: 64rem) { .hero__copy { margin-top: 0.75rem; } }
.hero__copy p { color: #b7c8e6; }
.hero__copy p:first-of-type { color: #eaf1fd; font-size: 1.1875rem; }
.hero__data {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  background: rgba(120,165,235,0.28);
  border: 1px solid rgba(120,165,235,0.28);
}
.hero__data div { background: var(--deep); padding: 1rem 1.15rem; }
.hero__data dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #90a8d2; }
.hero__data dd { margin: 0.35rem 0 0; font-family: var(--mono); font-size: 0.9375rem; color: #fff; }

/* --- Page head ------------------------------------------------------------ */
.pagehead { padding-block: 3rem 0; }
.pagehead h1 { max-width: 19ch; }
.pagehead .shell::after { content: ""; display: block; width: 4rem; height: 3px; background: var(--navy); margin-top: 1.75rem; }

/* --- Numbered sections ---------------------------------------------------- */
.band { padding-block: 4.5rem; border-top: 1px solid var(--rule-soft); }
.band:first-of-type { border-top: 0; }
.band--tint { background: var(--mist); border-top: 1px solid var(--rule); }
.band__grid { display: grid; gap: 1.75rem; }
.band__num {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--ink-faint); padding-top: 0.45rem;
  border-top: 2px solid var(--navy); max-width: 3.5rem;
}
.band__head { margin-bottom: 2.25rem; max-width: var(--measure); }
.band__head p { color: var(--ink-soft); }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* --- Breadcrumbs ---------------------------------------------------------- */
.crumbs { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); padding-block: 1.1rem 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: var(--rule); }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }

/* --- Data table (corporate facts) ----------------------------------------- */
.datatable { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); }
.datatable th, .datatable td { text-align: left; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.datatable th {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 400; width: 16rem; padding-right: 2rem;
}
.datatable td { font-size: 1rem; }
.datatable td a { text-decoration: none; box-shadow: inset 0 -1px 0 var(--rule); }
.datatable td a:hover { box-shadow: inset 0 -1px 0 var(--navy); }
.datatable .num { font-family: var(--mono); }

/* --- Card matrix: hairline grid, no boxes --------------------------------- */
.matrix {
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); grid-template-columns: 1fr;
}
.matrix__cell { background: var(--paper); padding: 1.75rem 1.6rem; }
.band--tint .matrix__cell { background: var(--mist); }
.matrix__cell .idx { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); letter-spacing: 0.08em; }
.matrix__cell h3 { margin: 0.75rem 0 0.5rem; }
.matrix__cell p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* --- Inverted feature panel ------------------------------------------------ */
.panel { background: var(--deep); color: #c6d5ee; padding: 2.5rem 2rem; border-left: 3px solid var(--signal); }
.panel .eyebrow { color: var(--signal); }
.panel h3 { color: #fff; font-size: 1.75rem; margin-bottom: 0.65rem; }
.panel p { color: #b7c8e6; }

/* --- Long-form with section rail ------------------------------------------ */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.15rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.35rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.15rem; border-left: 2px solid var(--navy); color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 1.5rem 0; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.prose thead th { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); font-weight: 400; border-bottom: 1px solid var(--rule); }

.toc { margin-bottom: 2.5rem; }
.toc__label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--rule-soft); }
.toc li:first-child { border-top: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.5rem; padding-block: 0.6rem; font-size: 0.875rem; text-decoration: none; color: var(--ink-soft); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); }
.toc a:hover { color: var(--navy); }

.section { padding-top: 2rem; border-top: 1px solid var(--rule); margin-bottom: 2.75rem; }
.section:last-child { margin-bottom: 0; }
.section h2 { font-size: 1.375rem; margin-bottom: 0.7rem; }
.section p { color: var(--ink-soft); }

/* --- Q&A ------------------------------------------------------------------ */
.qa { border-top: 2px solid var(--navy); }
.qa__item { padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.qa__item h3 { margin-bottom: 0.45rem; }
.qa__item p { color: var(--ink-soft); max-width: var(--measure); }

/* --- Link list ------------------------------------------------------------ */
.linklist ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.linklist li { border-bottom: 1px solid var(--rule-soft); }
.linklist a { display: block; padding-block: 0.85rem; text-decoration: none; font-weight: 500; color: var(--ink); }
.linklist a:hover { color: var(--navy); }
.linklist span { display: block; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--ink-faint); margin-top: 0.15rem; }

/* --- Insights ------------------------------------------------------------- */
.posts { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.post { background: var(--paper); padding: 1.6rem; }
.band--tint .post { background: var(--mist); }
.post__topic { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin: 0 0 0.6rem; }
.post h3 { font-size: 1.0625rem; margin-bottom: 0.45rem; }
.post h3 a { text-decoration: none; color: var(--ink); }
.post h3 a:hover { color: var(--navy); }
.post p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.post time { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-faint); }

.article__head { padding-block: 2.5rem 1.25rem; }
.articlegrid { display: grid; gap: 2.5rem; }
.article__rail { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); }
.article__rail dl { margin: 0; border-top: 2px solid var(--navy); }
.article__rail div { padding-block: 0.7rem; border-bottom: 1px solid var(--rule-soft); }
.article__rail dt { letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; }
.article__rail dd { margin: 0.25rem 0 0; color: var(--ink); }
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.related h2 { font-size: 1.125rem; margin-bottom: 1.25rem; }
.contactgrid { display: grid; gap: 3rem; }

.refs { font-size: 0.9375rem; }
.refs li { margin-bottom: 0.5rem; }
.authorbox { margin-top: 2.5rem; padding: 1.6rem; border-left: 3px solid var(--navy); background: var(--mist); }
.authorbox h2 { font-size: 1.0625rem; margin-top: 0; }
.authorbox p { font-size: 0.9375rem; color: var(--ink-soft); }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; margin-top: 2rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 0;
  padding: 0.75rem 0.85rem; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 1px; }
.field textarea { min-height: 9.5rem; resize: vertical; }
.hint { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); max-width: 34rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.address { font-style: normal; color: var(--ink-soft); }
.notice { border-left: 3px solid var(--navy); background: var(--navy-wash); padding: 1rem 1.2rem; font-size: 0.9375rem; max-width: 46rem; }

/* --- Footer --------------------------------------------------------------- */
.sitefoot { background: var(--deep); color: #a9bcdd; padding-block: 3.5rem 1.5rem; }
.sitefoot__top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-bottom: 2.25rem; border-bottom: 1px solid rgba(120,165,235,0.28);
}
.sitefoot__top strong { font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.25rem); color: #fff; letter-spacing: -0.03em; font-weight: 600; }
.sitefoot__top span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: #90a8d2; text-transform: uppercase; }
.sitefoot__grid { display: grid; gap: 2.25rem; padding-block: 2.5rem; }
.sitefoot h3 { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #90a8d2; font-weight: 400; margin-bottom: 1rem; }
.sitefoot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.sitefoot p, .sitefoot li, .sitefoot address { font-size: 0.9375rem; }
.sitefoot a { color: #dce6f8; text-decoration: none; }
.sitefoot a:hover { color: #fff; box-shadow: inset 0 -1px 0 var(--signal); }
.sitefoot__uen { font-family: var(--mono); font-size: 0.75rem; color: #90a8d2; margin-top: 0.75rem; }
.sitefoot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(120,165,235,0.28);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: #7c92ba;
}
.social { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.social:empty { display: none; }

/* --- Error ---------------------------------------------------------------- */
.errorpage { padding-block: 6rem; }
.errorpage ul { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 0; margin: 2rem 0 0; list-style: none; font-size: 0.9375rem; }

/* --- Breakpoints ---------------------------------------------------------- */
@media (min-width: 40rem) {
  .matrix { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .hero__data { grid-template-columns: repeat(2, 1fr); }
  .sitefoot__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 64rem) {
  :root { --gutter: 3rem; }
  .band { padding-block: 5.5rem; }
  .band__grid { grid-template-columns: var(--rail) 1fr; gap: 3rem; }
  .matrix { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 6.5rem 5.5rem; }
  .hero__data { grid-template-columns: repeat(4, 1fr); }
  .hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
  .contactgrid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
  .split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: start; }
  .withtoc { display: grid; grid-template-columns: 15rem 1fr; gap: 3.5rem; align-items: start; }
  .toc { position: sticky; top: 2rem; margin-bottom: 0; }
  .articlegrid { grid-template-columns: 13rem 1fr; gap: 3.5rem; }
  .article__rail { position: sticky; top: 2rem; }
  .sitefoot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
@media print {
  .utility, .masthead, .sitefoot, .crumbs, .btnrow, .toc { display: none; }
  body { font-size: 11pt; color: #000; }
  .hero, .panel { background: #fff !important; color: #000 !important; }
}

.address + .datatable { margin-top: 1.75rem; }
