/* =============================================================
   IVISION SOLUTIONS — DESIGN SYSTEM
   Standalone WordPress theme. Cream canvas, deep teal accent,
   Fraunces display + Geist body. No parent theme dependencies.
   ============================================================= */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img, picture, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, button, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--iv-teal); outline-offset: 3px; }

/* ---- TOKENS ---- */
:root {
  --iv-cream:       #F4F1EA;
  --iv-cream-deep:  #EDE8DC;
  --iv-paper:       #FBFAF6;
  --iv-ink:         #0F0F0D;
  --iv-ink-soft:    #2A2A26;
  --iv-muted:       #6B6862;
  --iv-border:      #DDD9CD;
  --iv-teal:        #1F4A40;
  --iv-teal-deep:   #163831;
  --iv-teal-light:  #5DCAA5;

  --iv-max:         1280px;
  --iv-narrow:      760px;
  --iv-pad-x:       32px;
  --iv-pad-x-sm:    20px;

  --iv-h-pad-y:     20px;
  --iv-section-y:   128px;
  --iv-section-y-sm: 80px;
}

/* ---- GLOBAL ---- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--iv-cream);
  color: var(--iv-ink);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.iv-skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--iv-ink); color: var(--iv-cream);
  padding: 12px 16px; border-radius: 4px;
  z-index: 1000;
}
.iv-skip-link:focus { top: 16px; }

/* ---- TYPOGRAPHY ---- */
.iv-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.iv-display em {
  font-style: italic;
  font-variation-settings: 'opsz' 144;
  color: var(--iv-teal);
}

.iv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
}
.iv-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--iv-teal);
  flex-shrink: 0;
}

/* ---- LAYOUT PRIMITIVES ---- */
.iv-container {
  max-width: var(--iv-max);
  margin: 0 auto;
  padding: 0 var(--iv-pad-x);
  width: 100%;
}
@media (max-width: 768px) {
  .iv-container { padding: 0 var(--iv-pad-x-sm); }
}

.iv-narrow { max-width: var(--iv-narrow); }

.iv-section {
  padding: var(--iv-section-y) 0;
}
@media (max-width: 768px) {
  .iv-section { padding: var(--iv-section-y-sm) 0; }
}

.iv-section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 72px;
}
@media (min-width: 1024px) {
  .iv-section-head { grid-template-columns: 1.5fr 1fr; gap: 80px; }
}
.iv-section-head h2 {
  font-size: clamp(38px, 4.5vw, 56px);
  margin: 0;
}
.iv-section-head p {
  font-size: 18px;
  color: var(--iv-ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---- SITE HEADER ---- */
.iv-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--iv-border);
}
.iv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--iv-h-pad-y);
  padding-bottom: var(--iv-h-pad-y);
  gap: 24px;
}
.iv-logo {
  display: flex;
  align-items: center;
  height: 36px;
  flex-shrink: 0;
}
.iv-logo svg {
  height: 36px;
  width: auto;
}
.iv-primary-nav { display: flex; align-items: center; }
.iv-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.iv-menu a {
  font-size: 14px;
  color: var(--iv-ink-soft);
  font-weight: 400;
  transition: color 0.15s;
}
.iv-menu a:hover { color: var(--iv-teal); }
.iv-menu .iv-menu-cta a,
.iv-menu .menu-item-cta a {
  background: var(--iv-teal);
  color: var(--iv-cream);
  border-radius: 100px;
  padding: 10px 22px;
  font-weight: 500;
}
.iv-menu .iv-menu-cta a:hover,
.iv-menu .menu-item-cta a:hover {
  background: var(--iv-teal-deep);
  color: var(--iv-cream);
}

/* ---- Dropdown sub-menus ----
   When a menu item has children (sub_menu), they're hidden by default and
   slide in on hover. The parent stays visually grouped via the wrapper. */
.iv-menu li {
  position: relative;
}
.iv-menu .sub-menu,
.iv-menu .children {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--iv-cream);
  border: 1px solid var(--iv-border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(15, 15, 13, 0.08);
  padding: 8px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
  z-index: 110;
}
.iv-menu li:hover > .sub-menu,
.iv-menu li:hover > .children,
.iv-menu li:focus-within > .sub-menu,
.iv-menu li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.iv-menu .sub-menu li,
.iv-menu .children li {
  margin: 0;
}
.iv-menu .sub-menu a,
.iv-menu .children a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--iv-ink-soft);
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.iv-menu .sub-menu a:hover,
.iv-menu .children a:hover {
  background: var(--iv-paper);
  color: var(--iv-teal);
}
/* Add a small caret/indicator after parent items that have children */
.iv-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform 0.15s;
}
.iv-menu .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
/* Bridge the gap so the dropdown doesn't disappear when moving the cursor
   from the parent label to the dropdown panel. */
.iv-menu .menu-item-has-children > .sub-menu::before,
.iv-menu .menu-item-has-children > .children::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

/* Mobile nav toggle */
.iv-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.iv-nav-toggle-bar {
  width: 22px; height: 2px;
  background: var(--iv-ink);
  transition: transform 0.2s, opacity 0.2s;
}
.iv-nav-toggle[aria-expanded="true"] .iv-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.iv-nav-toggle[aria-expanded="true"] .iv-nav-toggle-bar:nth-child(2) { opacity: 0; }
.iv-nav-toggle[aria-expanded="true"] .iv-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 900px) {
  .iv-nav-toggle { display: flex; }
  .iv-primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--iv-cream);
    border-bottom: 1px solid var(--iv-border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--iv-pad-x-sm);
    transform: translateY(-200%);
    opacity: 0;
    transition: transform 0.25s, opacity 0.2s;
    pointer-events: none;
  }
  .iv-primary-nav.iv-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .iv-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .iv-menu li { border-bottom: 1px solid var(--iv-border); }
  .iv-menu li:last-child { border-bottom: none; }
  .iv-menu a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }
  .iv-menu .iv-menu-cta a,
  .iv-menu .menu-item-cta a {
    margin: 12px 0;
    text-align: center;
    border-radius: 8px;
  }
  /* On mobile, submenu items render inline beneath their parent — no
     hover-driven dropdown panel. */
  .iv-menu .sub-menu,
  .iv-menu .children {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 16px;
    margin: 0;
    min-width: 0;
  }
  .iv-menu .sub-menu li,
  .iv-menu .children li {
    border-bottom: 1px solid var(--iv-border);
  }
  .iv-menu .sub-menu li:last-child,
  .iv-menu .children li:last-child {
    border-bottom: none;
  }
  .iv-menu .sub-menu a,
  .iv-menu .children a {
    padding: 12px 0;
    font-size: 14px;
    white-space: normal;
  }
  .iv-menu .menu-item-has-children > a::after {
    display: none;
  }
}

.iv-main { min-height: 60vh; }

/* ---- BUTTONS ---- */
.iv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  border: 1px solid transparent;
  line-height: 1;
  transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.iv-btn-primary {
  background: var(--iv-teal);
  color: var(--iv-cream);
}
.iv-btn-primary:hover {
  background: var(--iv-teal-deep);
  color: var(--iv-cream);
  transform: translateY(-1px);
}
.iv-btn-ghost {
  background: transparent;
  color: var(--iv-ink);
  border-color: var(--iv-border);
}
.iv-btn-ghost:hover {
  background: var(--iv-paper);
  border-color: var(--iv-ink-soft);
}
.iv-arrow { transition: transform 0.2s; }
.iv-btn:hover .iv-arrow { transform: translateX(3px); }

/* ---- HERO ---- */
.iv-hero {
  padding: 96px 0 80px;
  background: var(--iv-cream);
}
.iv-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: end;
}
@media (min-width: 1024px) {
  .iv-hero-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; }
}
.iv-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  margin: 0 0 32px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.iv-hero h1 em {
  font-style: italic;
  color: var(--iv-teal);
  font-variation-settings: 'opsz' 144;
}
.iv-hero-sub {
  font-size: 19px;
  color: var(--iv-ink-soft);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.iv-hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}

.iv-hero-side {
  border-left: 1px solid var(--iv-border);
  padding-left: 48px;
}
@media (max-width: 1023px) {
  .iv-hero-side {
    border-left: none;
    border-top: 1px solid var(--iv-border);
    padding-left: 0; padding-top: 32px;
  }
}
.iv-hero-side-label {
  font-size: 12px;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}
.iv-hero-stat { padding: 24px 0; border-bottom: 1px solid var(--iv-border); }
.iv-hero-stat:last-child { border-bottom: none; }
.iv-hero-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 350;
  line-height: 1;
  margin-bottom: 6px;
}
.iv-hero-stat-label { font-size: 14px; color: var(--iv-muted); }

/* ---- TRUST BAR ---- */
.iv-trust {
  padding: 64px 0;
  border-top: 1px solid var(--iv-border);
  border-bottom: 1px solid var(--iv-border);
}
.iv-trust-label {
  font-size: 12px;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 32px;
}
.iv-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 56px;
}
.iv-trust-logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--iv-ink-soft);
  opacity: 0.7;
  letter-spacing: -0.01em;
}
.iv-trust-logo.iv-italic { font-style: italic; }

/* ---- SERVICES GRID ---- */
.iv-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--iv-border);
  border: 1px solid var(--iv-border);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 768px) { .iv-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .iv-services-grid { grid-template-columns: repeat(3, 1fr); } }

.iv-service-card {
  background: var(--iv-cream);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--iv-ink);
  transition: background 0.25s;
}
.iv-service-card:hover { background: var(--iv-paper); }
.iv-service-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--iv-teal);
  font-feature-settings: 'tnum';
}
.iv-service-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
}
.iv-service-card p {
  color: var(--iv-ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 4px 0 0;
}
.iv-service-link {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  color: var(--iv-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.iv-service-card:hover .iv-service-link .iv-arrow { transform: translateX(4px); }

/* ---- FEATURED WORK ---- */
.iv-work-section { background: var(--iv-paper); }
.iv-work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .iv-work-grid {
    /* `minmax(0, 1fr)` is the fix: stops oversized children (long unbreakable
       words, large SVGs, min-content sizing in image elements) from forcing
       their grid track wider than its sibling. Default `1fr` resolves to
       `minmax(auto, 1fr)`, which respects min-content size and breaks
       symmetry when one column has a wider child. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .iv-work-card-large { grid-column: 1 / -1; }
}
.iv-work-card {
  background: var(--iv-cream);
  border: 1px solid var(--iv-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  min-width: 0; /* Prevent flex/grid items from overflowing their tracks */
}
/* Work cards are non-interactive showcases until case study pages are built.
   Hover effects intentionally removed so the cards don't suggest a click target. */
.iv-work-card-large {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .iv-work-card-large { grid-template-columns: 1fr 1fr; } }
.iv-work-image {
  background: var(--iv-cream-deep);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
/* Small (non-featured) cards use a fixed image height at desktop to guarantee
   identical heights across cards in the same row, regardless of any tiny
   column-width variance. Mobile retains aspect-ratio for proper scaling. */
@media (min-width: 768px) {
  .iv-work-card:not(.iv-work-card-large) .iv-work-image {
    aspect-ratio: auto;
    height: 240px;
  }
}
.iv-work-card-large .iv-work-image { aspect-ratio: auto; min-height: 360px; }
.iv-work-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.iv-work-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.iv-work-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  color: var(--iv-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(31, 74, 64, 0.08);
  border-radius: 100px;
  font-weight: 500;
}
.iv-work-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.iv-work-card-large h3 { font-size: 44px; }
.iv-work-desc {
  color: var(--iv-ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}
.iv-work-meta {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--iv-border);
  font-size: 13px;
  flex-wrap: wrap;
}
.iv-work-meta-item { display: flex; flex-direction: column; gap: 2px; }
.iv-work-meta-label {
  color: var(--iv-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.iv-work-meta-value { color: var(--iv-ink); font-weight: 500; }

/* ---- PROCESS LIST ---- */
.iv-process-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--iv-border);
}
.iv-process-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  padding: 40px 0;
  border-bottom: 1px solid var(--iv-border);
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .iv-process-row { grid-template-columns: 1fr; gap: 12px; }
}
.iv-process-num {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--iv-teal);
  font-feature-settings: 'tnum';
}
.iv-process-title {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 350;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.iv-process-desc {
  color: var(--iv-ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

/* ---- VALUES (DARK) ---- */
.iv-about-section {
  background: var(--iv-ink);
  color: var(--iv-cream);
}
.iv-about-section .iv-eyebrow {
  color: rgba(244, 241, 234, 0.7);
}
.iv-about-section .iv-eyebrow::before {
  background: rgba(244, 241, 234, 0.7);
}
.iv-about-section h2 { color: var(--iv-cream); }
.iv-about-section .iv-display em { color: var(--iv-teal-light); }
.iv-about-section .iv-section-head p { color: rgba(244, 241, 234, 0.85); }

.iv-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(244, 241, 234, 0.18);
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 768px) { .iv-values-grid { grid-template-columns: repeat(2, 1fr); } }

.iv-value-card {
  background: var(--iv-ink);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.iv-value-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--iv-cream);
}
.iv-value-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--iv-cream);
}
.iv-value-card p {
  color: rgba(244, 241, 234, 0.75);
  font-size: 15px;
  line-height: 1.6;
}

/* ---- INSIGHTS ---- */
.iv-insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .iv-insights-grid { grid-template-columns: repeat(3, 1fr); } }

.iv-article {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.25s;
}
.iv-article:hover { transform: translateY(-4px); }
.iv-article-image {
  aspect-ratio: 16 / 10;
  background: var(--iv-cream-deep);
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--iv-border);
  overflow: hidden;
}
.iv-article-image img { width: 100%; height: 100%; object-fit: cover; }
.iv-article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.iv-article-tag { color: var(--iv-teal); font-weight: 500; }
.iv-article h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 12px;
}
.iv-article p {
  color: var(--iv-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ---- FINAL CTA ---- */
.iv-final-cta {
  background: var(--iv-teal);
  color: var(--iv-cream);
  padding: 120px 0;
  text-align: center;
}
.iv-final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 32px;
}
.iv-final-cta h2 em {
  font-style: italic;
  color: rgba(244, 241, 234, 0.65);
}
.iv-final-cta p {
  font-size: 19px;
  color: rgba(244, 241, 234, 0.92);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.55;
}
.iv-final-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.iv-final-cta .iv-btn-primary {
  background: var(--iv-cream);
  color: var(--iv-teal);
}
.iv-final-cta .iv-btn-primary:hover {
  background: var(--iv-paper);
  color: var(--iv-teal);
}
.iv-final-cta .iv-btn-ghost {
  color: var(--iv-cream);
  border-color: rgba(244, 241, 234, 0.3);
}
.iv-final-cta .iv-btn-ghost:hover {
  background: rgba(244, 241, 234, 0.1);
  color: var(--iv-cream);
  border-color: rgba(244, 241, 234, 0.5);
}

/* ---- SITE FOOTER ---- */
.iv-site-footer {
  background: var(--iv-ink);
  color: rgba(244, 241, 234, 0.7);
  padding: 96px 0 48px;
}
.iv-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .iv-footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.iv-footer-brand { max-width: 360px; }
.iv-footer-logo { display: block; height: 40px; margin-bottom: 20px; }
.iv-footer-logo svg { height: 40px; width: auto; }
.iv-footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.7);
}

.iv-footer-col h4 {
  color: var(--iv-cream);
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-bottom: 20px;
}
.iv-footer-menu li,
.iv-footer-contact li {
  margin-bottom: 10px;
  font-size: 14px;
}
.iv-footer-menu a,
.iv-footer-contact a {
  color: rgba(244, 241, 234, 0.7);
  transition: color 0.15s;
}
.iv-footer-menu a:hover,
.iv-footer-contact a:hover { color: var(--iv-cream); }

.iv-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 241, 234, 0.15);
  font-size: 13px;
  color: rgba(244, 241, 234, 0.5);
}
.iv-footer-legal {
  display: flex;
  gap: 24px;
}
.iv-footer-legal a {
  color: rgba(244, 241, 234, 0.5);
  transition: color 0.15s;
}
.iv-footer-legal a:hover { color: var(--iv-cream); }

/* ---- PAGE TEMPLATE ---- */
.iv-page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--iv-border);
}
.iv-page-header h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  margin: 0;
}

/* ---- POST CONTENT (entry-content) ---- */
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: clamp(28px, 3.5vw, 40px);
  margin-top: 2em;
  color: var(--iv-ink);
}
.entry-content h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: 1.5em;
  color: var(--iv-ink);
}
.entry-content p,
.entry-content ul,
.entry-content ol {
  font-size: 17px;
  line-height: 1.7;
  color: var(--iv-ink-soft);
}
.entry-content ul, .entry-content ol {
  padding-left: 24px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 3px solid var(--iv-teal);
  padding-left: 24px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--iv-ink);
}
.entry-content a {
  color: var(--iv-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content img {
  border-radius: 8px;
  margin: 1.5em 0;
}

/* ---- SINGLE POST ---- */
.iv-single-header { margin-bottom: 40px; }
.iv-single-header h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 0 0 16px;
}
.iv-single-meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--iv-muted);
}
.iv-single-cover {
  margin: 48px 0;
  border-radius: 8px;
  overflow: hidden;
}
.iv-single-cover img { width: 100%; height: auto; display: block; }
.iv-single-footer { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--iv-border); }
.iv-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.iv-tag {
  font-size: 13px;
  color: var(--iv-teal);
  padding: 4px 12px;
  background: rgba(31, 74, 64, 0.08);
  border-radius: 100px;
}

/* ---- ARCHIVE / PAGINATION ---- */
.iv-archive-header { margin-bottom: 64px; }
.iv-archive-header h1 {
  font-size: clamp(40px, 5vw, 60px);
  margin: 0 0 16px;
}
.iv-archive-desc { color: var(--iv-ink-soft); font-size: 17px; line-height: 1.6; max-width: 640px; }
.iv-pagination {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.iv-pagination a,
.iv-pagination span {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--iv-border);
  font-size: 14px;
  color: var(--iv-ink);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.iv-pagination a:hover { background: var(--iv-paper); border-color: var(--iv-ink-soft); }
.iv-pagination .current {
  background: var(--iv-teal);
  color: var(--iv-cream);
  border-color: var(--iv-teal);
}
.iv-empty {
  text-align: center;
  font-size: 18px;
  color: var(--iv-muted);
  padding: 64px 0;
}

/* ---- 404 ---- */
.iv-404-inner {
  text-align: center;
  padding: 60px 0;
}
.iv-404-inner h1 {
  font-size: clamp(48px, 7vw, 88px);
  margin: 0 0 24px;
}
.iv-404-desc {
  font-size: 18px;
  color: var(--iv-ink-soft);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.iv-404-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- SERVICE PAGE TEMPLATE ---- */
.iv-service-hero { padding: 120px 0 80px; }
.iv-service-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
@media (min-width: 1024px) { .iv-service-hero-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; } }

/* ---- SERVICES HUB TEMPLATE ---- */
.iv-services-hub-hero { padding: 120px 0 80px; background: var(--iv-cream); }
.iv-services-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
@media (min-width: 1024px) { .iv-services-hub-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; } }
.iv-services-hub-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  margin: 0;
  line-height: 1.02;
}
.iv-services-hub-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.iv-services-hub-sub {
  font-size: 19px;
  color: var(--iv-ink-soft);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 460px;
}

.iv-services-intro {
  padding: 80px 0;
}
.iv-services-intro .entry-content p {
  font-size: 18px;
  line-height: 1.65;
}

.iv-services-detail-section { padding-top: 0; }
.iv-services-grid-hub {
  /* Reuse the homepage services grid layout exactly */
}

/* ---- ABOUT PAGE TEMPLATE ---- */
.iv-about-hero { padding: 120px 0 64px; background: var(--iv-cream); }
.iv-about-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.iv-about-hero-main {
  max-width: 920px;
}
.iv-about-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  margin: 0 0 32px;
  line-height: 1.02;
}
.iv-about-hero-sub {
  font-size: 20px;
  color: var(--iv-ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

/* Stat row */
.iv-about-stats {
  padding: 64px 0 96px;
  border-top: 1px solid var(--iv-border);
  border-bottom: 1px solid var(--iv-border);
}
.iv-about-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) { .iv-about-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 64px; } }
.iv-about-stat {
  text-align: left;
}
.iv-about-stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--iv-ink);
  margin-bottom: 16px;
}
.iv-about-stat-unit {
  color: var(--iv-teal);
  font-style: italic;
  font-variation-settings: 'opsz' 144;
}
.iv-about-stat-label {
  font-size: 15px;
  color: var(--iv-ink-soft);
  line-height: 1.5;
  max-width: 320px;
}

.iv-about-body { padding-top: 96px; padding-bottom: 96px; }
.iv-about-body .entry-content .iv-lead,
.iv-about-body .entry-content p.has-large-font-size:first-child {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--iv-ink);
  margin-bottom: 1.5em;
}

.iv-service-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  margin: 0;
}
.iv-service-sub {
  font-size: 19px;
  color: var(--iv-ink-soft);
  line-height: 1.55;
  margin-bottom: 32px;
}
.iv-deliverables-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) { .iv-deliverables-list { grid-template-columns: repeat(2, 1fr); } }
.iv-deliverables-list li {
  padding: 20px 24px;
  background: var(--iv-paper);
  border: 1px solid var(--iv-border);
  border-radius: 6px;
  font-size: 15px;
  color: var(--iv-ink);
}
.iv-deliverables-list li::before {
  content: '→';
  color: var(--iv-teal);
  margin-right: 12px;
}

/* ---- CASE STUDY TEMPLATE ---- */
.iv-case-hero { padding: 120px 0 64px; }
.iv-case-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  margin: 0 0 24px;
}
.iv-case-sub {
  font-size: 20px;
  color: var(--iv-ink-soft);
  max-width: 720px;
  line-height: 1.5;
  margin-bottom: 48px;
}
.iv-case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--iv-border);
  border-bottom: 1px solid var(--iv-border);
}
@media (min-width: 768px) { .iv-case-meta { grid-template-columns: repeat(4, 1fr); } }
.iv-case-meta-item { display: flex; flex-direction: column; gap: 4px; }
.iv-case-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--iv-muted);
}
.iv-case-meta-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--iv-ink);
}
.iv-case-cover {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border-top: 1px solid var(--iv-border);
  border-bottom: 1px solid var(--iv-border);
}
.iv-case-cover img { width: 100%; height: auto; display: block; }
.iv-case-metrics {
  background: var(--iv-paper);
  border-bottom: 1px solid var(--iv-border);
  padding: 80px 0;
}
.iv-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) { .iv-metrics-grid { grid-template-columns: repeat(3, 1fr); } }
.iv-metric { text-align: center; }
.iv-metric-value {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 350;
  color: var(--iv-teal);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.iv-metric-label {
  font-size: 14px;
  color: var(--iv-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- WordPress block defaults ---- */
.alignwide { max-width: 1080px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.wp-caption {
  margin: 24px 0;
}
.wp-caption-text {
  font-size: 14px;
  color: var(--iv-muted);
  margin-top: 8px;
  text-align: center;
}

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

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* =============================================================
   CONTACT PAGE
   ============================================================= */

.iv-contact-hero {
  padding: 120px 0 64px;
  background: var(--iv-cream);
}
.iv-contact-hero h1 {
  font-size: clamp(56px, 9vw, 112px);
  margin: 0 0 32px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1;
}
.iv-contact-hero h1 em {
  font-style: italic;
  color: var(--iv-teal);
  font-variation-settings: 'opsz' 144;
}
.iv-contact-sub {
  font-size: 19px;
  color: var(--iv-ink-soft);
  max-width: 640px;
  line-height: 1.55;
  margin: 0;
}

.iv-contact-section {
  padding: 64px 0 128px;
  background: var(--iv-cream);
}
@media (max-width: 768px) {
  .iv-contact-section { padding: 32px 0 80px; }
}
.iv-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .iv-contact-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 80px;
  }
}

.iv-contact-eyebrow {
  margin-bottom: 24px;
}
.iv-contact-form-wrap {
  background: var(--iv-paper);
  border: 1px solid var(--iv-border);
  border-radius: 12px;
  padding: 48px;
}
@media (max-width: 768px) {
  .iv-contact-form-wrap { padding: 32px 24px; }
}

/* ---- Fluent Forms styling overrides ----
   Tame the default plugin styles so the form looks like part of the brand. */
.iv-contact-form .ff-el-group { margin-bottom: 24px !important; }
.iv-contact-form .ff-el-input--label label,
.iv-contact-form label.ff-el-input--label {
  font-family: 'Geist', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--iv-ink) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 8px !important;
  display: block !important;
}
.iv-contact-form .ff-el-form-required {
  color: var(--iv-teal) !important;
}
.iv-contact-form input[type="text"],
.iv-contact-form input[type="email"],
.iv-contact-form input[type="tel"],
.iv-contact-form input[type="url"],
.iv-contact-form select,
.iv-contact-form textarea,
.iv-contact-form .ff-el-form-control {
  font-family: 'Geist', sans-serif !important;
  font-size: 16px !important;
  color: var(--iv-ink) !important;
  background: var(--iv-cream) !important;
  border: 1px solid var(--iv-border) !important;
  border-radius: 6px !important;
  padding: 14px 16px !important;
  width: 100% !important;
  line-height: 1.4 !important;
  transition: border-color 0.15s, background 0.15s !important;
}
.iv-contact-form input:focus,
.iv-contact-form select:focus,
.iv-contact-form textarea:focus,
.iv-contact-form .ff-el-form-control:focus {
  outline: none !important;
  border-color: var(--iv-teal) !important;
  background: var(--iv-paper) !important;
}
.iv-contact-form textarea {
  min-height: 140px !important;
  resize: vertical !important;
}
.iv-contact-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231F4A40' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 40px !important;
}
.iv-contact-form .ff-btn-submit,
.iv-contact-form button[type="submit"] {
  background: var(--iv-teal) !important;
  color: var(--iv-cream) !important;
  font-family: 'Geist', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 14px 28px !important;
  border-radius: 100px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s, transform 0.15s !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}
.iv-contact-form .ff-btn-submit:hover,
.iv-contact-form button[type="submit"]:hover {
  background: var(--iv-teal-deep) !important;
  transform: translateY(-1px) !important;
}
.iv-contact-form .error,
.iv-contact-form .ff-el-is-error input,
.iv-contact-form .ff-el-is-error select,
.iv-contact-form .ff-el-is-error textarea {
  border-color: #993556 !important;
}
.iv-contact-form .text-danger,
.iv-contact-form .error_text {
  color: #993556 !important;
  font-size: 13px !important;
  margin-top: 6px !important;
  font-family: 'Geist', sans-serif !important;
}
.iv-contact-form .ff-message-success {
  background: rgba(31, 74, 64, 0.08) !important;
  border: 1px solid var(--iv-teal) !important;
  color: var(--iv-ink) !important;
  padding: 24px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-family: 'Geist', sans-serif !important;
}

/* ---- Sidebar ---- */
.iv-contact-side {
  position: relative;
}
@media (min-width: 900px) {
  .iv-contact-side {
    position: sticky;
    top: 120px;
  }
}
.iv-contact-method {
  padding: 24px 0;
  border-bottom: 1px solid var(--iv-border);
}
.iv-contact-method:first-of-type { padding-top: 0; }
.iv-contact-method:last-of-type { border-bottom: none; }
.iv-contact-method-label {
  font-size: 12px;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  font-weight: 500;
}
.iv-contact-method-value {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--iv-ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: block;
}
a.iv-contact-method-value {
  transition: color 0.15s;
  text-decoration: none;
}
a.iv-contact-method-value:hover {
  color: var(--iv-teal);
}
.iv-contact-method-note {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: var(--iv-muted);
  margin-top: 6px;
  line-height: 1.5;
  font-weight: 400;
}

/* =============================================================
   INSIGHTS HUB (archive.php)
   ============================================================= */

.iv-insights-hero {
  padding: 120px 0 64px;
  background: var(--iv-cream);
}
.iv-insights-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 1024px) {
  .iv-insights-hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
  }
}
.iv-insights-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  margin: 0;
  line-height: 1.02;
}
.iv-insights-hero h1 em {
  font-style: italic;
  color: var(--iv-teal);
  font-variation-settings: 'opsz' 144;
}
.iv-insights-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.iv-insights-hero-sub {
  font-size: 18px;
  color: var(--iv-ink-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 460px;
}

.iv-insights-archive {
  padding: 80px 0 96px;
  background: var(--iv-cream);
}

/* Featured post (large card at top of blog hub when 3+ posts) */
.iv-article-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 64px;
  background: var(--iv-paper);
  border: 1px solid var(--iv-border);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
@media (min-width: 900px) {
  .iv-article-featured {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}
.iv-article-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(15, 15, 13, 0.08);
}
.iv-article-featured .iv-article-image {
  background: var(--iv-cream-deep);
  min-height: 320px;
  height: 100%;
  aspect-ratio: auto;
}
@media (min-width: 900px) {
  .iv-article-featured .iv-article-image {
    min-height: 420px;
  }
}
.iv-article-featured .iv-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.iv-article-featured .iv-article-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  .iv-article-featured .iv-article-body { padding: 32px 24px; }
}
.iv-article-featured-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 16px 0 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.iv-article-featured-excerpt {
  font-size: 17px;
  color: var(--iv-ink-soft);
  line-height: 1.6;
  margin: 0 0 28px;
}
.iv-article-link {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--iv-teal);
  font-weight: 500;
}
.iv-article-link .iv-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s;
}
.iv-article-featured:hover .iv-article-link .iv-arrow {
  transform: translateX(4px);
}

.iv-article-meta-sep {
  margin: 0 8px;
  color: var(--iv-muted);
}

.iv-insights-divider {
  height: 1px;
  background: var(--iv-border);
  margin: 0 0 64px;
}

/* Empty state */
.iv-insights-empty {
  text-align: center;
  padding: 80px 24px;
  max-width: 560px;
  margin: 0 auto;
}
.iv-insights-empty-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--iv-ink);
  margin: 0 0 16px;
}
.iv-insights-empty-sub {
  font-size: 17px;
  color: var(--iv-ink-soft);
  line-height: 1.6;
  margin: 0;
}
.iv-insights-empty-sub a {
  color: var(--iv-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Article cards in grid (.iv-article — used in archive + related sections) */
.iv-article {
  display: flex;
  flex-direction: column;
  background: var(--iv-paper);
  border: 1px solid var(--iv-border);
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.iv-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 15, 13, 0.06);
}
.iv-article-image {
  background: var(--iv-cream-deep);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
.iv-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.iv-article > .iv-article-meta {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.iv-article-tag {
  color: var(--iv-teal);
  background: rgba(31, 74, 64, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.1em;
}
.iv-article > h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 16px 24px 12px;
}
.iv-article > p {
  font-size: 14px;
  color: var(--iv-ink-soft);
  line-height: 1.6;
  margin: 0 24px 24px;
  flex: 1;
}

/* Pagination */
.iv-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 80px;
  flex-wrap: wrap;
}
.iv-pagination .page-numbers {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--iv-border);
  border-radius: 100px;
  color: var(--iv-ink-soft);
  background: var(--iv-paper);
  transition: all 0.15s;
}
.iv-pagination .page-numbers:hover {
  border-color: var(--iv-teal);
  color: var(--iv-teal);
}
.iv-pagination .page-numbers.current {
  background: var(--iv-teal);
  border-color: var(--iv-teal);
  color: var(--iv-cream);
}

/* =============================================================
   SINGLE POST (single.php)
   ============================================================= */

.iv-single-hero {
  padding: 96px 0 48px;
  background: var(--iv-cream);
  text-align: center;
}
.iv-single-eyebrow {
  margin-bottom: 24px;
}
.iv-single-eyebrow::before {
  margin: 0 auto 0 0;
}
.iv-single-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--iv-ink);
}
.iv-single-deck {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--iv-ink-soft);
  line-height: 1.5;
  margin: 0 auto 32px;
  max-width: 720px;
}
.iv-single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--iv-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.iv-single-meta span[aria-hidden="true"] {
  color: var(--iv-border);
}

.iv-single-cover {
  margin: 0 0 64px;
  background: var(--iv-cream);
  padding-bottom: 32px;
}
.iv-single-cover-img,
.iv-single-cover img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.iv-single {
  padding: 32px 0 96px;
  background: var(--iv-cream);
}
.iv-single-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--iv-ink);
}
.iv-single-content > * { max-width: 100%; }
.iv-single-content p {
  margin: 0 0 1.4em;
}
.iv-single-content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 2.2em 0 0.8em;
  color: var(--iv-ink);
}
.iv-single-content h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 2em 0 0.6em;
  color: var(--iv-ink);
}
.iv-single-content blockquote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(20px, 2.4vw, 24px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  margin: 2em 0;
  padding: 0 0 0 32px;
  border-left: 3px solid var(--iv-teal);
  color: var(--iv-ink);
}
.iv-single-content blockquote p { margin: 0; }
.iv-single-content ul,
.iv-single-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.iv-single-content li { margin-bottom: 0.5em; }
.iv-single-content a {
  color: var(--iv-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.iv-single-content a:hover {
  text-decoration-thickness: 2px;
}
.iv-single-content strong { font-weight: 600; color: var(--iv-ink); }
.iv-single-content em { font-style: italic; }
.iv-single-content code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--iv-cream-deep);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--iv-ink);
}
.iv-single-content pre {
  background: var(--iv-cream-deep);
  border: 1px solid var(--iv-border);
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 14px;
  line-height: 1.6;
}
.iv-single-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.iv-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2em 0;
  display: block;
}
.iv-single-content figcaption {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--iv-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.iv-single-content hr {
  border: none;
  border-top: 1px solid var(--iv-border);
  margin: 2.5em 0;
  height: 1px;
}

/* Article footer (tags + share) */
.iv-single-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--iv-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .iv-single-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.iv-tags,
.iv-single-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'Geist', sans-serif;
}
.iv-tags-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--iv-muted);
  font-weight: 500;
}
.iv-tag {
  font-size: 13px;
  color: var(--iv-ink-soft);
  padding: 4px 10px;
  background: var(--iv-paper);
  border: 1px solid var(--iv-border);
  border-radius: 100px;
  transition: color 0.15s, border-color 0.15s;
}
.iv-tag:hover {
  color: var(--iv-teal);
  border-color: var(--iv-teal);
}
.iv-share-link {
  font-size: 13px;
  color: var(--iv-ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.iv-share-link:hover {
  color: var(--iv-teal);
}

/* Related posts section */
.iv-related {
  background: var(--iv-paper);
  padding: 96px 0;
}
.iv-related .iv-section-head {
  margin-bottom: 48px;
}
