/* ============================================================
   Innovation 2 Solution — redesign layer (Nov 2026)
   Loaded after styles.css. New classes only, plus the logo mark.
   ============================================================ */

/* --- Logo mark ------------------------------------------- */
.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand .nav-logo { display: inline-flex; }
.nav-mark { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }

/* --- Split hero ------------------------------------------ */
.hero-split .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; align-items: center; }
.hero-split .hero-content { max-width: none; }
.hero-split h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.1; }
.hero-split .hero-actions { align-items: center; }
.hero-proof-item .number small { font-size: 0.6em; font-weight: 700; }
.hero-figure { position: relative; z-index: 1; }
.hero-caption {
  position: absolute; left: -1.5rem; bottom: 2rem; max-width: 260px;
  background: #fff; color: var(--text); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; box-shadow: var(--shadow-lg); font-size: 0.85rem; line-height: 1.45;
}
.hero-caption strong { display: block; font-family: var(--font-display); color: var(--primary); font-size: 0.95rem; }

/* --- Photo and video slots ------------------------------- */
/* A photo-slot is a placeholder. Swap each for <img class="photo" ...> before going live.
   check_confirms.py lists any that are left. */
.photo, .photo-slot { width: 100%; aspect-ratio: var(--ratio, 4 / 5); border-radius: var(--radius-xl); display: block; }
.photo { object-fit: cover; }
.photo-slot {
  display: grid; place-items: center; text-align: center; padding: 2rem;
  background:
    linear-gradient(135deg, rgba(3,105,161,0.10), rgba(4,120,87,0.08)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(3,105,161,0.05) 14px 15px);
  border: 2px dashed rgba(3,105,161,0.35); color: var(--text-muted);
}
.photo-slot svg { width: 40px; height: 40px; margin: 0 auto 0.75rem; opacity: 0.7; }
.photo-slot strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); margin-bottom: 0.25rem; }
.photo-slot span { font-size: 0.85rem; display: block; max-width: 28ch; margin: 0 auto; }
.on-dark .photo-slot { background: linear-gradient(135deg, rgba(125,211,252,0.08), rgba(110,231,183,0.05)), repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.03) 14px 15px); border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); }
.on-dark .photo-slot strong { color: #fff; }

.video-slot {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid; place-items: center; color: rgba(255,255,255,0.8); text-align: center;
  border: 2px dashed rgba(255,255,255,0.2);
}
.video-slot .play { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 0.9rem; box-shadow: 0 8px 32px rgba(3,105,161,0.5); }
.video-slot .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-slot strong { display: block; color: #fff; font-family: var(--font-display); }
.video-slot span { font-size: 0.85rem; }

/* --- Who we work with ------------------------------------ */
.audience-strip { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.audience-strip .container { display: flex; align-items: center; gap: 1rem 2.5rem; flex-wrap: wrap; justify-content: center; }
.audience-label { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-light); }
.audience-item { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.audience-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* --- Expertise ------------------------------------------- */
.expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.expertise-card { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 2rem 2rem 5.25rem; transition: var(--transition-sl); }
.expertise-card:hover { box-shadow: var(--shadow-md); border-color: rgba(3,105,161,0.4); }
.expertise-num { position: absolute; left: 2rem; top: 2rem; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.expertise-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.expertise-card p { margin: 0; font-size: 0.95rem; }

/* --- QA cycle diagram ------------------------------------ */
.qa-cycle { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; }
.qa-cycle .ring { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 2; stroke-dasharray: 4 6; }
.qa-cycle .arc { fill: none; stroke: #7DD3FC; stroke-width: 2.5; }
.qa-cycle .node { fill: #122A52; stroke: rgba(125,211,252,0.6); stroke-width: 1.5; }
.qa-cycle .node.alt { stroke: rgba(110,231,183,0.7); }
.qa-cycle .num { fill: #7DD3FC; font: 800 15px var(--font-display); text-anchor: middle; }
.qa-cycle .node.alt + .num, .qa-cycle .num.alt { fill: #6EE7B7; }
.qa-cycle .lbl { fill: #fff; font: 600 13px var(--font-body); text-anchor: middle; }
.qa-cycle .core { fill: rgba(3,105,161,0.18); stroke: rgba(125,211,252,0.35); }
.qa-cycle .core-t { fill: #fff; font: 800 18px var(--font-display); text-anchor: middle; }
.qa-cycle .core-s { fill: rgba(255,255,255,0.65); font: 500 12px var(--font-body); text-anchor: middle; }
.cycle-steps { list-style: none; margin: 1.5rem 0 2rem; display: grid; gap: 0.6rem; counter-reset: step; }
.cycle-steps li { counter-increment: step; color: rgba(255,255,255,0.72); padding-left: 2.25rem; position: relative; font-size: 0.95rem; }
.cycle-steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(125,211,252,0.15); color: #7DD3FC; font: 800 0.75rem/1.5rem var(--font-display); text-align: center; }
.cycle-steps strong { color: #fff; }

/* --- Case feature ---------------------------------------- */
.case-feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.case-feature h2 { margin-bottom: 1rem; }
.metric-row { display: flex; gap: 2.5rem; flex-wrap: wrap; padding: 1.25rem 0; margin: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric-row .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--accent); line-height: 1.1; }
.metric-row .l { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.quote-block { margin: 0 0 1.75rem; padding: 0 0 0 1.25rem; border-left: 3px solid var(--accent-2); }
.quote-block p { font-size: 1.05rem; font-style: italic; color: var(--text); line-height: 1.7; margin-bottom: 0.9rem; }
.quote-block footer { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.quote-block footer strong { color: var(--primary); display: block; font-size: 0.95rem; }

/* --- About ----------------------------------------------- */
.page-hero-split .container { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 4rem; align-items: center; }
.page-hero-split .page-hero-content { max-width: none; }
.page-hero-split .hero-figure { max-width: 340px; justify-self: end; width: 100%; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.principle { background: var(--bg); border-radius: var(--radius-lg); padding: 2rem; border-top: 4px solid var(--accent); box-shadow: var(--shadow); }
.principle:nth-child(2) { border-top-color: var(--accent-2); }
.principle:nth-child(3) { border-top-color: var(--primary); }
.principle h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.principle p { margin: 0; font-size: 0.95rem; }
.fact-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0 0; }
.fact-list li { background: var(--bg-light); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: 0.9rem; color: var(--text-muted); }
.fact-list strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--primary); }

.feature-text h2 { margin-bottom: 1rem; }

/* --- Responsive ------------------------------------------ */
/* Tablet widths: keep the menu on one line (it wrapped in the original design) */
@media (min-width: 769px) and (max-width: 1120px) {
  .nav-link { white-space: nowrap; padding-left: 0.55rem !important; padding-right: 0.55rem !important; font-size: 0.85rem; }
  .nav-cta { display: none !important; }
  .nav-logo { font-size: 1.1rem; }
}
@media (min-width: 769px) and (max-width: 960px) {
  .navbar .nav-logo { font-size: 0; gap: 0; } /* logo circle only; the name returns on wider screens */
}
@media (max-width: 960px) {
  .hero-split .container, .page-hero-split .container, .case-feature { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-figure { max-width: 420px; }
  .page-hero-split .hero-figure { justify-self: start; max-width: 300px; }
  .hero-caption { left: 1rem; }
  .principles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .expertise-grid, .fact-list { grid-template-columns: minmax(0, 1fr); }
  .expertise-card { padding: 1.5rem 1.5rem 1.5rem 4.25rem; }
  .expertise-num { left: 1.5rem; top: 1.5rem; }
  .audience-strip .container { justify-content: flex-start; }
  .hero-proof { gap: 1.25rem 2rem; }
  .metric-row { gap: 1.5rem; }
}

/* --- Tag list, case study ------------------------------- */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; padding: 0; }
.tag-list li { font-size: 0.82rem; font-weight: 600; color: var(--primary); background: var(--bg-light); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.85rem; }
.on-dark .tag-list li { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: 0; }
.glance div { border-top: 3px solid var(--accent); padding-top: 0.9rem; }
.glance div:nth-child(even) { border-top-color: var(--accent-2); }
.glance dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.35rem; }
.glance dd { margin: 0; font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.prose-narrow { max-width: 720px; }
.prose-narrow p { font-size: 1.05rem; line-height: 1.75; }
.case-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.case-photos figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.6rem; }
@media (max-width: 960px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .glance, .case-photos { grid-template-columns: minmax(0, 1fr); } }

/* --- Speaking card (About) ------------------------------- */
.speaking-card { background: linear-gradient(135deg, var(--primary), #14396B); color: rgba(255,255,255,0.8); border-radius: var(--radius-lg); padding: 2.25rem; }
.speaking-card h3 { color: #fff; font-size: 1.35rem; margin: 0.4rem 0 0.75rem; }
.speaking-card p { color: rgba(255,255,255,0.78); }
.speaking-card ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.speaking-card li { border-left: 3px solid #7DD3FC; padding-left: 0.9rem; font-size: 0.92rem; }
.speaking-card li strong { display: block; color: #fff; font-family: var(--font-display); }

/* insights card titles are links */
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent, #0369A1); }

/* mobile overflow fixes: service deliverables (inline 3-col style) and article stat grids */
.article-layout > * { min-width: 0; }
.article-body { overflow-wrap: break-word; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 900px) {
  .deliverables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .deliverables-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stat-card { padding: 1rem 0.75rem !important; }
  .stat-card .stat-number { font-size: clamp(1.05rem, 5.2vw, 1.4rem) !important; white-space: nowrap; }
}
@media (max-width: 360px) {
  .stat-grid { grid-template-columns: 1fr !important; }
}

/* very small phones (320–380px): keep the menu button on screen and cards inside the page */
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.service-card, .expertise-card, .blog-card { overflow-wrap: break-word; }
@media (max-width: 380px) {
  .nav-container { padding: 0 1rem; }
  .navbar .nav-logo { font-size: 1rem; gap: 0.45rem; }
  .navbar .nav-mark { width: 32px; height: 32px; }
  .service-card { padding: 1.5rem 1.25rem; }
}
@media (max-width: 480px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; justify-content: center; }
}

/* button groups outside CTA blocks (e.g. 404 page) */
.page-hero .btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
