/* ==========================================================================
   SCSI DIGITAL IDENTITY STYLESHEET
   Landing Pages: Practical AI (ai-solutions.html), Project Controls (project-controls.html)
   Digital Business Card: Dan Myrick (dan.html)
   ========================================================================== */

/* --- Review Bar (Preview Navigation) --- */
.reviewbar {
  background: #111b1e;
  border-bottom: 1px solid rgba(255, 106, 0, 0.25);
  position: relative;
  z-index: 1000;
  font-family: var(--font-body, Inter, sans-serif);
}

.reviewinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.5rem var(--space-md, 1.25rem);
}

.reviewid {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #97a8ae;
  white-space: nowrap;
}

.reviewid strong {
  color: var(--brand-orange, #ff6a00);
  font-weight: 600;
}

.reviewtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-tab {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b4c0c4;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: all 0.2s ease;
}

.review-tab span {
  margin-right: 6px;
  color: var(--brand-orange, #ff6a00);
}

.review-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.review-tab.active {
  color: #ffffff;
  background: #223034;
  border-color: var(--brand-orange, #ff6a00);
}

/* --- Review Notice Banner in Footer --- */
.reviewnote-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 106, 0, 0.06);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted, #97a8ae);
}

.reviewnote-box strong {
  color: var(--brand-orange, #ff6a00);
}

/* --- Hero Section --- */
.di-hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle, rgba(208, 224, 232, 0.15));
  overflow: hidden;
  background: #080f12;
  color: #ffffff;
}

.di-heroimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -3;
  opacity: 0.82;
}

.di-heroshade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #080f12 0%, rgba(8, 15, 18, 0.96) 30%, rgba(8, 15, 18, 0.75) 45%, rgba(8, 15, 18, 0.08) 75%),
              linear-gradient(0deg, #080f12 0%, transparent 26%, transparent 76%, rgba(8, 15, 18, 0.6));
  z-index: -2;
}

/* Controls hero variation */
.di-hero-controls .di-heroimg {
  object-position: 75% 57%;
  width: 65%;
  left: 35%;
  opacity: 0.9;
}

.di-hero-controls .di-heroshade {
  background: linear-gradient(90deg, #080f12 0%, #080f12 28%, rgba(8, 15, 18, 0.92) 44%, rgba(8, 15, 18, 0.35) 65%, rgba(8, 15, 18, 0.1)),
              linear-gradient(0deg, #080f12 0%, rgba(8, 15, 18, 0.15) 30%, transparent 80%, #080f12 100%);
}

.di-herocopy {
  padding: 3.5rem 0 5rem;
  max-width: 660px;
}

.di-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ff9b53;
  margin: 0 0 1.5rem;
}

.di-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand-orange, #ff6a00);
}

.di-herocopy h1 {
  font-family: var(--font-heading, Sora, sans-serif);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #ffffff;
}

.di-herocopy h1 em {
  font-style: normal;
  color: var(--brand-orange, #ff6a00);
}

.di-herocopy .di-lede {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #c1cbd0;
  max-width: 480px;
  margin: 0 0 2rem;
}

.di-herobuttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.di-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  border-radius: 7px;
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.di-btn:hover {
  transform: translateY(-2px);
}

.di-btn-primary {
  background: var(--brand-orange, #ff6a00);
  color: #0f1a1b;
  border-color: var(--brand-orange, #ff6a00);
}

.di-btn-primary:hover {
  background: #ff852b;
  color: #080f12;
  box-shadow: 0 4px 18px rgba(255, 106, 0, 0.35);
}

.di-btn-secondary {
  color: #eef4f5;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(15, 26, 27, 0.6);
  backdrop-filter: blur(8px);
}

.di-btn-secondary:hover {
  background: rgba(34, 48, 52, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.di-micro {
  font-size: 0.72rem;
  color: #a2b2b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 1.5rem 0 0;
}

.di-micro span {
  color: var(--brand-orange, #ff6a00);
  margin: 0 10px;
}

.di-annotation {
  position: absolute;
  right: 6%;
  bottom: 60px;
  padding: 12px 18px;
  border-left: 3px solid var(--brand-orange, #ff6a00);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  background: rgba(7, 16, 19, 0.85);
  backdrop-filter: blur(10px);
  color: #c7d3d7;
  line-height: 1.8;
  text-transform: uppercase;
  border-radius: 0 6px 6px 0;
}

.di-annotation strong {
  display: block;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
}

.di-contextline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.di-contextline span {
  font-size: 0.72rem;
  color: #c2cdd1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

/* --- Principles Ribbon --- */
.di-principles-strip {
  border-bottom: 1px solid var(--border-subtle, rgba(208, 224, 232, 0.15));
  background: var(--bg-ribbon, #0f1a1b);
  color: var(--text-ribbon, #ffffff);
  padding: 1.25rem 0;
}

.di-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8b8bd;
}

.di-principles span b {
  color: var(--brand-orange, #ff6a00);
  margin-right: 12px;
  font-weight: 600;
}

/* --- Body Sections --- */
.di-section {
  padding: 4.5rem 0 5rem;
}

.di-sectionhead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.di-sectionhead h2 {
  font-family: var(--font-heading, Sora, sans-serif);
  font-size: 2.1rem;
  letter-spacing: -0.035em;
  line-height: 1.18;
  font-weight: 600;
  margin: 0;
}

.di-sectionhead p:not(.di-eyebrow) {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary, #475569);
  margin: 0;
  max-width: 500px;
}

[data-theme="dark"] .di-sectionhead p:not(.di-eyebrow) {
  color: #afbdc2;
}

/* --- 3-Column Service Cards --- */
.di-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.di-servicecard {
  background: var(--bg-card, rgba(255, 255, 255, 0.8));
  border: 1px solid var(--border-card, rgba(15, 26, 27, 0.1));
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  min-height: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .di-servicecard {
  background: linear-gradient(135deg, #152225, #101b1e);
  border-color: rgba(208, 224, 232, 0.15);
}

.di-servicecard:hover {
  transform: translateY(-3px);
  border-color: var(--brand-orange, #ff6a00);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.di-servicecard .num {
  color: var(--brand-orange, #ff6a00);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.di-servicecard h3 {
  font-family: var(--font-heading, Sora, sans-serif);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--text-primary, #0f1a1b);
}

[data-theme="dark"] .di-servicecard h3 {
  color: #ffffff;
}

.di-servicecard p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary, #475569);
  margin: 0;
}

[data-theme="dark"] .di-servicecard p {
  color: #afbdc2;
}

/* --- Evidence Box --- */
.di-evidence {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  background: var(--bg-alt, rgba(237, 242, 247, 0.75));
  border: 1px solid var(--border-card, rgba(15, 26, 27, 0.1));
  border-radius: 14px;
  padding: 2.25rem;
  margin-top: 1.75rem;
}

[data-theme="dark"] .di-evidence {
  background: #101c1f;
  border-color: rgba(208, 224, 232, 0.15);
}

.di-evidence h3 {
  font-family: var(--font-heading, Sora, sans-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--text-primary, #0f1a1b);
}

[data-theme="dark"] .di-evidence h3 {
  color: #ffffff;
}

.di-evidence p:not(.di-eyebrow) {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary, #475569);
  margin: 0;
}

[data-theme="dark"] .di-evidence p:not(.di-eyebrow) {
  color: #b5c3c8;
}

.di-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.di-steps div {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle, rgba(208, 224, 232, 0.15));
  padding-bottom: 0.65rem;
  color: var(--text-primary, #0f1a1b);
}

[data-theme="dark"] .di-steps div {
  color: #e6e9ee;
}

.di-steps div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.di-steps b {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--brand-orange, #ff6a00);
}

/* --- Section CTA Banner --- */
.di-sectioncta {
  padding: 3rem 0 3.75rem;
  border-top: 1px solid var(--border-subtle, rgba(208, 224, 232, 0.15));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.di-sectioncta h2 {
  font-family: var(--font-heading, Sora, sans-serif);
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text-primary, #0f1a1b);
}

[data-theme="dark"] .di-sectioncta h2 {
  color: #ffffff;
}

.di-sectioncta p {
  font-size: 0.92rem;
  color: var(--text-secondary, #475569);
  margin: 0;
}

[data-theme="dark"] .di-sectioncta p {
  color: #b1bec2;
}

/* ==========================================================================
   DAN MYRICK DIGITAL BUSINESS CARD (dan.html)
   ========================================================================== */
.cardexperience {
  padding: 2.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.cardexperience::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  top: 50px;
  left: -350px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.06), transparent 65%);
}

.cardlayout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4.5rem;
  align-items: center;
  max-width: 1080px;
  margin: auto;
}

.cardintro h1 {
  font-family: var(--font-heading, Sora, sans-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 1.5rem;
  color: var(--text-primary, #0f1a1b);
}

[data-theme="dark"] .cardintro h1 {
  color: #ffffff;
}

.cardintro h1 em {
  font-style: normal;
  color: var(--brand-orange, #ff6a00);
}

.cardintro > p:not(.di-eyebrow) {
  max-width: 420px;
  color: var(--text-secondary, #475569);
  font-size: 1.05rem;
  line-height: 1.75;
}

[data-theme="dark"] .cardintro > p:not(.di-eyebrow) {
  color: #b6c3c8;
}

.carduses {
  margin-top: 2.25rem;
  max-width: 420px;
}

.carduses div {
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-subtle, rgba(208, 224, 232, 0.15));
  font-size: 0.88rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
}

[data-theme="dark"] .carduses div {
  color: #b7c4c9;
}

.carduses b {
  color: var(--text-primary, #0f1a1b);
  font-weight: 600;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

[data-theme="dark"] .carduses b {
  color: #f0f3f4;
}

/* Business Card Element */
.businesscard {
  background: #f2f3ef;
  color: #172327;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #2a3a3f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.cardcover {
  height: 200px;
  background: #0a1519;
  position: relative;
  overflow: hidden;
}

.cardcover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 35%;
  transform: scale(1.35);
  transform-origin: right center;
  opacity: 0.85;
}

.cardcover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a1519 0%, rgba(10, 21, 25, 0.35) 25%, transparent 70%, rgba(6, 16, 20, 0.6));
}

.cardcover .covertitle {
  position: absolute;
  left: 22px;
  top: 20px;
  color: #e5edf0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  z-index: 1;
  font-weight: 600;
}

.coverfooter {
  position: absolute;
  bottom: 18px;
  right: 22px;
  z-index: 1;
  color: #ffffff;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.cardbody {
  padding: 0 1.75rem 1.75rem;
}

.identityrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  margin-bottom: 1.15rem;
}

.cardemblem {
  height: 72px;
  width: 72px;
  background: #ffffff;
  padding: 5px;
  border: 4px solid #f2f3ef;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  object-fit: contain;
}

.smallwordmark {
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  padding-bottom: 4px;
  color: #172327;
  font-family: var(--font-heading, Sora, sans-serif);
}

.businesscard h2 {
  font-family: var(--font-heading, Sora, sans-serif);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
  color: #172327;
}

.cardrole {
  font-size: 0.82rem;
  font-weight: 600;
  color: #536065;
  margin: 0 0 4px;
}

.cardorg {
  font-size: 0.8rem;
  color: #334247;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 0 1.35rem;
}

.positioning {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #405258;
  border-top: 1px solid #cbd3d3;
  border-bottom: 1px solid #cbd3d3;
  padding: 1.1rem 0;
  margin-bottom: 1.25rem;
}

.businesscard .btn-full {
  width: 100%;
  min-height: 46px;
  margin-bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.businesscard .btn-dark {
  background: #132226;
  color: #ffffff;
  border: 1px solid #132226;
}

.businesscard .btn-dark:hover {
  background: #263c43;
  color: #ffffff;
  border-color: #263c43;
}

.businesscard .btn-light {
  border: 1px solid #7c8e94;
  color: #111e22;
  background: transparent;
  font-weight: 700;
}

.businesscard .btn-light:hover {
  background: #e2e8e7;
  border-color: #55686e;
}

.businesscard .btn-light span {
  color: #aa4600;
}

.cardbuttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contactline {
  font-size: 0.72rem;
  color: #4c5e65;
  text-align: center;
  margin: 0.5rem 0 0.85rem;
  overflow-wrap: anywhere;
}

.cardqr {
  border-top: 1px solid #c8d2d3;
  padding-top: 0.75rem;
}

.cardqr summary {
  font-size: 0.75rem;
  font-weight: 600;
  color: #344a53;
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cardqr summary::-webkit-details-marker {
  display: none;
}

.cardqr summary::after {
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.cardqr[open] summary::after {
  content: "−";
}

.qrbox {
  background: #ffffff;
  border-radius: 8px;
  text-align: center;
  margin-top: 8px;
  padding: 1rem;
  border: 1px solid #dbe2e3;
}

.qrbox img {
  max-width: 160px;
  margin: auto;
  display: block;
}

.qrbox p {
  font-size: 0.68rem;
  color: #40545d;
  margin: 6px 0 0;
}

.cardbottomtag {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 1.25rem;
  color: #53656b;
}

.cardbottomtag b {
  font-weight: 700;
  color: #a44100;
}

.prototype-label {
  color: #9faeb4;
  font-size: 0.7rem;
  line-height: 1.65;
  text-align: center;
  margin: 1.1rem auto 0;
  max-width: 440px;
}

.cardfoot {
  margin-top: 2.75rem;
  border-top: 1px solid var(--border-subtle, rgba(208, 224, 232, 0.15));
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: #9daeb4;
}

/* ==========================================================================
   RESPONSIVE DESIGN & ADAPTIVE BREAKPOINTS
   ========================================================================== */

/* Tablet (<=1050px) */
@media (max-width: 1050px) {
  .di-hero {
    min-height: 580px;
  }
  .di-herocopy h1 {
    font-size: 3.2rem;
  }
  .di-herocopy {
    max-width: 580px;
  }
  .di-herocopy .di-lede {
    max-width: 400px;
  }
  .di-annotation {
    display: none;
  }
  .di-sectionhead {
    gap: 2.5rem;
  }
  .cardlayout {
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
  }
  .cardintro h1 {
    font-size: 2.75rem;
  }
  .di-evidence {
    gap: 2rem;
  }
}

/* Tablet Portrait Specific (769px to 950px) */
@media (min-width: 769px) and (max-width: 950px) {
  .cardlayout {
    max-width: 820px;
    padding: 0 1.5rem;
    gap: 2rem;
  }
}

/* Mobile Screens (<=768px) */
@media (max-width: 768px) {
  .site-header .btn-portal {
    display: none !important;
  }

  .site-header .nav-actions {
    gap: 0.5rem;
  }

  .reviewinner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .reviewid {
    font-size: 0.65rem;
    text-align: center;
  }

  .reviewtabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
  }

  .review-tab {
    font-size: 0.68rem;
    padding: 5px 8px;
    white-space: nowrap;
  }

  .di-hero {
    align-items: flex-start;
    min-height: 680px;
  }

  .di-heroimg {
    object-position: 74% 95%;
    height: 55%;
    top: 45%;
    opacity: 0.9;
    width: 140%;
    left: -40%;
  }

  .di-heroshade {
    background: linear-gradient(180deg, #080f12 0%, #080f12 38%, rgba(8, 15, 18, 0.6) 55%, rgba(8, 15, 18, 0.05) 75%, #080f12 100%);
  }

  .di-hero-controls .di-heroimg {
    height: 58%;
    top: 42%;
    width: 100%;
    left: 0;
    object-position: 50% 63%;
  }

  .di-hero-controls .di-heroshade {
    background: linear-gradient(180deg, #080f12 0%, #080f12 32%, rgba(8, 15, 18, 0.88) 48%, rgba(8, 15, 18, 0.1) 68%, #080f12 100%);
  }

  .di-herocopy {
    padding: 2.5rem 0 3rem;
    max-width: none;
  }

  .di-herocopy h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 1.25rem;
  }

  .di-herocopy .di-lede {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .di-principles {
    grid-template-columns: repeat(2, 1fr);
    font-size: 0.68rem;
    gap: 12px 10px;
  }

  .di-section {
    padding: 3rem 0 3.5rem;
  }

  .di-sectionhead {
    display: block;
    margin-bottom: 1.75rem;
  }

  .di-sectionhead h2 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
  }

  .di-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .di-servicecard {
    min-height: auto;
    padding: 1.5rem;
  }

  .di-evidence {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem;
  }

  .di-sectioncta {
    display: block;
    padding: 2.25rem 0 2.75rem;
  }

  .di-sectioncta h2 {
    font-size: 1.65rem;
  }

  .di-sectioncta .di-btn {
    margin-top: 1.25rem;
  }

  /* Digital Card Mobile */
  .cardexperience {
    padding: 1.25rem 0 3.5rem !important;
  }

  .cardlayout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    max-width: 420px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 14px !important;
  }

  .cardintro {
    display: none !important;
  }

  .businesscard {
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .cardcover {
    height: 180px;
  }

  .cardbody {
    padding: 0 1.35rem 1.5rem;
  }

  .businesscard h2 {
    font-size: 1.75rem;
  }
}

/* Very Narrow Mobile (<=500px) */
@media (max-width: 500px) {
  .brand-logo-img {
    width: 36px;
    height: 36px;
  }
  .brand-acronym {
    font-size: 1.25rem;
  }
  .brand-tagline-sub {
    display: none;
  }
  .nav-inner {
    height: 62px;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  .theme-toggle-btn svg {
    width: 18px;
    height: 18px;
  }
  .mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
  }
}

/* Small phones (<=380px) */
@media (max-width: 380px) {
  .di-herocopy h1 {
    font-size: 2rem;
  }

  .di-hero {
    min-height: 720px;
  }

  .cardbody {
    padding: 0 1.1rem 1.25rem;
  }

  .smallwordmark {
    font-size: 1.2rem;
  }

  .cardemblem {
    height: 60px;
    width: 60px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .di-btn, .di-servicecard, .review-tab {
    transition: none !important;
    transform: none !important;
  }
}

/* Global overflow protection */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {
  .reviewid {
    white-space: normal !important;
    text-align: center;
    font-size: 0.65rem !important;
    line-height: 1.35;
  }
  .reviewinner {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .reviewtabs {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .cardexperience {
    padding-left: 12px;
    padding-right: 12px;
  }
  .cardbody {
    padding: 0 1.25rem 1.25rem !important;
  }
}


/* Precise Mobile Centering for Dan Myrick Card */
@media (max-width: 768px) {
  .cardexperience.container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .cardlayout {
    display: block !important;
    width: 100% !important;
    max-width: 358px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  .businesscard {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
}
