:root {
  color-scheme: light;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img,
video,
iframe,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

body.mobile-nav-open {
  overflow: hidden;
  height: 100vh;
}

/* ==================================================
   iPhone 7 / small-viewport mobile-first adjustments
   Target: portrait widths up to 375px (iPhone 6/7/8 sizes)
   Enforce mobile-first sizing, min paddings, tap targets,
   and ensure WCAG-friendly contrast for small viewports.
   ==================================================*/
@media (max-width: 375px) {
  html { font-size: 16px; -webkit-text-size-adjust: 100%; }

  /* Ensure display headings scale with clamp() for narrow viewports */
  .font-display {
    font-size: clamp(1.8rem, 7.2vw, 2.6rem) !important;
    line-height: 1.06 !important;
    word-break: break-word;
  }

  /* Raise tiny copy to readable sizes on phones */
  .text-[11px],
  .text-[12px],
  .text-[13px] {
    font-size: 0.9375rem !important; /* ~15px, better readability */
    line-height: 1.6 !important;
    font-weight: 600 !important;
  }

  /* Enforce minimum padding for touch comfort */
  main, section, .hero-card, .card-hero, .teaser-card, .kv-hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Mobile menu occupies full width and uses comfortable side padding */
  .site-mobile-menu-panel {
    width: 100vw !important;
    padding: 0 16px 24px !important;
  }

  /* Ensure header has safe horizontal padding on small screens */
  header.sticky, .sticky {
    padding: 0.5rem 16px !important;
  }

  /* Improve cream-on-ink contrast and weight on small screens */
  .bg-ink .text-cream,
  .bg-ink .text-cream\/75 {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.06);
  }

  /* Keep mobile text aligned with the same palette as desktop */
  .bg-cream .text-muted-foreground,
  .bg-cream\/70 .text-muted-foreground,
  .bg-background .text-muted-foreground,
  .bg-cream .text-ink-soft,
  .bg-cream\/70 .text-ink-soft {
    color: #111111 !important;
    opacity: 1 !important;
  }

  /* Make interactive controls comfortably tappable */
  a, button {
    min-height: 44px !important;
    min-width: 44px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Ensure mobile nav links are easy to read and tap */
  .site-mobile-menu-nav a {
    padding: 0.9rem 0 !important;
    font-size: 1rem !important;
    letter-spacing: 0.08em !important;
  }

  /* Avoid absolute overlap clipping: keep overlays padded and relative */
  .hero-card .overlay,
  .card-hero .overlay,
  .kv-hero .overlay {
    position: relative !important;
    transform: none !important;
    padding: 12px 0 16px !important;
    background: rgba(2, 18, 61, 0.72) !important;
    color: #ffffff !important;
  }

  .hero-card .overlay h2,
  .card-hero .overlay h2,
  .kv-hero .overlay h2,
  .hero-card .overlay p,
  .card-hero .overlay p,
  .kv-hero .overlay p {
    color: #ffffff !important;
  }

  /* Slightly larger focus ring for touch devices */
  button:focus-visible, a:focus-visible {
    box-shadow: 0 0 0 6px rgba(252,92,36,0.18) !important;
    outline: none !important;
  }

  /* Strengthen narrow-screen layout and prevent overflow */
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .max-w-4xl,
  .max-w-3xl,
  .max-w-2xl,
  .max-w-xl,
  .max-w-lg,
  .max-w-md,
  .max-w-sm,
  .max-w-xs {
    max-width: 100% !important;
  }

  .lg\:grid,
  .lg\:flex,
  .lg\:items-center,
  .lg\:justify-between,
  .lg\:space-x-6,
  .lg\:space-x-8 {
    display: block !important;
    width: 100% !important;
  }

  .lg\:grid-cols-2,
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  .lg\:col-span-1,
  .lg\:col-span-2,
  .lg\:col-span-3,
  .lg\:col-span-4 {
    grid-column: auto !important;
  }

  .px-6,
  .px-8,
  .px-10,
  .px-12,
  .px-16,
  .px-20 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  input,
  textarea,
  select,
  button {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .overflow-x-hidden,
  .overflow-hidden,
  .overflow-clip {
    overflow-x: hidden !important;
  }

  .text-ink,
  .text-ink-soft,
  .text-muted-foreground,
  .text-cream,
  .text-cream\/70,
  .text-cream\/75,
  .text-cream\/85 {
    word-break: break-word !important;
  }

  .bg-orange,
  .bg-orange-500,
  .bg-orange-600,
  .bg-[#f97316],
  .bg-[#ff7a0c],
  .bg-[#f15a24] {
    color: #ffffff !important;
  }

  .bg-orange .text-orange,
  .bg-orange-500 .text-orange,
  .bg-orange-600 .text-orange,
  .bg-[#f97316] .text-[#f97316],
  .bg-[#f15a24] .text-[#f15a24] {
    color: #ffffff !important;
  }

  .bg-ink .text-ink,
  .bg-ink .text-ink-soft,
  .bg-ink .text-muted-foreground {
    color: #ffffff !important;
  }

  .bg-cream .text-cream,
  .bg-cream\/70 .text-cream,
  .bg-background .text-cream,
  .bg-background .text-muted-foreground {
    color: #111111 !important;
  }
}

/* About page expertise cards: blue background with white text */
.border-b.border-ink.bg-ink.py-24.text-cream .grid article {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.border-b.border-ink.bg-ink.py-24.text-cream .grid article h3,
.border-b.border-ink.bg-ink.py-24.text-cream .grid article p {
  color: #ffffff !important;
}
.border-b.border-ink.bg-ink.py-24.text-cream .grid article .text-orange {
  color: #f97316 !important;
}

@media (max-width: 480px) {
  .relative > .absolute.-bottom-6.-left-4.max-w-\[280px\] {
    background: #1e3a8a !important;
    color: #ffffff !important;
  }
  .relative > .absolute.-bottom-6.-left-4.max-w-\[280px\] p {
    color: #ffffff !important;
  }

  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  main,
  section,
  article,
  footer,
  header > div,
  .mx-auto {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li,
  span,
  a,
  button {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .font-display,
  h1,
  h2,
  h3,
  h4 {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  [class~="pointer-events-none"][class~="absolute"],
  [class~="pointer-events-none"][class~="absolute"] * {
    display: none !important;
    visibility: hidden !important;
  }

  [class*="marquee"],
  [class*="marquee"] > * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .kov-marquee,
  .kov-marquee > * {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .font-display {
    font-size: clamp(2rem, 9vw, 3.2rem) !important;
    line-height: 1.05 !important;
  }

  .text-[11px],
  .text-[12px],
  .text-[13px],
  .text-[15px],
  .text-[16px],
  .text-[18px] {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  img,
  video,
  picture,
  source,
  svg {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .relative.aspect-\[3\/4\] > img,
  .relative.aspect-\[4\/3\] > img,
  .relative.aspect-\[4\/5\] > img,
  .relative.aspect-square > img,
  .relative.aspect-video > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-position: center center !important;
  }

  input,
  textarea,
  select,
  button {
    min-height: 44px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-mobile-menu-panel {
    width: min(100vw, 100%) !important;
    max-width: 100vw !important;
  }

  .bg-ink .text-ink,
  .bg-ink .text-ink-soft,
  .bg-ink .text-muted-foreground {
    color: #ffffff !important;
  }

  .bg-cream .text-cream,
  .bg-cream\/70 .text-cream,
  .bg-background .text-cream {
    color: #111111 !important;
  }
}
/* Fix: keep header controls compact (don't force full-width buttons inside header) */
@media (max-width: 480px) {
  header .inline-flex,
  header button,
  header a.inline-flex {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Reduce header height so the border and controls take less vertical space */
  header .h-16, header > div.h-16 {
    height: 48px !important;
    min-height: 48px !important;
  }

  /* Slightly reduce spacing inside the header container */
  header .mx-auto { padding-left: 12px !important; padding-right: 12px !important; }
}
/* Hide the small stacked branding block that duplicates hero text on narrow phones */
@media (max-width: 480px) {
  .flex.items-start.justify-between.gap-6.lg\:hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
/* Additional small-viewport tweaks to prevent oversized headings and overflow */
@media (max-width: 480px) {
  /* Make the large display type much more predictable on small phones */
  .font-display, h1, h2, h3 {
    font-size: clamp(1.6rem, 8.5vw, 2.6rem) !important;
    line-height: 1.06 !important;
    hyphens: auto !important;
    word-break: break-word !important;
  }

  /* Ensure the site header and logo don't push content off-screen */
  header .mx-auto, header > div {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Reduce very-large heading overrides coming from utility classes */
  h1.font-display {
    font-size: clamp(1.8rem, 9.5vw, 3.2rem) !important;
    font-weight: 800 !important;
  }

  /* Prevent any unintended horizontal overflow from absolute decorative elements */
  [class*="-right-16"], [class*="-left-16"], .pointer-events-none.absolute {
    display: none !important;
    visibility: hidden !important;
  }
}
/* ==========================================================
   Accessibility / contrast overrides (site-wide)
   These rules strengthen low-contrast utility combinations found
   in the site (small captions on dark or light backgrounds).
   ==========================================================*/

/* Ensure cream text on dark ink backgrounds is fully readable */
.bg-ink .text-cream,
.bg-ink .text-cream\/70,
.bg-ink .text-cream\/75,
.bg-ink .text-cream\/85,
.bg-ink p,
.bg-ink .text-ink-soft-muted,
.bg-ink .text-[11px],
.bg-ink .text-[12px] {
  color: #f8f5ef !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* Specifically strengthen cream/75 variant when used on bg-ink */
.bg-ink .text-cream\/75 { color: #ffffff !important; }

/* Keep muted/supporting text in the same palette as the desktop version */
.bg-cream .text-muted-foreground,
.bg-cream\/70 .text-muted-foreground,
.bg-background .text-muted-foreground {
  color: #111111 !important;
  opacity: 1 !important;
}

/* Ensure text-ink-soft reads on cream backgrounds */
.bg-cream .text-ink-soft,
.bg-cream\/70 .text-ink-soft {
  color: #111111 !important;
  opacity: 1 !important;
}

/* Small caption weight — make tiny copy more legible by default */
.text-[11px],
.text-[12px] {
  font-weight: 600 !important;
}

/* Buttons / inline elements on dark backgrounds */
.bg-ink .border-cream,
.bg-ink .text-primary-foreground,
.bg-ink .text-cream {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.12) !important;
}

/* Prevent decorative artwork from visually cutting off important text
   Keep hero/card-type containers from hiding text on narrow viewports */
.hero-card,
.card-hero,
.teaser-card,
.kv-hero {
  position: relative;
  overflow: hidden;
}

/* Utility: force a high-contrast variant where markup contains 'high-contrast' */
.high-contrast { filter: contrast(1.08); }

main > section:first-of-type img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 560px);
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(20, 22, 24, 0.16);
}

@media (max-width: 767px) {
  main > section:first-of-type img {
    max-height: min(60vh, 420px);
    border-radius: 1.15rem;
  }
}

@media (max-width: 480px) {
  main > section:first-of-type img {
    max-height: min(48vh, 320px);
    border-radius: 1rem;
  }
}

.site-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.35);
  backdrop-filter: blur(2px);
}

.site-mobile-menu-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 380px);
  height: 100%;
  background: #ffffff;
  color: #111111 !important;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  padding-top: max(1rem, env(safe-area-inset-top));
}

.site-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-mobile-menu.is-open .site-mobile-menu-panel {
  transform: translateX(0);
}

.site-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

.site-mobile-menu-header a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #111111 !important;
  text-decoration: none;
}

.site-mobile-menu-header img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.site-mobile-menu-header .menu-close {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: #111111 !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}

.site-mobile-menu-header .menu-close:hover {
  background: #111111 !important;
}

.site-mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.15rem;
}

.site-mobile-menu-nav a {
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111 !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  text-decoration: none;
}

.site-mobile-menu-nav a:last-child {
  border-bottom: 0;
}

.site-mobile-menu-nav a:hover,
.site-mobile-menu-nav a:focus-visible {
  color: #d97f2d;
}

@media (min-width: 1024px) {
  .site-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  main,
  section,
  footer {
    width: 100%;
    overflow-x: hidden;
  }

  input,
  textarea,
  select,
  button {
    max-width: 100%;
  }

  button,
  a {
    touch-action: manipulation;
  }
}

@media (max-width: 640px) {
  .site-mobile-menu-panel {
    width: 100vw;
  }

  .font-display {
    font-size: clamp(2.2rem, 8vw, 3.6rem) !important;
    line-height: 1.05 !important;
  }

  .text-[11px],
  .text-[12px],
  .text-[13px],
  .text-[15px],
  .text-[16px],
  .text-[18px] {
    line-height: 1.65 !important;
  }

  .max-w-md,
  .max-w-sm,
  .max-w-xs {
    max-width: 100% !important;
  }
}

header.sticky,
.sticky {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
}

.site-mobile-menu-panel {
  min-height: 100vh;
  padding-bottom: 1.5rem;
  overflow-y: auto;
}

button[data-mobile-menu-toggle],
button[data-mobile-menu-close] {
  outline: none;
}

button[data-mobile-menu-toggle]:focus-visible,
button[data-mobile-menu-close]:focus-visible {
  box-shadow: 0 0 0 4px rgba(252, 92, 36, 0.22);
}

.site-mobile-menu-nav a {
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111 !important;
}

.site-mobile-menu-nav a:focus-visible,
.site-mobile-menu-nav a:hover {
  color: #d97f2d;
}

.site-mobile-menu-nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(252, 92, 36, 0.2);
}

.bg-ink .text-cream,
.bg-ink .text-cream\/70,
.bg-ink .text-cream\/75,
.bg-ink .text-cream\/85 {
    color: #ffffff !important;
}

.site-mobile-menu-nav a:focus-visible,
.site-mobile-menu-nav a:hover,
nav a:focus-visible,
nav a:hover {
  outline: none;
  box-shadow: 0 0 0 4px rgba(252, 92, 36, 0.22);
}

button.group {
  width: 100%;
  padding: 1.15rem 1rem;
  text-align: left;
  border-radius: 1rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

button.group:hover,
button.group:focus-visible {
  background-color: #111111 !important;
}

button.group:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(252, 92, 36, 0.22);
}

button.group span:first-child {
  display: block;
}

button.group span:last-child {
  min-width: 3rem;
  border-radius: 999px;
}

.font-display,
.font-display * {
  word-break: break-word;
  overflow-wrap: break-word;
}

.text-ink-soft {
  color: #111111 !important;
}

.bg-cream\/70 .text-ink-soft,
.bg-cream\/70 .text-muted-foreground {
  color: #111111 !important;
}

.bg-cream {
  background-color: #fdf4ea !important;
}

.bg-background {
  background-color: #ffffff !important;
}

body.mobile-nav-open {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  inset: 0;
  width: 100%;
}

/* Responsive refinement for the full site */
@media (max-width: 1023px) {
  header nav.hidden {
    display: none !important;
  }

  .lg\:grid {
    display: grid !important;
  }

  .lg\:flex {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  :root {
    --site-padding: clamp(1rem, 4vw, 1.5rem);
  }

  body {
    font-size: 16px;
  }

  main,
  section,
  footer,
  article,
  form,
  .site-mobile-menu-panel {
    min-width: 0;
    max-width: 100%;
  }

  main,
  section,
  footer {
    width: 100%;
    overflow-x: clip;
  }

  .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .max-w-4xl,
  .max-w-3xl,
  .max-w-2xl,
  .max-w-xl,
  .max-w-lg,
  .max-w-md,
  .max-w-sm,
  .max-w-xs {
    max-width: 100% !important;
  }

  .px-6,
  .px-8,
  .px-10,
  .px-12,
  .px-16,
  .px-20,
  .lg\:px-10,
  .lg\:px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-20,
  .py-24,
  .py-28,
  .py-32,
  .lg\:py-20,
  .lg\:py-24,
  .lg\:py-28,
  .lg\:py-32,
  .pt-14,
  .pt-20 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .pb-24,
  .pb-32,
  .lg\:pb-24,
  .lg\:pb-32 {
    padding-bottom: 2rem !important;
  }

  .pt-14,
  .lg\:pt-20 {
    padding-top: 2rem !important;
  }

  .grid-cols-12,
  .grid-cols-6,
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2,
  .lg\:grid-cols-12,
  .lg\:grid-cols-6,
  .lg\:grid-cols-3,
  .lg\:grid-cols-2,
  .sm\:grid-cols-2,
  .sm\:grid-cols-3,
  .md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  .col-span-1,
  .col-span-2,
  .col-span-3,
  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-9,
  .col-span-10,
  .col-span-11,
  .col-span-12,
  .sm\:col-span-1,
  .sm\:col-span-2,
  .sm\:col-span-3,
  .sm\:col-span-4,
  .sm\:col-span-5,
  .sm\:col-span-6,
  .md\:col-span-1,
  .md\:col-span-2,
  .md\:col-span-3,
  .md\:col-span-4,
  .md\:col-span-5,
  .md\:col-span-6,
  .lg\:col-span-1,
  .lg\:col-span-2,
  .lg\:col-span-3,
  .lg\:col-span-4,
  .lg\:col-span-5,
  .lg\:col-span-6,
  .lg\:col-span-7,
  .lg\:col-span-8,
  .lg\:col-span-9,
  .lg\:col-span-10,
  .lg\:col-span-11,
  .lg\:col-span-12 {
    grid-column: auto !important;
  }

  .lg\:flex,
  .lg\:items-center,
  .lg\:justify-between,
  .md\:flex-row,
  .sm\:flex-row {
    display: block !important;
    width: 100% !important;
  }

  .lg\:flex {
    flex-direction: column !important;
  }

  .hidden,
  .lg\:flex.hidden,
  nav.hidden {
    display: none !important;
  }

  .lg\:gap-16,
  .lg\:gap-12,
  .lg\:gap-8,
  .lg\:gap-10,
  .md\:gap-8,
  .sm\:gap-8 {
    gap: 1rem !important;
  }

  .lg\:space-x-6,
  .lg\:space-x-8 {
    gap: 0.75rem !important;
  }

  .lg\:translate-y-12 {
    transform: none !important;
  }

  .pointer-events-none.absolute {
    display: none !important;
  }

  .font-display,
  .font-display * {
    font-size: clamp(2rem, 8vw, 3.25rem) !important;
    line-height: 0.95 !important;
  }

  .text-\[11px\],
  .text-\[12px\],
  .text-\[13px\],
  .text-\[14px\],
  .text-\[15px\],
  .text-\[16px\],
  .text-\[18px\] {
    font-size: clamp(0.95rem, 2vw, 1.05rem) !important;
    line-height: 1.65 !important;
  }

  .text-\[40px\],
  .text-\[52px\],
  .text-\[56px\],
  .text-\[60px\],
  .text-\[64px\],
  .text-\[72px\],
  .text-\[80px\],
  .text-\[88px\],
  .text-\[96px\],
  .text-\[112px\],
  .text-\[128px\] {
    font-size: clamp(2.1rem, 8vw, 3.4rem) !important;
  }

  .text-\[20px\],
  .text-\[22px\],
  .text-\[24px\],
  .text-\[28px\],
  .text-\[30px\],
  .text-\[32px\],
  .text-\[36px\] {
    font-size: clamp(1.2rem, 3.6vw, 1.6rem) !important;
  }

  .text-\[10px\] {
    font-size: 0.8rem !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  p,
  li,
  label,
  input,
  textarea,
  select,
  button,
  a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .w-\[100px\],
  .w-\[280px\],
  .w-24,
  .w-28,
  .w-32,
  .w-40,
  .w-56,
  .w-64,
  .w-72 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .h-24,
  .h-28,
  .h-32,
  .h-40,
  .h-56,
  .h-72,
  .h-\[420px\] {
    height: auto !important;
    min-height: 0 !important;
  }

  .aspect-\[3\/4\] {
    aspect-ratio: 3 / 4 !important;
  }

  .max-w-\[280px\] {
    max-width: 100% !important;
  }

  .site-mobile-menu-panel {
    width: min(100vw, 100%) !important;
  }

  .site-mobile-menu-nav a {
    font-size: 0.95rem !important;
    padding: 0.9rem 0 !important;
  }
}

@media (max-width: 375px) {
  .font-display,
  .font-display * {
    font-size: clamp(1.9rem, 9vw, 2.8rem) !important;
  }

  .px-6,
  .px-8,
  .px-10 {
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
  }

  .text-\[11px\],
  .text-\[12px\],
  .text-\[13px\],
  .text-\[15px\],
  .text-\[16px\],
  .text-\[18px\] {
    font-size: 0.95rem !important;
  }

  .site-mobile-menu-panel {
    width: 100vw !important;
  }
}

.brand-logo {
  height: 2.25rem !important;
  width: auto !important;
  max-width: 8rem !important;
}

.kov-marquee {
  width: max-content;
  animation: 24s linear infinite kov-marquee;
  display: flex;
}

.kov-marquee,
.kov-marquee > div,
.kov-marquee img {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 640px) {
  .brand-logo {
    height: 2rem !important;
    max-width: 6.5rem !important;
  }

  main > section:first-of-type {
    padding-top: 2rem !important;
    padding-bottom: 2.25rem !important;
  }

  main > section:first-of-type h1 {
    font-size: clamp(2.4rem, 9vw, 3.15rem) !important;
    line-height: 0.95 !important;
    margin-top: 1rem !important;
  }

  .group.-mx-6 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .group.-mx-6 > div {
    gap: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  ol.mt-14.flex.flex-col {
    margin-top: 2rem !important;
  }

  ol.mt-14.flex.flex-col > li > div {
    gap: 0.75rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  ol.mt-14.flex.flex-col > li h3 {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
  }
}

/* Final palette enforcement: only black/orange/white text */
:root {
  --foreground: #111111 !important;
  --color-ink: #111111 !important;
  --color-ink-soft: #111111 !important;
  --muted-foreground: #111111 !important;
  --primary-foreground: #ffffff !important;
  --color-cream: #ffffff !important;
  --color-orange: #f97316 !important;
}

body,
body * {
  color: #111111 !important;
}

.text-orange,
.text-orange-500,
.text-orange-600,
.text-\[\#f97316\],
[class*="text-orange"] {
  color: #f97316 !important;
}

.text-white,
.text-cream,
.text-cream\/70,
.text-cream\/75,
.text-cream\/85,
.text-primary-foreground,
.text-foreground {
  color: #ffffff !important;
}

.bg-ink,
.bg-ink *,
.bg-orange,
.bg-orange *,
.bg-\[\#f97316\],
.bg-\[\#ff7a0c\],
.bg-\[\#f15a24\],
.overlay,
.overlay *,
.hero-card .overlay,
.hero-card .overlay *,
.card-hero .overlay,
.card-hero .overlay *,
.kv-hero .overlay,
.kv-hero .overlay * {
  color: #ffffff !important;
}

.hero-card .overlay h2,
.hero-card .overlay h3,
.hero-card .overlay p,
.card-hero .overlay h2,
.card-hero .overlay h3,
.card-hero .overlay p,
.kv-hero .overlay h2,
.kv-hero .overlay h3,
.kv-hero .overlay p,
.overlay h2,
.overlay h3,
.overlay p,
.image-overlay h2,
.image-overlay h3,
.image-overlay p,
.hero-caption h2,
.hero-caption h3,
.hero-caption p {
  color: #ffffff !important;
}

/* Preserve orange accents on dark backgrounds */
.bg-ink .text-orange,
.bg-ink [class*="text-orange"],
.bg-\[\#1e3a8a\] .text-orange,
.bg-\[\#1e3a8a\] .bg-orange,
.overlay .text-orange,
.hero-caption .text-orange {
  color: #f97316 !important;
}


/* Unified palette: black / orange / white only for text */
body,
p,
li,
span,
a,
button,
label,
small,
strong,
em,
h1,
h2,
h3,
h4,
.text-ink,
.text-ink-soft,
.text-muted-foreground,
.text-foreground,
.text-cream,
.text-cream\/70,
.text-cream\/75,
.text-cream\/85,
.text-primary-foreground,
.text-white {
  color: #111111 !important;
}

.text-orange,
.text-orange-500,
.text-orange-600,
.text-\[\#f97316\],
[class*="text-orange"] {
  color: #f97316 !important;
}

.bg-ink,
.bg-ink * {
  color: #ffffff !important;
}

.bg-orange,
.bg-orange-500,
.bg-orange-600,
.bg-\[\#f97316\],
.bg-\[\#ff7a0c\],
.bg-\[\#f15a24\] {
  color: #ffffff !important;
}

.bg-ink .text-orange,
.bg-ink [class*="text-orange"] {
  color: #f97316 !important;
}

/* Keep overlay copy readable on dark/blue surfaces */
.hero-card .overlay,
.card-hero .overlay,
.kv-hero .overlay,
.overlay,
.image-overlay,
.hero-caption {
  color: #ffffff !important;
}

.hero-card .overlay h2,
.hero-card .overlay h3,
.hero-card .overlay p,
.card-hero .overlay h2,
.card-hero .overlay h3,
.card-hero .overlay p,
.kv-hero .overlay h2,
.kv-hero .overlay h3,
.kv-hero .overlay p,
.overlay h2,
.overlay h3,
.overlay p,
.image-overlay h2,
.image-overlay h3,
.image-overlay p,
.hero-caption h2,
.hero-caption h3,
.hero-caption p {
  color: #ffffff !important;
}

/* ==================================================
   HERO OVERLAY STYLING: Blue + White + Orange Accents
   Apply to all hero card overlays, captions, and CTAs.
   ==================================================*/

/* Hero overlay captions: blue background with white text */
.hero-card .overlay,
.card-hero .overlay,
.kv-hero .overlay,
[class*="hero"] .overlay,
[class*="caption"],
.overlay,
.image-overlay,
.hero-caption {
  background: rgba(30, 58, 138, 0.88) !important;
  color: #ffffff !important;
  padding: 12px 16px 14px !important;
  border-radius: 0.5rem !important;
}

.hero-card .overlay h2,
.card-hero .overlay h2,
.kv-hero .overlay h2,
.hero-card .overlay h3,
.card-hero .overlay h3,
.kv-hero .overlay h3,
.hero-card .overlay p,
.card-hero .overlay p,
.kv-hero .overlay p,
.overlay h2,
.overlay h3,
.overlay p,
.image-overlay h2,
.image-overlay h3,
.image-overlay p,
.hero-caption h2,
.hero-caption h3,
.hero-caption p {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Orange accent text preserved in overlays */
.hero-card .overlay .text-orange,
.card-hero .overlay .text-orange,
.kv-hero .overlay .text-orange,
.overlay .text-orange,
.image-overlay .text-orange,
.hero-caption .text-orange {
  color: #f97316 !important;
}

/* CTA buttons on overlays: dark ink background, white text, orange hover */
.overlay .bg-ink,
.overlay button.bg-ink,
.image-overlay .bg-ink,
.image-overlay button.bg-ink,
.hero-caption .bg-ink,
.hero-caption button.bg-ink {
  background-color: #0f1216 !important;
  color: #ffffff !important;
}

.overlay .bg-ink:hover,
.overlay button.bg-ink:hover,
.image-overlay .bg-ink:hover,
.image-overlay button.bg-ink:hover,
.hero-caption .bg-ink:hover,
.hero-caption button.bg-ink:hover {
  background-color: #1a1f26 !important;
}

/* Ensure backdrop and semi-transparent overlays maintain contrast */
.absolute.-bottom-6.-left-4.max-w-\[280px\],
.absolute.-bottom-4.-left-4.max-w-\[280px\] {
  background: rgba(30, 58, 138, 0.92) !important;
  color: #ffffff !important;
  padding: 12px 16px 14px !important;
  border-radius: 0.5rem !important;
}

.absolute.-bottom-6.-left-4.max-w-\[280px\] h2,
.absolute.-bottom-6.-left-4.max-w-\[280px\] h3,
.absolute.-bottom-6.-left-4.max-w-\[280px\] p,
.absolute.-bottom-4.-left-4.max-w-\[280px\] h2,
.absolute.-bottom-4.-left-4.max-w-\[280px\] h3,
.absolute.-bottom-4.-left-4.max-w-\[280px\] p {
  color: #ffffff !important;
}

/* Ensure all text on blue backgrounds is readable */
.bg-\[#1e3a8a\],
.bg-\[\#1e3a8a\] {
  color: #ffffff !important;
}

.bg-\[#1e3a8a\] h1,
.bg-\[#1e3a8a\] h2,
.bg-\[#1e3a8a\] h3,
.bg-\[#1e3a8a\] h4,
.bg-\[#1e3a8a\] p,
.bg-\[#1e3a8a\] span,
.bg-\[\#1e3a8a\] h1,
.bg-\[\#1e3a8a\] h2,
.bg-\[\#1e3a8a\] h3,
.bg-\[\#1e3a8a\] h4,
.bg-\[\#1e3a8a\] p,
.bg-\[\#1e3a8a\] span {
  color: #ffffff !important;
}

/* Preserve orange accents on blue backgrounds */
.bg-\[#1e3a8a\] .text-orange,
.bg-\[\#1e3a8a\] .text-orange,
.bg-\[#1e3a8a\] .bg-orange,
.bg-\[\#1e3a8a\] .bg-orange {
  color: #f97316 !important;
}
