/* ourworks.css — M PRO9 Our Work Page — "Verified Delivery" */

/* ── Custom Properties ── */
:root {
  --ow-primary:       #173f64;
  --ow-primary-light: #319dcf;
  --ow-secondary:     #0a1f3d;
  --ow-text-body:     #334155;
  --ow-text-muted:    #64748b;
  --ow-bg-light:      #f8fafc;
  --ow-border:        rgba(23, 63, 100, 0.10);
  --ow-radius:        16px;
  --ow-radius-lg:     20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Body ── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ow-bg-light);
  color: #0f172a;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--site-nav-h-px, 80px);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -120%;
  left: 16px;
  padding: 10px 22px;
  background: var(--ow-secondary);
  color: #f1f5fa;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--ow-primary-light); outline-offset: 2px; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── Section spacing ── */
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* ── Section label ── */
.ow-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ow-primary-light);
  margin-bottom: 10px;
}

/* ── Section header ── */
.ow-section-header {
  margin-bottom: 56px;
}
.ow-section-header h2 {
  color: var(--ow-primary);
  margin-top: 6px;
}
@media (max-width: 768px) { .ow-section-header { margin-bottom: 40px; } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn-primary {
  background: var(--ow-primary-light);
  color: #fff;
}
.btn-primary:hover {
  background: #2589ba;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(49, 157, 207, 0.30);
}
.btn-light {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.48);
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.82);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.38);
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════
   HERO — Full-Screen Background
   ═══════════════════════════════════════════ */
.ow-hero {
  position: relative;
  min-height: calc(84vh - var(--site-nav-h-px, 80px));
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image */
.ow-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ow-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Dark overlay — left gradient protects text, trails to semi-dark right */
.ow-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(102deg,
      rgba(10,31,61,0.93) 0%,
      rgba(10,31,61,0.82) 40%,
      rgba(10,31,61,0.50) 66%,
      rgba(10,31,61,0.24) 100%
    );
  pointer-events: none;
}

/* Crosshatch grid + left radial glow — premium texture above overlay */
.ow-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 64% at 14% 52%, rgba(49,157,207,0.11) 0%, transparent 58%),
    linear-gradient(rgba(49,157,207,0.016) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(49,157,207,0.016) 1px, transparent 1px) 0 0 / 36px 36px;
  pointer-events: none;
  z-index: 2;
}

.ow-hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.ow-hero-text {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  padding: 80px 0;
}

.ow-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ow-primary-light);
  margin-bottom: 16px;
}

.ow-hero h1 {
  color: #fff;
  margin-bottom: 22px;
  max-width: 580px;
  line-height: 1.08;
}

.ow-hero-sub {
  color: rgba(255,255,255,0.80);
  font-size: 1.05rem;
  line-height: 1.80;
  max-width: 500px;
}

/* Proof strip — factual category labels, no metrics */
.ow-hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 30px;
}
.ow-hero-proof span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.ow-hero-proof span + span {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.16);
}

@media (max-width: 900px) {
  .ow-hero-text { padding: 64px 0; max-width: 100%; }
  .ow-hero-sub { font-size: 1rem; }
}

@media (max-width: 560px) {
  .ow-hero-text { padding: 56px 0; }
  .ow-hero-proof { margin-top: 22px; gap: 8px 0; }
  .ow-hero-proof span + span { margin-left: 12px; padding-left: 12px; }
}

/* ═══════════════════════════════════════════
   CATEGORY NAV
   ═══════════════════════════════════════════ */
.ow-cat-nav {
  background: #fff;
  border-bottom: 1px solid var(--ow-border);
}

.ow-cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.ow-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ow-primary);
  text-decoration: none;
  border: 1px solid rgba(23, 63, 100, 0.14);
  background: transparent;
  transition: background 0.20s ease, border-color 0.20s ease;
}
.ow-cat-pill:hover {
  background: rgba(23, 63, 100, 0.05);
  border-color: rgba(23, 63, 100, 0.26);
}

/* ═══════════════════════════════════════════
   PRODUCT EVIDENCE LEDGER
   ═══════════════════════════════════════════ */
.ow-ledger { background: var(--ow-bg-light); }

.ow-ledger-record {
  display: grid;
  grid-template-columns: 1fr 360px;
  border: 1px solid var(--ow-border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}
.ow-ledger-record:last-child { margin-bottom: 0; }
.ow-ledger-record:hover {
  box-shadow: 0 12px 44px rgba(23, 63, 100, 0.10);
  border-color: rgba(23, 63, 100, 0.18);
}

/* Alternating: proof panel flips to left on even records */
.ow-ledger-record--alt { grid-template-columns: 360px 1fr; }
.ow-ledger-record--alt .ow-record-content { order: 2; }
.ow-ledger-record--alt .ow-record-proof   { order: 1; }

/* ── Content column ── */
.ow-record-content {
  padding: 38px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  min-width: 0;
}

.ow-record-index {
  font-family: 'Lato', sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ow-primary-light);
  opacity: 0.60;
}

.ow-record-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ow-record-cat {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ow-primary);
  background: rgba(23, 63, 100, 0.06);
  padding: 3px 10px;
  border-radius: 100px;
}

.ow-record-content h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.0rem);
  color: var(--ow-secondary);
  line-height: 1.18;
  overflow-wrap: break-word;
}

.ow-record-content p {
  color: var(--ow-text-body);
  font-size: 0.96rem;
  line-height: 1.78;
  overflow-wrap: break-word;
}

.ow-record-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ow-primary-light);
  font-weight: 700;
  font-size: 0.90rem;
  text-decoration: none;
  align-self: flex-start;
  margin-top: 4px;
  transition: gap 0.22s ease, color 0.22s ease;
}
.ow-record-link:hover { gap: 11px; color: var(--ow-primary); }

/* ── Proof panel ── */
.ow-record-proof {
  background: var(--ow-secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
}

/* Radial glow + fine grid inside proof panel */
.ow-record-proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 50%, rgba(49, 157, 207, 0.12) 0%, transparent 65%),
    linear-gradient(rgba(49, 157, 207, 0.028) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(49, 157, 207, 0.028) 1px, transparent 1px) 0 0 / 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle per-record glow variation — same palette, shifted anchor */
.ow-ledger-record:nth-of-type(2) .ow-record-proof::before {
  background:
    radial-gradient(ellipse 68% 60% at 64% 36%, rgba(49, 157, 207, 0.10) 0%, transparent 62%),
    linear-gradient(rgba(49, 157, 207, 0.026) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(49, 157, 207, 0.026) 1px, transparent 1px) 0 0 / 28px 28px;
}
.ow-ledger-record:nth-of-type(3) .ow-record-proof::before {
  background:
    radial-gradient(ellipse 72% 68% at 36% 62%, rgba(49, 157, 207, 0.14) 0%, transparent 64%),
    linear-gradient(rgba(49, 157, 207, 0.030) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(49, 157, 207, 0.030) 1px, transparent 1px) 0 0 / 28px 28px;
}
.ow-ledger-record:nth-of-type(4) .ow-record-proof::before {
  background:
    radial-gradient(ellipse 70% 62% at 56% 58%, rgba(49, 157, 207, 0.11) 0%, transparent 63%),
    linear-gradient(rgba(49, 157, 207, 0.027) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(49, 157, 207, 0.027) 1px, transparent 1px) 0 0 / 28px 28px;
}

.ow-proof-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 28px;
  text-align: center;
  width: 100%;
}

.ow-proof-mono {
  font-family: 'Lato', sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  color: rgba(49, 157, 207, 0.28);
  line-height: 1;
  letter-spacing: 0.04em;
}

.ow-proof-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ow-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: ow-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes ow-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.09); }
}

.ow-proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.ow-proof-chip {
  font-size: 0.67rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(49, 157, 207, 0.12);
  border: 1px solid rgba(49, 157, 207, 0.20);
  padding: 4px 10px;
  border-radius: 100px;
}

.ow-proof-domain {
  font-size: 0.70rem;
  color: rgba(49, 157, 207, 0.55);
  letter-spacing: 0.10em;
  font-weight: 500;
}

/* ── Ledger responsive ── */
@media (max-width: 1024px) {
  .ow-ledger-record,
  .ow-ledger-record--alt {
    grid-template-columns: 1fr;
  }
  .ow-ledger-record--alt .ow-record-content { order: 1; }
  .ow-ledger-record--alt .ow-record-proof   { order: 2; }
  .ow-record-proof  { min-height: 170px; }
  .ow-proof-mono    { font-size: 2.6rem; }
  .ow-proof-inner   { padding: 22px 20px; }
}

@media (max-width: 768px) {
  .ow-record-content { padding: 26px 24px; gap: 12px; }
  .ow-proof-mono     { font-size: 2.0rem; }
  .ow-proof-inner    { padding: 18px 16px; }
}

@media (max-width: 480px) {
  .ow-record-content { padding: 22px 18px; }
}

/* ═══════════════════════════════════════════
   CLIENT DELIVERY
   ═══════════════════════════════════════════ */
.ow-clients { background: #fff; }

.ow-client-rows {
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius);
  overflow: hidden;
}

.ow-client-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 32px 40px;
  background: #fff;
  border-bottom: 1px solid rgba(23, 63, 100, 0.07);
  transition: background 0.22s ease;
}
.ow-client-row:last-child { border-bottom: none; }
.ow-client-row:hover      { background: rgba(49, 157, 207, 0.025); }

.ow-client-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.ow-client-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ow-primary-light);
  background: rgba(49, 157, 207, 0.08);
  padding: 2px 9px;
  border-radius: 100px;
  align-self: flex-start;
}

.ow-client-meta h3 {
  font-size: 1.25rem;
  color: var(--ow-secondary);
  margin: 0;
  overflow-wrap: break-word;
}

.ow-client-desc {
  color: var(--ow-text-body);
  font-size: 0.93rem;
  line-height: 1.72;
  min-width: 0;
  overflow-wrap: break-word;
}

.ow-client-link { white-space: nowrap; }

@media (max-width: 900px) {
  .ow-client-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 28px;
  }
  .ow-client-link { align-self: flex-start; }
}
@media (max-width: 480px) {
  .ow-client-row { padding: 22px 20px; }
}

/* ═══════════════════════════════════════════
   APPLIED ENGINEERING
   ═══════════════════════════════════════════ */
.ow-applied { background: var(--ow-bg-light); }

.ow-applied-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 768px) { .ow-applied-grid { grid-template-columns: 1fr; } }

.ow-eng-card {
  background: #fff;
  border: 1px solid var(--ow-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.ow-eng-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(23, 63, 100, 0.11);
  border-color: rgba(23, 63, 100, 0.18);
}

.ow-eng-media {
  aspect-ratio: 16 / 9;
  background: #071629;
  overflow: hidden;
  flex-shrink: 0;
}
.ow-eng-media video,
.ow-eng-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ow-eng-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.ow-eng-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ow-eng-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ow-primary-light);
  background: rgba(49, 157, 207, 0.07);
  padding: 3px 10px;
  border-radius: 100px;
}

.ow-eng-body h3 {
  color: var(--ow-primary);
  font-size: clamp(1.10rem, 2vw, 1.28rem);
  margin: 0;
  overflow-wrap: break-word;
}

.ow-eng-body p {
  color: var(--ow-text-body);
  font-size: 0.93rem;
  line-height: 1.74;
  margin: 0;
}

.ow-eng-built {
  background: rgba(49, 157, 207, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.87rem;
  line-height: 1.68;
  color: var(--ow-text-body);
}
.ow-eng-built-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ow-primary-light);
  margin-bottom: 6px;
}

.ow-eng-body .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 480px) {
  .ow-eng-body { padding: 22px 20px 26px; }
}

/* ═══════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════ */
.ow-cta-section {
  padding: 100px 0;
  background: #fff;
}
@media (max-width: 768px) { .ow-cta-section { padding: 72px 0; } }

.ow-cta-card {
  background: var(--ow-secondary);
  border-radius: 22px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ow-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 75% at 50% 55%, rgba(49, 157, 207, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 40% 42% at 18% 85%, rgba(23, 63, 100, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 82% 18%, rgba(49, 157, 207, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.ow-cta-inner {
  position: relative;
  z-index: 1;
}

.ow-cta-inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 14px;
}

.ow-cta-inner p {
  color: rgba(255, 255, 255, 0.70);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.ow-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .ow-cat-pill,
  .ow-record-link,
  .ow-eng-card,
  .ow-ledger-record,
  .ow-client-row { transition: none !important; }
  .ow-eng-card:hover    { transform: none; box-shadow: none; }
  .ow-ledger-record:hover { box-shadow: none; }
  .ow-status-dot { animation: none; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22); }
}

/* ═══════════════════════════════════════════
   COARSE POINTER (TOUCH DEVICES)
   ═══════════════════════════════════════════ */
@media (pointer: coarse) {
  /* Category pills: 44px minimum tap target */
  .ow-cat-pill {
    min-height: 44px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
  }

  /* Eng cards: suppress translate on tap to prevent layout jitter;
     keep a subtle shadow upgrade to signal the tap */
  .ow-eng-card:hover {
    transform: none;
    box-shadow: 0 6px 24px rgba(23, 63, 100, 0.10);
  }

  /* Ledger records: suppress box-shadow pop on tap */
  .ow-ledger-record:hover {
    box-shadow: none;
    border-color: var(--ow-border);
  }

  /* Client rows: neutral hover on touch */
  .ow-client-row:hover { background: #fff; }
}

/* ═══════════════════════════════════════════
   MICRO-MOBILE — 430px
   ═══════════════════════════════════════════ */
@media (max-width: 430px) {
  /* Hero: tighter vertical padding */
  .ow-hero-text { padding: 44px 0; }

  /* Hero proof strip: tighten separators */
  .ow-hero-proof span + span {
    margin-left: 10px;
    padding-left: 10px;
  }

  /* Proof panel: floor prevents content spill when chips wrap */
  .ow-record-proof { min-height: 185px; }
  .ow-proof-inner  { padding: 20px 14px; }
}

/* ═══════════════════════════════════════════
   SMALLEST SCREENS — 380px
   Hero proof strip wraps here; border-left separators look broken
   when items wrap to new lines — switch to column layout.
   ═══════════════════════════════════════════ */
@media (max-width: 380px) {
  .ow-hero-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 18px;
  }
  .ow-hero-proof span + span {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  /* Record content: tighter padding at absolute minimum */
  .ow-record-content { padding: 18px 14px; gap: 10px; }
  .ow-proof-inner    { padding: 16px 12px; }
  .ow-proof-mono     { font-size: 1.8rem; }

  /* Client rows */
  .ow-client-row { padding: 18px 16px; }

  /* Eng card body */
  .ow-eng-body { padding: 18px 16px 22px; }

  /* CTA buttons: full-width stack on the tiniest phones */
  .ow-cta-btns { flex-direction: column; align-items: center; }
  .ow-cta-btns .btn { width: 100%; justify-content: center; }
}

.site-footer a { color: #d4e8ff; text-decoration: none; }

/* ═══════════════════════════════════════════
   POLISH PASS — Card Depth
   Surgical shadow + accent additions only.
   No layout, colour, or font changes.
   ═══════════════════════════════════════════ */

/* ── Ledger records: resting shadow + hover upgrade ──
   overflow: hidden clips nothing here — box-shadow is external.
   Adding transform to transition; existing shadow/border-color
   durations preserved. ── */
.ow-ledger-record {
  box-shadow: 0 2px 14px rgba(23,63,100,0.07), 0 1px 3px rgba(23,63,100,0.04);
  transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.26s ease;
}
.ow-ledger-record:hover {
  box-shadow: 0 6px 28px rgba(23,63,100,0.12), 0 2px 8px rgba(23,63,100,0.06);
  transform: translateY(-3px);
}

/* Accent bar — .ow-record-content is a flex column;
   ::before is free (no existing pseudo-element on this class).
   Appears as first flex item before the record index number. */
.ow-record-content::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--ow-primary-light), rgba(49,157,207,0.25));
  border-radius: 2px;
  flex-shrink: 0;
}

/* Suppress hover on touch/no-hover devices — belt-and-suspenders with
   the existing @media (pointer: coarse) block above. */
@media (hover: none) {
  .ow-ledger-record:hover {
    transform: none;
    box-shadow: 0 2px 14px rgba(23,63,100,0.07), 0 1px 3px rgba(23,63,100,0.04);
    border-color: rgba(23,63,100,0.10);
  }
}

/* ── Applied Engineering cards: resting shadow ──
   Existing hover translateY(-5px) and border-color are good;
   only adding a resting shadow and tightening the hover shadow. ── */
.ow-eng-card {
  box-shadow: 0 2px 10px rgba(23,63,100,0.06);
}
.ow-eng-card:hover {
  box-shadow: 0 6px 24px rgba(23,63,100,0.12), 0 2px 8px rgba(23,63,100,0.05);
}

/* Media/image container: border separator.
   External box-shadow would be clipped by .ow-eng-card overflow:hidden,
   so a hairline border-bottom creates the depth line instead. */
.ow-eng-media {
  border-bottom: 1px solid rgba(23,63,100,0.07);
}

@media (hover: none) {
  .ow-eng-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(23,63,100,0.06);
  }
}

/* ── Mobile parity ── */
@media (max-width: 768px) {
  .ow-record-content::before { width: 24px; }
}

/* Robotic arm image — show the complete robot without cropping */
.ow-eng-media--robot {
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef3;
}

.ow-eng-media--robot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 12px;
}

@media (max-width: 768px) {
  .ow-eng-media--robot {
    height: 280px;
  }

  .ow-eng-media--robot img {
    padding: 8px;
  }
}