/* ============================================================
   DIGNEXUS CONSULTANCY — Editorial Design System
   Brand-led colour, editorial typography, premium motion.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..900,0..100&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Brand identity (primary) ──────────────────────────── */
  --navy-dark: #001E5C;
  --navy:      #003087;
  --blue:      #0072CE;
  --sky:       #6CACE4;
  --yellow:    #FFB81C;
  --gold:      #FFB81C;
  --pale:      #F5FCFF;

  /* ── Neutrals (supporting roles only) ──────────────────── */
  --bg:           #F5FCFF;
  --bg-old:       #FAFAF7;
  --bg-elev:      #FFFFFF;
  --bg-tint:      #F4F1EA;        /* subtle warm tint for surfaces */
  --ink:          #0F1419;        /* body text on light */
  --ink-muted:    #3B3937;
  --ink-soft:     #6B6863;
  --line:         #E8E5DE;
  --line-soft:    #F0EDE6;

  /* ── Typography ────────────────────────────────────────── */
  --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* ── Motion ────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: 'ss01', 'cv11';
}

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

/* ── Typography utilities ─────────────────────────────────── */
.font-serif    { font-family: var(--serif); font-optical-sizing: auto; }
.font-display  { font-family: var(--serif); font-optical-sizing: auto; font-variation-settings: 'opsz' 144, 'SOFT' 50; letter-spacing: -0.02em; line-height: 1.02; }
.font-editorial{ font-family: var(--serif); font-style: italic; font-optical-sizing: auto; font-variation-settings: 'opsz' 144; }
.font-sans     { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow-gold { color: var(--blue); }
.eyebrow-yellow { color: var(--yellow); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--navy);
  font-weight: 400;
  font-variation-settings: 'opsz' 36;
}

/* Inline numbering for ordered lists */
.section-number {
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.h-display-xl { font-size: clamp(2.75rem, 7.5vw, 6.5rem); }
.h-display-lg { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
.h-display-md { font-size: clamp(1.75rem, 3.5vw, 3rem); }

blockquote.pull, .pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.3;
  font-style: italic;
  color: var(--navy-dark);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.01em;
}

/* ── Layout ───────────────────────────────────────────────── */
.container-wide { max-width: 1440px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 768px)  { .container-wide { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (min-width: 1280px) { .container-wide { padding-left: 4rem;   padding-right: 4rem;   } }

.rule        { height: 1px; background: var(--line); width: 100%; }
.rule-thick  { height: 2px; background: var(--navy); width: 64px; }
.rule-yellow { height: 2px; background: var(--yellow); width: 64px; }
.rule-gold   { height: 2px; background: var(--gold); width: 64px; }

/* ── Buttons (now navy-led) ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-family: var(--sans);
  font-weight: 600; font-size: 0.875rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(0,30,92,0.45); }

.btn-accent { background: var(--yellow); color: var(--navy-dark); }
.btn-accent:hover { background: #FFC940; transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(255,184,28,0.55); }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #A07F2F; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--navy-dark); border: 1px solid var(--navy-dark); }
.btn-ghost:hover { background: var(--navy-dark); color: #fff; }

.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-dark); border-color: #fff; }

.btn-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.875rem;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  transition: all 0.3s var(--ease-out);
}
.btn-link:hover { color: var(--blue); border-color: var(--blue); gap: 0.85rem; }
.btn-link-light { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.btn-link-light:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

/* ── Cards ────────────────────────────────────────────────── */
.card-edge {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: all 0.5s var(--ease-out);
}
.card-edge:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 30px 60px -25px rgba(0,30,92,0.22); }

/* ── Navbar ───────────────────────────────────────────────── */
#navbar {
  transition: all 0.35s var(--ease-out);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
#navbar.scrolled {
  background: rgba(250, 250, 247, 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--navy);
  transition: width 0.4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── Mobile menu — fully fixed-position overlay ───────────── */
#mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 49;
  padding-top: 96px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
body.menu-open { overflow: hidden; }

/* ── Forms ────────────────────────────────────────────────── */
.field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease-out);
  outline: none;
  border-radius: 0;
}
.field:focus { border-bottom-color: var(--navy); }
.field::placeholder { color: var(--ink-soft); }
textarea.field { resize: vertical; min-height: 120px; }

.field-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
  display: block;
}

select.field {
  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='none' stroke='%23003087' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  appearance: none;
  -webkit-appearance: none;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fade-up   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in  { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scroll-x  { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.animate-fade-up  { animation: fade-up 0.9s var(--ease-out) both; }
.animate-fade-in  { animation: fade-in 0.8s var(--ease-out) both; }
.animate-scale-in { animation: scale-in 0.7s var(--ease-out) both; }

[data-reveal]      { opacity: 0; transform: translateY(28px); transition: all 1s var(--ease-out); }
[data-reveal].in   { opacity: 1; transform: translateY(0); }
[data-reveal-1]    { transition-delay: 0.1s; }
[data-reveal-2]    { transition-delay: 0.2s; }
[data-reveal-3]    { transition-delay: 0.3s; }
[data-reveal-4]    { transition-delay: 0.4s; }
[data-reveal-5]    { transition-delay: 0.5s; }

.hover-lift { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.hover-lift:hover { transform: translateY(-3px); }

.img-zoom-wrap { overflow: hidden; }
.img-zoom { transition: transform 1.2s var(--ease-out); }
.img-zoom-wrap:hover .img-zoom { transform: scale(1.06); }

.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* ── Country / Opportunity Explorer ───────────────────────── */
.country-tab {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.35s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--sans);
}
.country-tab:hover { border-color: var(--navy); color: var(--navy); }
.country-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.country-flag { font-size: 1.2rem; line-height: 1; }

.country-panel { display: none; }
.country-panel.active { display: block; animation: fade-in 0.5s var(--ease-out); }

.opportunity-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-align: left;
  width: 100%;
  font-family: var(--sans);
}
.opportunity-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--yellow);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}
.opportunity-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 30px 50px -25px rgba(0,30,92,0.18); }
.opportunity-card:hover::before { transform: scaleY(1); }

.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: var(--pale);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  font-family: var(--sans);
}
.tag-edu     { background: var(--pale); color: var(--navy); }
.tag-job     { background: #FEF3D6; color: #7C5A0B; }
.tag-funding { background: #DEFAE6; color: #1B6A37; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 30, 92, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
  animation: fade-in 0.3s var(--ease-out);
}
.modal-backdrop.open { display: flex; }
.modal-panel {
  background: var(--bg-elev);
  width: 100%; max-width: 800px;
  max-height: 90vh; overflow-y: auto;
  border-radius: 4px;
  position: relative;
  animation: scale-in 0.4s var(--ease-out);
}
body.modal-open { overflow: hidden; }

.price-stack {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--sans);
}
.price-stack .price-label {
  font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}
.price-stack .price-value {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.25rem; color: var(--navy-dark);
  font-variation-settings: 'opsz' 36;
  letter-spacing: -0.01em;
}

.filter-pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-family: var(--sans);
}
.filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.filter-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Service icon plates (now branded) ────────────────────── */
.icon-plate {
  width: 48px; height: 48px;
  border: 1px solid var(--pale);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  background: var(--pale);
  color: var(--navy);
  flex-shrink: 0;
}

.num-badge {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ── Footer link ──────────────────────────────────────────── */
.footer-link {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: color 0.25s var(--ease-out);
}
.footer-link:hover { color: var(--yellow); }

/* ────────────────────────────────────────────────────────────
   NEW COMPONENTS
   ──────────────────────────────────────────────────────────── */

/* ── Logo scroller (clients) ──────────────────────────────── */
.logo-scroller {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.logo-track {
  display: flex; gap: 4rem; width: max-content;
  animation: scroll-x 40s linear infinite;
}
.logo-item {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  min-width: 180px; height: 60px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 48;
  transition: color 0.3s var(--ease-out);
}
.logo-item:hover { color: var(--navy); }
.logo-item img { max-height: 40px; max-width: 160px; object-fit: contain; opacity: 0.65; transition: opacity 0.3s var(--ease-out); filter: grayscale(100%); }
.logo-item:hover img { opacity: 1; filter: grayscale(0%); }

/* ── Accordion (Things Worth Knowing) ─────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: 500;
  color: var(--navy-dark);
  font-variation-settings: 'opsz' 36;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color 0.3s var(--ease-out);
}
.accordion-trigger:hover { color: var(--blue); }
.accordion-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-top: 0.25rem;
  transition: all 0.3s var(--ease-out);
}
.accordion-icon::before, .accordion-icon::after {
  content: ''; position: absolute;
  background: var(--navy);
  transition: transform 0.35s var(--ease-out);
}
.accordion-icon::before { width: 12px; height: 1.5px; }
.accordion-icon::after  { width: 1.5px; height: 12px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  background: var(--navy); border-color: var(--navy);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon::before,
.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  background: #fff;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(90deg);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.accordion-panel-inner {
  padding: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 64ch;
}

/* ── Testimonial carousel ─────────────────────────────────── */
.testimonial-carousel {
  position: relative;
}
.testimonial-viewport {
  overflow: hidden;
  /* Soft fade on the right edge to suggest "more to come" */
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 92%, transparent 100%);
  margin-right: -1.5rem; /* extends viewport off-canvas to give peek room */
}
@media (min-width: 768px) {
  .testimonial-viewport { margin-right: -2.5rem; }
}
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.testimonial-slide {
  flex: 0 0 calc(100% - 3rem);  /* mobile: ~1 + peek */
}
@media (min-width: 640px) {
  .testimonial-slide { flex: 0 0 calc(50% - 1.5rem); }   /* 2 cards visible */
}
@media (min-width: 1024px) {
  .testimonial-slide { flex: 0 0 calc(33.333% - 1.25rem); } /* 3 cards + peek */
}

.testimonial-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 2.25rem 2.25rem 2rem;
  display: flex; flex-direction: column;
  height: 100%;
  position: relative;
  transition: all 0.45s var(--ease-out);
}
.testimonial-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 30px 60px -25px rgba(0,30,92,0.18); }

/* Carousel controls */
.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.testimonial-arrow {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  color: var(--navy);
}
.testimonial-arrow:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.testimonial-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.testimonial-arrow:disabled:hover {
  background: var(--bg-elev);
  border-color: var(--line);
  color: var(--navy);
}
.testimonial-progress {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.testimonial-progress-bar {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: var(--navy);
  transition: width 0.7s var(--ease-out);
}
.testimonial-count {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-variation-settings: 'opsz' 36;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  min-width: 70px;
  text-align: right;
}
.testimonial-count em {
  font-style: normal;
  color: var(--ink-soft);
}

/* Country flag chip beside name */
.testimonial-flag {
  font-size: 1rem;
  line-height: 1;
  margin-left: 0.4rem;
  vertical-align: -1px;
}
.testimonial-quote-mark {
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--gold);
  font-variation-settings: 'opsz' 144;
  margin-bottom: 1rem;
  height: 24px;
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  font-variation-settings: 'opsz' 36;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.testimonial-meta {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.testimonial-info p:first-child {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}
.testimonial-info p:last-child {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 2px;
  letter-spacing: 0.02em;
}


/* ── Insight (article) preview card ───────────────────────── */
.insight-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s var(--ease-out);
}
.insight-card:hover { transform: translateY(-3px); }
.insight-card:hover .insight-image img { transform: scale(1.05); }
.insight-card:hover .insight-title { color: var(--blue); }
.insight-image {
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 1.5rem;
  background: var(--pale);
}
.insight-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.insight-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.insight-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.25;
  color: var(--navy-dark);
  font-variation-settings: 'opsz' 36;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  transition: color 0.3s var(--ease-out);
}
.insight-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ── Section dark variant (now navy) ──────────────────────── */
.section-dark {
  background: var(--navy-dark);
  color: #fff;
}
.section-dark .eyebrow { color: var(--yellow); }

/* ── Article (Field Notes individual pages) ──────────────── */
.article-body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 68ch;
}
.article-body > * + * { margin-top: 1.5rem; }
.article-body p { margin-top: 1.5rem; }
.article-body p:first-child { margin-top: 0; }
.article-body p.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  float: left;
  font-size: 4.5rem;
  line-height: 0.85;
  padding: 0.25rem 0.65rem 0 0;
  color: var(--navy);
  font-variation-settings: 'opsz' 144;
}
.article-body h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  transition: all 0.25s var(--ease-out);
}
.article-body a:hover { color: var(--blue); border-color: var(--blue); }
.article-body ul, .article-body ol {
  margin: 1.5rem 0 1.5rem 0;
  padding-left: 0;
  list-style: none;
}
.article-body ul li, .article-body ol li {
  position: relative;
  padding-left: 1.75rem;
  margin-top: 0.75rem;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 1px;
  background: var(--navy);
}
.article-body ol { counter-reset: list; }
.article-body ol li {
  counter-increment: list;
}
.article-body ol li::before {
  content: counter(list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.article-body blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.45;
  font-variation-settings: 'opsz' 96;
  color: var(--ink);
}
.article-body blockquote p { margin-top: 0; }
.article-body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3rem auto;
  width: 100%;
}
.article-body .callout {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: var(--pale);
  border-left: 2px solid var(--navy);
}
.article-body .callout p:first-child { margin-top: 0; }
.article-body .callout p:last-child { margin-bottom: 0; }

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.article-meta-row span.dot {
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--ink-soft);
  display: inline-block;
}

/* ── Form validation states ───────────────────────────────── */
.field-invalid {
  border-bottom-color: #C0392B !important;
}
.form-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #C0392B;
  letter-spacing: 0.02em;
}
.form-error.show {
  display: block;
  animation: fade-in 0.25s var(--ease-out);
}

/* ── intl-tel-input theming to match site ─────────────────── */
.iti {
  width: 100%;
}
.iti__country-list {
  font-family: var(--sans);
  font-size: 0.9rem;
}
.iti input.field {
  padding-left: 6.5rem !important;
}
.iti--separate-dial-code .iti__selected-dial-code {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 500;
}
.iti__country-container {
  border-bottom: 1px solid var(--line);
}

/* Disabled submit button looks gracefully inactive */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
