/* ============================================================
   RESPONSIVE.CSS — Shared responsive rules for all pages
   Link after styles.css and components.css:
   <link rel="stylesheet" href="responsive.css">
   ============================================================ */


/* Hidden by default on desktop */
.products-show-more {
  display: none;
  justify-content: center;
  margin-top: 1.5rem;
}
.products-show-more .btn {
  font-size: 0.82rem;
  gap: 0.4rem;
}


.industries-show-more {
  display: none;
  justify-content: center;
  margin-top: 1.5rem;
}
.industries-show-more .btn {
  font-size: 0.82rem;
  gap: 0.4rem;
}
/* ─────────────────────────────────────────────
   1440px+ : Ultra-wide
   ───────────────────────────────────────────── */
@media (min-width: 1441px) {
  .container { max-width: 1400px; }
  .hero-content { max-width: 1400px; }
}


/* ─────────────────────────────────────────────
   1200px : Large tablets / small laptops
   ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .industries-grid,
  .app-grid          { grid-template-columns: repeat(3, 1fr); }
  .formats-grid      { grid-template-columns: repeat(3, 1fr); }
  .cert-grid         { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}


/* ─────────────────────────────────────────────
   1024px : Tablets landscape
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Page hero */
  .page-hero          { padding: 8rem 0 3rem; }
  .page-hero h1       { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  .page-hero p        { font-size: 0.95rem; }

  /* Section */
  .section             { padding: 4rem 0 2.5rem; }
  .section-header      { margin-bottom: 2.5rem; }
  .section-header h2   { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
}


/* ─────────────────────────────────────────────
   900px : Tablets portrait
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Page hero */
  .page-hero           { padding: 7rem 0 2.5rem; }
  .page-hero h1        { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .page-hero p         { font-size: 0.92rem; line-height: 1.7; }

  /* Section */
  .section              { padding: 3.5rem 0 2rem; }
  .section-header       { margin-bottom: 2.2rem; }

  /* Grids → 2-col */
  .industries-grid,
  .markets-grid,
  .formats-grid,
  .diff-grid            { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .app-grid,
  .products-grid        { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Generic card grids (page-specific 3-col → 2-col) */
  .cap-three-col,
  .complex-grid         { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  /* About intro */
  .about-intro-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid           { gap: 2.5rem; }
  .supply-grid          { grid-template-columns: 1fr; gap: 1.2rem; }
  .about-intro-stats    { gap: 1rem; }

  /* Vision */
  .vision-grid-v2,
  .commitment-grid      { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .vision-statement     { padding: 2.5rem 2rem; border-radius: var(--radius-lg); }
  .vision-statement h2  { font-size: 1.6rem; }
  .vision-statement p   { font-size: 0.88rem; }
  .vision-statement::before { width: 180px; height: 180px; top: -40px; right: -40px; }
  .vision-statement::after  { width: 120px; height: 120px; bottom: -30px; left: -30px; }
  .bridge-grid          { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Founder → horizontal card */
  .founder-grid          { grid-template-columns: 1fr; gap: 2rem; }
  .founder-photo-wrap    { position: static; display: flex; gap: 1.2rem; align-items: center; }
  .founder-photo         { width: 140px; min-width: 140px; aspect-ratio: 1/1; flex-shrink: 0; }
  .founder-name-card     { margin-top: 0; padding: 1rem; flex: 1; }
  .founder-name          { font-size: 1.1rem; }
  .founder-role          { font-size: 0.65rem; }
  .founder-social        { gap: 0.4rem; margin-top: 0.6rem; }
  .founder-social a      { font-size: 0.7rem; padding: 0.35rem 0.7rem; }

  .ecosystem-grid        { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .ecosystem-item        { padding: 0.7rem 0.5rem; font-size: 0.72rem; }
  .ecosystem-item span   { font-size: 1.1rem; margin-bottom: 0.3rem; }

  /* Infrastructure */
  .infra-timeline::before { left: 20px; }
  .timeline-item          { padding-left: 50px; }
  .timeline-marker        { left: 12px; width: 18px; height: 18px; }

  /* Quality */
  .quality-content       { gap: 2.5rem; }

  /* CTA */
  .cta-section           { padding: 4rem 0; }
  .cta-section h2        { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .cta-section h2 br     { display: none; }
  .cta-section p         { font-size: 0.95rem; margin: 0.8rem auto 2rem; }
}


/* ─────────────────────────────────────────────
   768px : Small tablets / large phones
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Page hero */
  .page-hero             { padding: 6.5rem 0 2rem; }
  .page-hero h1          { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .page-hero h1 br       { display: none; }
  .page-hero p           { font-size: 0.88rem; line-height: 1.65; }

  /* Section */
  .section                { padding: 3rem 0 1.5rem; }
  .section-header         { margin-bottom: 2rem; }
  .section-header h2      { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .section-header p       { font-size: 0.88rem; }
  .label                  { font-size: 0.6rem; }
  .divider                { width: 32px; }

  /* Buttons */
  .btn                    { padding: 0.7rem 1.4rem; font-size: 0.84rem; }

  /* Grids → single/double col */
  .industries-grid,
  .diff-grid,
  .formats-grid,
  .markets-grid           { grid-template-columns: 1fr; gap: 1rem; }
  .products-grid,
  .app-grid               { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Industry cards */
  .industry-card          { flex-direction: row; }
  .industry-img           { width: 140px; height: auto; min-height: 120px; flex-shrink: 0; }
  .industry-content       { padding: 1rem; }
  .industry-card h3       { font-size: 0.95rem; }
  .industry-card p        { font-size: 0.78rem; }
  .industry-tags          { gap: 0.3rem; margin-top: 0.6rem; }
  .tag                    { font-size: 0.58rem; padding: 0.22rem 0.5rem; }

  /* Product cards */
  .product-card-body      { padding: 1rem; }
  .product-card-body h4   { font-size: 0.92rem; }
  .product-card-body .std { font-size: 0.66rem; }
  .product-card-body p    { font-size: 0.78rem; }
  .product-card-footer    { padding: 0.6rem 1rem; }
  .know-more-btn          { font-size: 0.72rem; }

  /* App cards */
  .app-card               { padding: 1.5rem; }
  .app-icon               { font-size: 1.8rem; margin-bottom: 0.6rem; }
  .app-card h4            { font-size: 0.92rem; }
  .app-card p             { font-size: 0.78rem; }

  /* Differentiator cards */
  .diff-card              { padding: 1.8rem; }
  .diff-icon              { width: 44px; height: 44px; font-size: 1.3rem; margin-bottom: 1rem; }
  .diff-card h3           { font-size: 1.05rem; }
  .diff-card p            { font-size: 0.84rem; }

  /* Format cards */
  .format-card            { padding: 1.8rem; }
  .format-no              { font-size: 3rem; top: 1rem; right: 1rem; }
  .format-card h3         { font-size: 1rem; }
  .format-card p          { font-size: 0.82rem; }

  /* Market cards */
  .market-card            { padding: 1.5rem; }
  .market-flag            { font-size: 2rem; margin-bottom: 0.6rem; }
  .market-card h3         { font-size: 1.05rem; }
  .market-card p          { font-size: 0.82rem; }
  .market-docs .tag       { font-size: 0.58rem; }

  /* Quality tests */
  .quality-test           { padding: 0.9rem 1rem; gap: 0.8rem; }
  .quality-test-icon      { width: 36px; height: 36px; font-size: 1rem; }
  .quality-test-label     { font-size: 0.82rem; }
  .quality-test-sub       { font-size: 0.72rem; }

  /* Cert grid */
  .cert-grid              { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .cert-card              { padding: 1rem 0.8rem; }
  .cert-icon              { font-size: 1.2rem; }
  .cert-name              { font-size: 0.78rem; }
  .cert-status            { font-size: 0.6rem; }

  /* Vision */
  .vision-card-v2         { padding: 1.5rem; }
  .vision-icon-v2         { font-size: 1.5rem; margin-bottom: 0.7rem; }
  .vision-card-v2 h3      { font-size: 1rem; }
  .vision-card-v2 p       { font-size: 0.82rem; }
  .vision-statement       { padding: 1.8rem 1.4rem; }
  .vision-statement h2    { font-size: 1.3rem; line-height: 1.4; margin-bottom: 1rem; }
  .vision-statement p     { font-size: 0.8rem; line-height: 1.7; }
  .vision-statement-label { font-size: 0.58rem; margin-bottom: 0.7rem; }
  .vision-statement::before,
  .vision-statement::after { display: none; }
  .bridge-item            { padding: 1.2rem 0.8rem; border-radius: var(--radius-md); }
  .bridge-icon            { font-size: 1.3rem; margin-bottom: 0.5rem; }
  .bridge-item p          { font-size: 0.72rem; }
  .commitment-card        { padding: 1.5rem; }
  .commitment-num         { font-size: 0.6rem; margin-bottom: 0.5rem; }
  .commitment-card h3     { font-size: 0.95rem; }
  .commitment-card p      { font-size: 0.8rem; }

  /* Founder */
  .founder-photo-wrap     { gap: 1rem; }
  .founder-photo          { width: 120px; min-width: 120px; }
  .founder-chapter        { margin-top: 1.8rem; }
  .founder-chapter-label  { font-size: 0.58rem; }
  .founder-chapter h3     { font-size: 1.1rem; }
  .founder-chapter p      { font-size: 0.84rem; line-height: 1.8; }
  .founder-values         { gap: 0.8rem; }
  .founder-value          { padding: 0.9rem 1rem; }
  .founder-value-label    { font-size: 0.6rem; }
  .founder-value p        { font-size: 0.78rem; }
  .founder-sign           { margin-top: 2rem; padding-top: 1.5rem; }
  .founder-sign-name      { font-size: 1.1rem; }
  .founder-sign-title     { font-size: 0.62rem; }

  /* About */
  .about-intro-stats      { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .about-stat-box         { padding: 1rem; }
  .about-stat-num         { font-size: 1.7rem; }
  .about-stat-label       { font-size: 0.68rem; }
  .supply-card            { padding: 1.2rem; gap: 1rem; }
  .supply-icon            { font-size: 1.3rem; }
  .supply-card h4         { font-size: 0.88rem; }
  .supply-card p          { font-size: 0.78rem; }
  .approach-tags          { gap: 0.35rem; }
  .approach-tag           { font-size: 0.65rem; padding: 0.25rem 0.6rem; }

  /* Infrastructure — inline-style overrides */
  div[style*="height:540px"],
  div[style*="height: 540px"] { height: 280px !important; }
  div[style*="height:420px"],
  div[style*="height: 420px"] { height: 240px !important; }

  /* Tables → card layout */
  .ind-table thead          { display: none; }
  .ind-table tr             { display: block; margin-bottom: 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
  .ind-table td             { display: flex; flex-direction: column; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
  .ind-table td:first-child { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); background: var(--parchment); font-weight: 700; width: 100%; }
  .ind-table td:last-child  { border-bottom: none; line-height: 1.2rem;}

  /* Custom dev */
  .custom-dev-section      { padding: 3.5rem 0; }
  .custom-step             { padding: 1.2rem; gap: 1rem; }
  .step-num                { font-size: 1.4rem; }
  .custom-step h4          { font-size: 1rem; }
  .custom-step p           { font-size: 0.82rem; }

  /* CTA */
  .cta-section             { padding: 3.5rem 0; }
  .cta-section h2          { font-size: clamp(1.4rem, 5vw, 2rem); }
  .cta-section p           { font-size: 0.88rem; max-width: 100%; }
  .cta-buttons             { flex-direction: column; gap: 0.7rem; }
  .cta-buttons .btn        { width: 100%; justify-content: center; font-size: 0.82rem; }
  .products-show-more {
        display: flex;
    }
    .products-grid .product-card:nth-child(n+7) {
        display: none;
    }
    .products-grid.show-all .product-card:nth-child(n+7) {
        display: flex;
        flex-direction: column;
    }
    
  .nc-matrix thead { display: none; }
  .nc-matrix tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
  }
  .nc-matrix td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
  }
  .nc-matrix td:last-child { border-bottom: none; }

  /* First cell = color name as card header */
  .nc-matrix td:first-child {
    background: var(--parchment);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
    display: block;
    padding: 0.7rem 0.8rem;
  }

  /* Add labels from header via data attributes */
  .nc-matrix td:not(:first-child)::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
    flex-shrink: 0;
    margin-right: 1rem;
  }
}


/* ─────────────────────────────────────────────
   580px : Standard phones
   ───────────────────────────────────────────── */
@media (max-width: 580px) {
  /* Page hero */
  .page-hero              { padding: 6rem 0 1.5rem; }
  .page-hero h1           { font-size: clamp(1.3rem, 6.5vw, 1.7rem); line-height: 1.2; }
  .page-hero p            { font-size: 0.82rem; line-height: 1.6; }

  /* Section */
  .section                 { padding: 2.5rem 0 1.2rem; }
  .section-header          { margin-bottom: 1.5rem; }
  .section-header h2       { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
  .section-header p        { font-size: 0.82rem; }
  .label                   { font-size: 0.58rem; letter-spacing: 0.15em; }
  .divider                 { width: 28px; }

  /* Buttons */
  .btn                     { padding: 0.65rem 1.2rem; font-size: 0.8rem; }

  /* Industry cards — full stack */
  .industry-card,
  .testing-card-head       { flex-direction: column; justify-content: center; }
  .industry-img            { width: 100%; height: 160px; }
  .industry-content        { padding: 1rem; }

  /* Products + apps → single col */
  .products-grid           { grid-template-columns: 1fr; gap: 1rem; }
  .product-img             { aspect-ratio: 16/9; }
  .product-card-body       { padding: 1.2rem; }
  .app-grid                { grid-template-columns: 1fr; gap: 0.8rem; }
  .app-card                { padding: 1.2rem; }

  /* Cert grid */
  .cert-grid               { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .cert-card               { padding: 0.8rem 0.6rem; }
  .cert-icon               { font-size: 1rem; margin-bottom: 0.3rem; }
  .cert-name               { font-size: 0.72rem; }

  /* Format cards */
  .format-card             { padding: 1.5rem; }
  .format-no               { font-size: 2.5rem; }
  .format-card h3          { font-size: 0.95rem; }
  .format-card p           { font-size: 0.78rem; }

  /* Quality */
  .quality-test            { padding: 0.8rem; gap: 0.7rem; }
  .quality-test-icon       { width: 32px; height: 32px; font-size: 0.9rem; }
  .quality-test-label      { font-size: 0.78rem; }
  .quality-test-sub        { font-size: 0.68rem; }

  /* Markets */
  .market-card             { padding: 1.2rem; }
  .market-flag             { font-size: 1.8rem; margin-bottom: 0.5rem; }
  .market-card h3          { font-size: 1rem; }
  .market-card p           { font-size: 0.8rem; }

  /* Custom dev */
  .custom-dev-section      { padding: 3rem 0; }
  .custom-dev-text h2      { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .custom-dev-text p       { font-size: 0.85rem; }
  .custom-step             { flex-direction: column; gap: 0.6rem; padding: 1rem; }
  .step-num                { font-size: 1.2rem; }

  /* Vision cards → horizontal */
  .vision-grid-v2          { grid-template-columns: 1fr; gap: 1rem; }
  .vision-card-v2          { padding: 1.2rem; display: flex; gap: 0.8rem; align-items: flex-start; }
  .vision-icon-v2          { font-size: 1.3rem; margin-bottom: 0; flex-shrink: 0; margin-top: 0.15rem; }
  .vision-card-v2 h3       { font-size: 0.92rem; margin-bottom: 0.3rem; }
  .vision-card-v2 p        { font-size: 0.78rem; line-height: 1.6; }

  .vision-statement        { padding: 1.3rem 1rem; border-radius: var(--radius-md); }
  .vision-statement h2     { font-size: 1.08rem; margin-bottom: 0.8rem; }
  .vision-statement p      { font-size: 0.76rem; }
  .vision-statement-label  { font-size: 0.52rem; margin-bottom: 0.5rem; }

  .commitment-grid         { grid-template-columns: 1fr; gap: 0.8rem; }
  .commitment-card         { padding: 1.1rem; }
  .commitment-card h3      { font-size: 0.88rem; }
  .commitment-card p       { font-size: 0.76rem; }

  .bridge-grid             { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .bridge-item             { padding: 0.9rem 0.5rem; border-radius: var(--radius-sm); }
  .bridge-icon             { font-size: 1.1rem; margin-bottom: 0.3rem; }
  .bridge-item p           { font-size: 0.65rem; }
  /* Bridge dark container override */
  div[style*="border-radius:var(--radius-xl)"] { padding: 1.2rem !important; border-radius: var(--radius-lg) !important; }

  /* Founder */
  .founder-photo           { width: 90px; min-width: 90px; border-radius: var(--radius-md); }
  .founder-photo-wrap      { gap: 0.8rem; }
  .founder-name            { font-size: 0.95rem; }
  .founder-role            { font-size: 0.58rem; }
  .founder-name-card       { padding: 0.7rem; }
  .founder-social a        { font-size: 0.62rem; padding: 0.28rem 0.55rem; }
  .founder-social a svg    { width: 11px; height: 11px; }
  .founder-story-body > p:first-child { font-size: 0.88rem !important; line-height: 1.7 !important; }
  .founder-pull-quote      { padding: 0.7rem 0.9rem; margin: 1rem 0; border-left-width: 2px; }
  .founder-pull-quote p    { font-size: 0.88rem; line-height: 1.6; }
  .founder-chapter         { margin-top: 1.4rem; }
  .founder-chapter-label   { font-size: 0.52rem; }
  .founder-chapter h3      { font-size: 0.95rem; }
  .founder-chapter p       { font-size: 0.78rem; line-height: 1.7; }
  .founder-values          { grid-template-columns: 1fr; gap: 0.5rem; }
  .founder-value           { padding: 0.7rem 0.8rem; }
  .founder-value-label     { font-size: 0.52rem; }
  .founder-value p         { font-size: 0.72rem; }
  .founder-sign            { margin-top: 1.3rem; padding-top: 1rem; }
  .founder-sign-name       { font-size: 0.95rem; }
  .founder-sign-title      { font-size: 0.58rem; }
  /* Founder CTAs stack */
  .founder-story-body > div:last-child { flex-direction: column !important; gap: 0.6rem !important; }
  .founder-story-body > div:last-child .btn { width: 100%; justify-content: center; font-size: 0.8rem; }

  .ecosystem-grid          { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .ecosystem-item          { padding: 0.55rem 0.35rem; font-size: 0.65rem; border-radius: var(--radius-sm); }
  .ecosystem-item span     { font-size: 0.95rem; margin-bottom: 0.2rem; }

  /* About */
  .about-intro-stats       { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .about-stat-box          { padding: 0.8rem 0.6rem; }
  .about-stat-num          { font-size: 1.5rem; }
  .about-stat-label        { font-size: 0.62rem; }
  .supply-card             { flex-direction: column; gap: 0.6rem; padding: 1rem; }
  .approach-tag            { font-size: 0.6rem; padding: 0.22rem 0.5rem; }

  /* Infrastructure images */
  div[style*="height:540px"],
  div[style*="height: 540px"] { height: 200px !important; }
  div[style*="height:420px"],
  div[style*="height: 420px"] { height: 180px !important; }

  /* Inline link cards */
  a[href="infrastructure.html"] { flex-direction: column !important; padding: 1.5rem !important; gap: 1rem; }
  a[href="infrastructure.html"] > div:last-child { margin-left: 0 !important; align-self: flex-end; }

  /* Table cards */
  .ind-table td            { padding: 0.5rem 0.7rem; font-size: 0.76rem; }
  .ind-table td:first-child { font-size: 0.58rem; }

  /* CTA */
  .cta-section             { padding: 2.5rem 0; }
  .cta-section h2          { font-size: clamp(1.2rem, 6vw, 1.7rem); }
  .cta-section p           { font-size: 0.82rem; }

  /* Products: show only 6 on mobile */
    .products-grid .product-card:nth-child(n+7) {
        display: none;
    }
    .products-grid.show-all .product-card:nth-child(n+7) {
        display: flex;
    }
    .products-show-more {
        display: flex;
    }

    /* Industries: show only 4 on mobile */
    .industries-grid .industry-card:nth-child(n+5) {
      display: none;
    }
    .industries-grid.show-all .industry-card:nth-child(n+5) {
      display: flex;
    }
    .industries-show-more {
      display: flex;
    }
}


/* ─────────────────────────────────────────────
   420px : Small phones
   ───────────────────────────────────────────── */
@media (max-width: 420px) {
  /* Page hero */
  .page-hero h1           { font-size: clamp(1.15rem, 7vw, 1.4rem); }
  .page-hero p            { font-size: 0.76rem; }

  /* Section */
  .section-header h2      { font-size: clamp(1.1rem, 6vw, 1.4rem); }
  .section-header p       { font-size: 0.78rem; }
  .label                  { font-size: 0.55rem; }

  /* Buttons */
  .btn                    { padding: 0.6rem 1rem; font-size: 0.78rem; }

  /* Industry cards */
  .industry-img           { height: 130px; }
  .industry-card h3       { font-size: 0.88rem; }

  /* Product cards */
  .product-card-body h4   { font-size: 0.88rem; }
  .product-card-body .std { font-size: 0.62rem; }
  .product-card-body p    { font-size: 0.75rem; }

  /* Differentiators */
  .diff-card              { padding: 1.4rem; }
  .diff-icon              { width: 38px; height: 38px; font-size: 1.1rem; }
  .diff-card h3           { font-size: 0.95rem; }
  .diff-card p            { font-size: 0.8rem; }

  /* Format cards */
  .format-card            { padding: 1.2rem; }
  .format-no              { font-size: 2rem; }
  .format-card h3         { font-size: 0.88rem; }
  .format-card p          { font-size: 0.74rem; }

  /* Cert */
  .cert-card              { padding: 0.7rem 0.5rem; }
  .cert-name              { font-size: 0.68rem; }
  .cert-status            { font-size: 0.55rem; }
  .cert-icon              { font-size: 0.9rem; }

  /* Vision */
  .vision-statement       { padding: 1rem 0.8rem; }
  .vision-statement h2    { font-size: 0.95rem; }
  .vision-statement p     { font-size: 0.72rem; }
  .vision-card-v2         { padding: 1rem; gap: 0.6rem; }
  .vision-card-v2 h3      { font-size: 0.85rem; }
  .vision-card-v2 p       { font-size: 0.74rem; }

  /* Commitment */
  .commitment-card        { padding: 0.9rem; }
  .commitment-num         { font-size: 0.5rem; }
  .commitment-card h3     { font-size: 0.82rem; }
  .commitment-card p      { font-size: 0.72rem; }

  /* Bridge */
  .bridge-item            { padding: 0.7rem 0.4rem; }
  .bridge-icon            { font-size: 0.95rem; }
  .bridge-item p          { font-size: 0.6rem; }
  div[style*="border-radius:var(--radius-xl)"] { padding: 0.8rem !important; }

  /* Ecosystem */
  .ecosystem-item         { font-size: 0.6rem; padding: 0.45rem 0.25rem; }
  .ecosystem-item span    { font-size: 0.85rem; }

  /* Founder */
  .founder-photo          { width: 72px; min-width: 72px; border-radius: var(--radius-sm); }
  .founder-photo-wrap     { gap: 0.6rem; }
  .founder-name           { font-size: 0.85rem; }
  .founder-name-card      { padding: 0.5rem; }
  .founder-social         { flex-direction: column; gap: 0.25rem; }
  .founder-social a       { width: fit-content; font-size: 0.58rem; }
  .founder-pull-quote p   { font-size: 0.8rem; }
  .founder-chapter h3     { font-size: 0.88rem; }
  .founder-chapter p      { font-size: 0.74rem; }
  .founder-story-body > p:first-child { font-size: 0.82rem !important; }

  /* About */
  .about-stat-num         { font-size: 1.3rem; }
  .about-stat-label       { font-size: 0.58rem; }
  .about-stat-box         { padding: 0.7rem 0.5rem; }
  .supply-card h4         { font-size: 0.82rem; }
  .supply-card p          { font-size: 0.74rem; }
  .approach-tag           { font-size: 0.55rem; padding: 0.2rem 0.42rem; }
  .stat-strip,.nutra-categories {grid-template-columns: 1fr; text-align: center;}
  .cap-three-col,
  .ff-categories,
  .trend-strip,
  .fb-categories,
  .sn-categories,
  .pb-categories,
  .ht-categories,
  .cp-categories,
  .cl-categories,
  .stat-strip,
  .nc-pigment-row,
  .eo-categories,
  .be-categories,
  .aw-senses,
  .aw-categories,
  .an-species,
  .vw-species,
  .bcp-categories,
  .ph-categories { grid-template-columns: 1fr;}

  .nc-matrix td { padding: 0.4rem 0.6rem; font-size: 0.74rem; }
  .nc-matrix td:first-child { font-size: 0.82rem; padding: 0.6rem; }
  .nc-matrix td:not(:first-child)::before { font-size: 0.55rem; }

  /* .cp-categories { grid-template-columns: 1fr !important;} */

  /* Infrastructure images */
  div[style*="height:540px"],
  div[style*="height: 540px"] { height: 170px !important; }
  div[style*="height:420px"],
  div[style*="height: 420px"] { height: 200px !important; }

  /* Quality */
  .quality-test           { flex-direction: row; padding: 0.7rem; }
  /* .dev-step               { grid-template-rows: 50px 1fr} */
.innovation-item          {flex-direction: column;}

  /* Custom dev */
  .custom-dev-section     { padding: 2.5rem 0; }
  .custom-dev-text h2     { font-size: clamp(1.1rem, 6vw, 1.4rem); }
  .custom-step p          { font-size: 0.76rem; }

  /* CTA */
  .cta-section            { padding: 2rem 0; }
  .cta-section h2         { font-size: clamp(1.1rem, 6vw, 1.5rem); }
  .cta-section p          { font-size: 0.78rem; }
  .company-div{
    height: 200px !important;
  }

  .company-img {
    height: 200px !important;
  }
}


/* ─────────────────────────────────────────────
   360px : Very small phones
   ───────────────────────────────────────────── */
@media (max-width: 360px) {
  .container              { padding: 0 0.8rem; }

  .page-hero h1           { font-size: 1.5rem; }
  .page-hero p            { font-size: 0.7rem; }
  .t-center {text-align: center !important;}

  .view-full-quality{ display: flex; justify-content: center; flex-direction: column; gap: 15px; align-items: center;}
  .req-btn { margin-left: 0 !important;}
  .se-modal-title,.ing-modal-title { font-size: 1.3rem; margin-bottom: 2px;}
  .se-modal-cat, 
  .ing-modal-std,
  .ph-modal-cat,
  .nutra-modal-cat,
  .fb-modal-cat,
  .ff-modal-cat,
  .sn-modal-cat,
  .pb-modal-cat,
  .ht-modal-cat,
  .cp-modal-cat,
  .cl-modal-cat,
  .nc-modal-title,
  .nc-modal-cat,
  .eo-modal-title,
  .eo-modal-cat,
  .be-modal-cat,
  .vw-modal-cat,
  .bcp-modal-cat
  { padding: 2px; letter-spacing: .5px;}

  .eo-modal-cat,
  .aw-modal-cat,
  .an-modal-cat
  { font-size: 0.6rem; }

  .eo-modal-title,
  .be-modal-title,
  .aw-modal-title,
  .an-modal-title,
  .vw-modal-title,
  .bcp-modal-title
  { font-size: 1.3rem; }

  .eo-modal-header,
  .an-modal-header,
  .vw-modal-header,
  .be-modal-header {
    padding-block: 1.5rem;
  }

  .cap-col-list li {
    font-size: .65rem;
  }

  .why-card p {
    font-size: .72rem;
  }

  .compound-tag, .rd-tags
   {
    font-size: 0.58rem;
    justify-content: center;
  }
  
  .vw-human-top{
    justify-content: center;
  }

  .compound-tags,
  .hero-tags
  {
    justify-content: center;
  }

  .company-div{
    height: 200px !important;
  }

  .company-img {
    height: 200px !important;
  }

  .agri-hero-tags { justify-content: center; }
  .ing-modal-header { padding-block: 1rem;}

  .section                { padding: 2rem 0 1rem; }
  .section-header h2      { font-size: clamp(1rem, 6vw, 1.3rem); }

  .btn                    { padding: 0.55rem 0.9rem; font-size: 0.74rem; }

  .industry-img           { height: 110px; }
  .product-img            { aspect-ratio: 3/2; }

  .cert-grid              { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* Vision */
  .vision-statement h2    { font-size: 0.88rem; }
  .vision-statement p     { font-size: 0.68rem; }
  .vision-card-v2 h3      { font-size: 0.78rem; }
  .vision-card-v2 p       { font-size: 0.68rem; }
  .bridge-grid            { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .ecosystem-grid         { grid-template-columns: 1fr 1fr; gap: 0.3rem; }

  /* Founder — still side by side, just smaller */
  .founder-photo          { width: 60px; min-width: 60px; }
  .founder-name           { font-size: 0.8rem; }
  .founder-role           { font-size: 0.52rem; }
  .founder-social         { flex-direction: row; gap: 0.3rem; }
  .founder-social a       { font-size: 0.55rem; padding: 0.22rem 0.45rem; }
  .founder-pull-quote p   { font-size: 0.75rem; }
  .founder-chapter h3     { font-size: 0.82rem; }
  .founder-chapter p      { font-size: 0.7rem; }

  /* About */
  .about-stat-num         { font-size: 1.15rem; }
  .about-stat-box         { padding: 0.6rem 0.4rem; }

  /* Infrastructure images */
  div[style*="height:540px"],
  div[style*="height: 540px"] { height: 140px !important; }
  /* div[style*="height:420px"], */
  /* div[style*="height: 420px"] { height: 120px !important; } */
}


/* ─────────────────────────────────────────────
   Landscape phones
   ───────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero              { padding: 5rem 0 1.5rem; }
  .page-hero h1           { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  .section                { padding: 2rem 0 1.2rem; }
}


/* ─────────────────────────────────────────────
   Accessibility
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
  .hero-lines svg        { display: none; }
  .scroll-line           { animation: none; }
  .cert-strip-inner      { animation: none; }
  #particle-canvas       { display: none; }
}

@media (prefers-contrast: high) {
  .tag, .btn             { border-width: 2px; }
  .product-card, .industry-card, .diff-card, .format-card,
  .app-card, .market-card, .cert-card, .vision-card-v2,
  .commitment-card, .supply-card, .about-stat-box { border-width: 2px; }
}

/* Retina hairlines */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .divider               { height: 1.5px; }
  .label::before         { height: 1px; }
  .cert-card, .product-card, .industry-card { border-width: 0.5px; }
}

/* Touch: disable hover effects */
@media (hover: none) and (pointer: coarse) {
  .vision-card-v2:hover, .bridge-item:hover,
  .commitment-card:hover, .ecosystem-item:hover,
  .industry-card:hover, .product-card:hover,
  .diff-card:hover, .format-card:hover,
  .app-card:hover, .market-card:hover,
  .supply-card:hover, .mush-card:hover,
  .mush-cat-card:hover, .complex-card:hover,
  .cert-card:hover, .about-stat-box:hover { transform: none; }
}