/* =========================================================================
   Veritable Data Solutions — Design System
   v0.1 — May 11, 2026
   Brand from Identity Manual v1.0 (November 2019)
   Note: Web fonts substituted with Google-hosted Barlow Condensed and Plus
   Jakarta Sans for v1 draft. Swap to self-hosted Gilmer / DIN Condensed
   Bold once web licenses are confirmed.
   ========================================================================= */

/* --- Custom properties ---------------------------------------------------- */
:root {
  /* Brand palette */
  --sapphire:    #08203E;
  --cerulean:    #10497C;
  --steel-blue:  #3873B7;
  --goldenrod:   #FCB116;
  --ocean-mist:  #E2E9F1;
  --white:       #FFFFFF;
  --black:       #000000;
  --ink:         #1a1a1a;     /* softer than pure black for body text */
  --rule:        #c8d3e0;     /* dividers */

  /* Typography
     Headlines use a digital-first institutional serif (Source Serif 4)
     for a more credible, less marketing register. The 2019 brand book's
     DIN Condensed Bold treatment is reserved for print/identity materials. */
  --font-display: 'Source Serif 4', 'Source Serif Pro', 'Georgia', serif;
  --font-body:    'Plus Jakarta Sans', 'Gilmer', system-ui, -apple-system,
                  'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --measure: 38rem;          /* prose max-width — ~640px */
  --container: 72rem;        /* layout max-width — ~1152px */
  --section-y: clamp(4rem, 9vw, 8rem);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* --- Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
}

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--sapphire);
  letter-spacing: -0.005em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  letter-spacing: -0.012em;
  line-height: 1.18;
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  letter-spacing: 0;
  line-height: 1.3;
}

p {
  max-width: var(--measure);
}

p + p {
  margin-top: 1.2rem;
}

a.text-link {
  color: var(--cerulean);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s ease;
}

a.text-link:hover,
a.text-link:focus {
  color: var(--sapphire);
}

/* --- Layout containers ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.prose {
  max-width: var(--measure);
}

/* --- Site header ---------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo img {
  height: clamp(72px, 12vw, 114px);
  width: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sapphire);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  border-bottom-color: var(--goldenrod);
}

/* --- Sections ------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section--mist {
  background: var(--ocean-mist);
  border-top: none;
}

.section--sapphire {
  background: var(--sapphire);
  color: var(--white);
  border-top: none;
}

.section--sapphire h1,
.section--sapphire h2,
.section--sapphire h3 {
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cerulean);
  margin-bottom: 1.25rem;
}

.section--sapphire .eyebrow {
  color: var(--goldenrod);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(7rem, 14vw, 12rem);
  background: var(--sapphire);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

/* Slideshow layer */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: hero-rotate 28s infinite;
  will-change: opacity;
}

.hero-slide-1 {
  background-image: url('../img/slide-1-home.jpg');
  background-position: center 65%;
  animation-delay: 0s;
}
.hero-slide-2 {
  background-image: url('../img/slide-2-brownstone.jpg');
  background-position: center 35%;
  animation-delay: -21s;
}
.hero-slide-3 {
  background-image: url('../img/slide-3-land.jpg');
  background-position: center center;
  animation-delay: -14s;
}
.hero-slide-4 {
  background-image: url('../img/slide-4-commercial.jpg');
  background-position: center bottom;
  animation-delay: -7s;
}

@keyframes hero-rotate {
  0%, 21.4% { opacity: 1; }
  25%, 96.4% { opacity: 0; }
  100% { opacity: 1; }
}

/* Sapphire gradient overlay above the photos, below the text */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(8, 32, 62, 0.55) 0%,
    rgba(8, 32, 62, 0.75) 55%,
    rgba(8, 32, 62, 0.92) 100%
  );
  pointer-events: none;
}

/* Lift the headline content above slideshow + overlay */
.hero > .container {
  position: relative;
  z-index: 2;
}

/* Respect motion preferences — show only the first slide, static */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide-1 { opacity: 1; }
  .hero-slide-2,
  .hero-slide-3,
  .hero-slide-4 { display: none; }
}

/* Subtle goldenrod rule above the headline as a brand accent */
.hero h1::before {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--goldenrod);
  margin-bottom: 2rem;
}

.hero h1 {
  color: var(--white);
  max-width: 22ch;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero .lede {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ocean-mist);
  max-width: 38rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* --- Section heading block ----------------------------------------------- */
.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

/* --- Pull quote ----------------------------------------------------------- */
.pull-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--sapphire);
  max-width: 32ch;
  padding-left: 1.5rem;
  border-left: 3px solid var(--goldenrod);
  margin-block: 2.75rem;
}

.section--sapphire .pull-quote {
  color: var(--white);
}

/* --- Patent feature card ------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .feature {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.feature__meta {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.75rem 1.5rem;
}

.section--mist .feature__meta {
  background: var(--white);
}

.feature__meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
  font-size: 0.94rem;
}

.feature__meta dt {
  font-weight: 700;
  color: var(--cerulean);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  padding-top: 0.3rem;
}

.feature__meta dd {
  margin: 0;
  color: var(--ink);
}

.feature__meta-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cerulean);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

/* --- Buttons ------------------------------------------------------------- */
.button {
  display: inline-block;
  background: var(--goldenrod);
  color: var(--sapphire);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.6rem;
  border: none;
  transition: background 0.2s ease, transform 0.05s ease;
}

.button:hover,
.button:focus {
  background: #e89e0a;
}

.button:active {
  transform: translateY(1px);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--sapphire);
  color: var(--ocean-mist);
  padding-block: 3.5rem 2.5rem;
}

.site-footer .container {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .site-footer .container {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.site-footer img {
  height: 36px;
  width: auto;
  margin-bottom: 1.25rem;
}

.site-footer p {
  color: var(--ocean-mist);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 32rem;
}

.site-footer a {
  color: var(--goldenrod);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  border-bottom-color: var(--goldenrod);
}

.site-footer .legal {
  font-size: 0.78rem;
  color: #8aa2bf;
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
}

.footer-meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  font-size: 0.88rem;
  margin: 0;
}

.footer-meta dt {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--goldenrod);
  padding-top: 0.2rem;
}

.footer-meta dd {
  margin: 0;
  color: var(--ocean-mist);
}

/* --- Page hero (used on deep pages; no slideshow) ----------------------- */
.page-hero {
  background: var(--sapphire);
  color: var(--white);
  padding-block: clamp(4.5rem, 9vw, 7rem);
  border-bottom: 4px solid var(--goldenrod);
}

.page-hero h1 {
  color: var(--white);
  max-width: 24ch;
  margin-bottom: 1.5rem;
}

.page-hero .eyebrow {
  color: var(--goldenrod);
  margin-bottom: 1.25rem;
}

.page-hero .lede {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ocean-mist);
  max-width: 38rem;
}

/* --- Numbered claims list ----------------------------------------------- */
.claims {
  counter-reset: claim;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.claims > li {
  counter-increment: claim;
  padding-left: 4.5rem;
  position: relative;
  max-width: var(--measure);
}

.claims > li::before {
  content: counter(claim, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--goldenrod);
  letter-spacing: 0.02em;
}

.claims h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  color: var(--sapphire);
}

.claims p {
  color: var(--ink);
  margin: 0;
}

/* --- Post list (blog page) ---------------------------------------- */
.post-list {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0 0;
  display: grid;
  gap: 2.5rem;
}

.post-list > li {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

.post-list > li:first-child {
  border-top: none;
  padding-top: 0;
}

.post-list .post-date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cerulean);
  margin-bottom: 0.5rem;
}

.post-list h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--sapphire);
}

.post-list h3 a {
  color: inherit;
  text-decoration: none;
}

.post-list h3 a:hover {
  color: var(--cerulean);
}

.post-list .post-excerpt {
  color: var(--ink);
  max-width: var(--measure);
  line-height: 1.6;
}

.post-list__empty {
  background: var(--ocean-mist);
  padding: 2rem 2.25rem;
  border-radius: 2px;
  color: var(--ink);
  max-width: var(--measure);
}

.post-list__empty p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.post-list__empty p:last-child {
  margin-bottom: 0;
}

/* --- Counsel card (contact page: outside counsel block) -------------- */
.counsel-card {
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem 1.5rem;
  max-width: 36rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border-left: 4px solid var(--goldenrod);
}

.counsel-card dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cerulean);
  padding-top: 0.2rem;
}

.counsel-card dd {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.5;
}

.counsel-card a {
  color: var(--cerulean);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.counsel-card a:hover {
  color: var(--sapphire);
}

/* --- Scope list (patents page: "documents this protects") -------------- */
.scope-list {
  counter-reset: scope;
  list-style: none;
  padding: 0;
  margin: 3rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem 2.5rem;
}

.scope-list > li {
  counter-increment: scope;
  padding-left: 2.75rem;
  position: relative;
  color: var(--ink);
  line-height: 1.55;
}

.scope-list > li::before {
  content: counter(scope, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--goldenrod);
  letter-spacing: 0.02em;
}

/* --- Bio layout (founder page) ------------------------------------------ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .bio-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.bio-portrait {
  background: var(--ocean-mist);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-portrait--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cerulean);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

/* --- Book list ---------------------------------------------------------- */
.books {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.books > li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: var(--measure);
}

.books > li:last-child { border-bottom: none; }

.books .book-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
  color: var(--sapphire);
  margin-bottom: 0.25rem;
}

.books .book-meta {
  font-size: 0.88rem;
  color: var(--cerulean);
  letter-spacing: 0.04em;
}

.books p {
  margin-top: 0.5rem;
  color: var(--ink);
}

/* --- Form --------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 38rem;
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-field--full {
    grid-column: 1 / -1;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cerulean);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cerulean);
}

.form-actions {
  margin-top: 1rem;
}

/* --- Direct contacts list ----------------------------------------------- */
.contact-direct {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-direct > li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

@media (min-width: 600px) {
  .contact-direct > li {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }
}

.contact-direct .audience {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cerulean);
}

.contact-direct a {
  color: var(--sapphire);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--cerulean);
}

/* --- Utility: vertical rhythm between major blocks ---------------------- */
.stack > * + * { margin-top: 1.2rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
