/* ============================================================
   U.Mac Pharmaceuticals - shared stylesheet
   Brand palette (from logo): orange #E8451B, blue #1F4FC4,
   purple #7A3CB8, ink #16181A on pharmacopoeia paper.
   Type: IBM Plex Sans (UI), IBM Plex Mono (data), Newsreader (heritage).
   No emoji anywhere. Icons are inline SVG only.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

/* ---------- Layer 1: Primitive tokens ---------- */
:root {
  --paper-50:     #FAF9F6;
  --paper-0:      #FFFFFF;
  --foil-100:     #EEF1F3;
  --foil-200:     #DDE1E4;
  --graphite-900: #16181A;
  --brand-orange: #E8451B;
  --brand-blue:   #1F4FC4;
  --brand-purple: #7A3CB8;
  --orange-soft:  #FCE9E2;
  --blue-soft:    #E7ECFB;
  --purple-soft:  #EFE7F7;

  /* ---------- Layer 2: Semantic tokens ---------- */
  --surface-bg:     var(--paper-50);
  --surface-card:   var(--paper-0);
  --surface-sunken: var(--foil-100);
  --ink-primary:    var(--graphite-900);
  --ink-secondary:  rgba(22, 24, 26, 0.64);
  --ink-muted:      rgba(22, 24, 26, 0.44);
  --ink-invert:     var(--paper-50);
  --accent:         var(--brand-blue);
  --accent-2:       var(--brand-purple);
  --signal-rx:      var(--brand-orange);
  --signal-rx-soft: var(--orange-soft);
  --rule:           var(--foil-200);
  --rule-strong:    rgba(22, 24, 26, 0.16);
  --focus:          var(--brand-blue);
  --shadow-sm:      0 1px 2px rgba(22, 24, 26, 0.04);
  --shadow-md:      0 12px 30px rgba(22, 24, 26, 0.06);

  /* ---------- Layer 3: Component tokens ---------- */
  --btn-bg:      var(--ink-primary);
  --btn-text:    var(--paper-50);
  --card-bg:     var(--surface-card);
  --card-border: var(--rule);
  --rx-flag-bg:  var(--signal-rx-soft);
  --rx-flag-text:var(--signal-rx);

  /* ---------- Fonts ---------- */
  --font-sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, monospace;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* ---------- Spacing scale (4,8,12,16,24,32,48,64) ---------- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px;

  --maxw: 1200px;
  --maxw-wide: 1320px;
  --maxw-editorial: 1080px;

  /* ---------- Radius (soft system for corporate home components) ---------- */
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 24px;
  --s-20: 80px; --s-24: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--surface-bg);
  color: var(--ink-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 64px);
}
.container.wide { max-width: 100%; }
.container.narrow { max-width: 100%; }

section { padding: var(--s-16) 0; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { color: var(--ink-secondary); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* Utility eyebrow (used sparingly, max 1 per 3 sections) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--rule-strong);
}

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Brand logo (text mark, echoes the logo colors) ---------- */
.brand { display: inline-flex; align-items: center; gap: var(--s-3); }
.brand-stack { display: flex; flex-direction: column; line-height: 1; }
.logo-mark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.logo-mark .u { color: var(--brand-orange); }
.logo-mark .dot { color: var(--brand-orange); }
.logo-mark .m { color: var(--brand-blue); }
.logo-mark .a { color: var(--brand-purple); }
.logo-mark .c { color: var(--ink-primary); }
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* dot grid mark (echoes logo dot matrix) */
.dot-grid { display: grid; grid-template-columns: repeat(3, 7px); gap: 6px; }
.dot-grid i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dot-grid i:nth-child(3n+1) { background: var(--ink-primary); }
.dot-grid i:nth-child(3n+2) { background: var(--brand-blue); }
.dot-grid i:nth-child(3n+3) { background: var(--brand-orange); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: var(--s-8); }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-secondary);
  padding: var(--s-2) 0; position: relative;
}
.nav-links a:hover { color: var(--ink-primary); }
.nav-links a.active { color: var(--ink-primary); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand-orange);
}
.nav-cta { display: inline-flex; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: 2px; width: 44px; height: 44px; cursor: pointer;
  color: var(--ink-primary); align-items: center; justify-content: center;
}

/* ---------- Buttons (44px min target) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-6);
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: transform 200ms cubic-bezier(0.32,0.72,0,1), background 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink-primary); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--surface-sunken); }
.btn .btn-island {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.16); display: grid; place-items: center;
}
.btn-ghost .btn-island { background: rgba(22,24,26,0.06); }

/* ---------- Hero (thesis, fits viewport) ---------- */
.hero { background: var(--surface-bg); border-bottom: 1px solid var(--rule); }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s-12);
  align-items: center; padding: var(--s-16) 0;
}
.since-strip {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--ink-secondary); border: 1px solid var(--rule);
  background: var(--surface-card); border-radius: 2px;
  padding: var(--s-2) var(--s-3); margin-bottom: var(--s-6);
}
.since-strip b { color: var(--ink-primary); font-weight: 600; }
.since-strip .sep { width: 1px; height: 12px; background: var(--rule-strong); }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.03em; line-height: 1.04; margin-bottom: var(--s-4);
}
.hero h1 .ink-2 { color: var(--ink-muted); }
.hero p { font-size: 1.05rem; max-width: 52ch; margin-bottom: var(--s-8); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* portfolio data card in hero */
.data-card {
  background: var(--surface-card); border: 1px solid var(--rule);
  border-radius: 2px; box-shadow: var(--shadow-md); overflow: hidden;
}
.data-card .dc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted);
}
.dc-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-4);
  padding: var(--s-3) var(--s-6); border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.dc-row:last-child { border-bottom: 0; }
.dc-row .k { font-size: 0.9rem; color: var(--ink-secondary); }
.dc-row .v { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--ink-primary); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: var(--surface-card); border-bottom: 1px solid var(--rule);
  padding: var(--s-12) 0;
}
.crumb {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-muted);
  margin-bottom: var(--s-4); display: flex; gap: var(--s-2); align-items: center;
}
.crumb a:hover { color: var(--ink-primary); }
.crumb .sep { color: var(--rule-strong); }
.page-banner h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.03em; }
.page-banner p { margin-top: var(--s-3); max-width: 56ch; font-size: 1.02rem; }

/* ---------- Section head ---------- */
.section-head { max-width: 60ch; margin-bottom: var(--s-12); }
.section-head h2 { margin-top: var(--s-3); }
.section-head p { margin-top: var(--s-3); }

/* ---------- Portfolio / blister strip grid ---------- */
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; background: var(--surface-card); }
.strip-cell {
  padding: var(--s-6); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
}
.strip-cell .corner { position: absolute; top: var(--s-3); right: var(--s-4); font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-muted); letter-spacing: 0.06em; }
.strip-cell .cat-dot { width: 10px; height: 10px; border-radius: 50%; }
.strip-cell h3 { font-size: 1.05rem; }
.strip-cell .strip-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-secondary); }
.cat-orange { background: var(--brand-orange); }
.cat-blue { background: var(--brand-blue); }
.cat-purple { background: var(--brand-purple); }
.cat-ink { background: var(--ink-primary); }

/* ---------- Stat band ---------- */
.stat-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface-card); }
.stat-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: var(--s-12) var(--s-6); border-right: 1px solid var(--rule); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .num { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--ink-primary); letter-spacing: -0.02em; }
.stat-cell .lbl { font-size: 0.88rem; color: var(--ink-secondary); margin-top: var(--s-2); }
.stat-cell:nth-child(1) .num { color: var(--brand-orange); }
.stat-cell:nth-child(2) .num { color: var(--brand-blue); }
.stat-cell:nth-child(3) .num { color: var(--brand-purple); }

/* ---------- Split (feature) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.feature-list { list-style: none; margin-top: var(--s-6); }
.feature-list li { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list .fl-ic { color: var(--brand-blue); margin-top: 2px; flex: none; }
.feature-list h4 { font-size: 0.98rem; font-weight: 600; }
.feature-list p { font-size: 0.9rem; margin-top: 2px; }

/* label-card (carton echo) */
.label-card { background: var(--surface-card); border: 1px solid var(--rule); border-radius: 2px; padding: 6px; box-shadow: var(--shadow-sm); }
.label-core { background: var(--surface-bg); border: 1px solid var(--rule); border-radius: 2px; padding: var(--s-8); }
.label-core .lc-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--rule-strong); padding-bottom: var(--s-4); margin-bottom: var(--s-4); }
.label-core .lc-top .mono { font-size: 0.78rem; color: var(--ink-muted); }
.label-core dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-6); }
.label-core dt { font-size: 0.82rem; color: var(--ink-muted); }
.label-core dd { font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink-primary); text-align: right; }

/* ---------- Process (numbered, sequential only) ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.step { border-top: 2px solid var(--rule-strong); padding-top: var(--s-4); }
.step .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); }
.step h4 { margin: var(--s-3) 0 var(--s-2); font-size: 1rem; }
.step p { font-size: 0.88rem; }

/* ---------- Cards (bento values) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.cell {
  background: var(--surface-card); border: 1px solid var(--rule); border-radius: 2px;
  padding: var(--s-8); transition: border-color 200ms ease, transform 200ms cubic-bezier(0.32,0.72,0,1);
}
.cell:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.cell .cell-ic { color: var(--brand-blue); margin-bottom: var(--s-4); }
.cell h3 { margin-bottom: var(--s-2); }
.cell p { font-size: 0.92rem; }
.cell.wide { grid-column: span 2; }

/* ---------- Catalogue: filters + table ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); align-items: center; }
.filters .flabel { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-right: var(--s-2); }
.chip {
  min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--rule-strong);
  background: var(--surface-card); border-radius: 2px; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--ink-secondary);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.chip:hover { color: var(--ink-primary); }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--ink-primary); color: var(--paper-50); border-color: var(--ink-primary); }

.table-wrap { border: 1px solid var(--rule); border-radius: 2px; overflow-x: auto; background: var(--surface-card); }
table.catalogue { width: 100%; border-collapse: collapse; min-width: 720px; }
table.catalogue caption { text-align: left; padding: var(--s-4) var(--s-6); font-size: 0.82rem; color: var(--ink-muted); border-bottom: 1px solid var(--rule); }
table.catalogue th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; padding: var(--s-3) var(--s-6); border-bottom: 1px solid var(--rule); background: var(--surface-sunken); }
table.catalogue td { padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 0.9rem; }
table.catalogue tr:last-child td { border-bottom: 0; }
table.catalogue .brand-name { font-weight: 600; color: var(--ink-primary); }
table.catalogue .molecule { font-family: var(--font-mono); font-size: 0.84rem; color: var(--ink-primary); display: block; margin-top: 2px; }
table.catalogue .pack, table.catalogue .form { font-family: var(--font-mono); font-size: 0.84rem; color: var(--ink-secondary); }

.tag {
  display: inline-flex; align-items: center; gap: var(--s-1);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  padding: 3px var(--s-2); border-radius: 2px; white-space: nowrap;
}
.tag-rx { background: var(--rx-flag-bg); color: var(--rx-flag-text); font-weight: 600; }
.tag-supp { background: var(--purple-soft); color: var(--brand-purple); }
.tag-otc { background: var(--blue-soft); color: var(--brand-blue); }

.rx-symbol { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

/* statutory note block */
.statutory {
  border: 1px solid var(--rule); border-left: 3px solid var(--signal-rx);
  background: var(--surface-card); border-radius: 2px;
  padding: var(--s-4) var(--s-6); margin-top: var(--s-6);
  font-size: 12.5px; line-height: 1.5; color: var(--ink-primary);
}
.statutory strong { color: var(--signal-rx); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-primary); }
.cta-band .container { display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); align-items: center; padding: var(--s-12) var(--s-6); }
.cta-band h2 { color: var(--paper-50); }
.cta-band p { color: rgba(250,249,246,0.62); margin-top: var(--s-3); max-width: 48ch; }
.cta-band .btn-primary { background: var(--paper-50); color: var(--ink-primary); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-primary .btn-island { background: rgba(22,24,26,0.08); }

/* ---------- Heritage block (Newsreader allowed here only) ---------- */
.heritage { background: var(--surface-card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.heritage .quote { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; color: var(--ink-primary); max-width: 26ch; letter-spacing: -0.01em; }
.heritage .attrib { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); margin-top: var(--s-6); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-12); align-items: start; }
.info-list { list-style: none; }
.info-item { display: flex; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.info-item .ic { color: var(--brand-blue); flex: none; margin-top: 2px; }
.info-item h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600; }
.info-item .val { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink-primary); margin-top: 3px; }
.info-item .val.plain { font-family: var(--font-sans); }

.form-card { background: var(--surface-card); border: 1px solid var(--rule); border-radius: 2px; padding: var(--s-8); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: var(--s-2); color: var(--ink-primary); }
.field label .opt { color: var(--ink-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--surface-bg);
  font-family: var(--font-sans); font-size: 0.92rem; color: var(--ink-primary);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; background: var(--surface-card); }
.form-status { display: none; margin-top: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--blue-soft); color: var(--brand-blue); border-radius: 2px; font-size: 0.88rem; font-weight: 500; }
.form-note { font-size: 12.5px; color: var(--ink-muted); margin-top: var(--s-3); }

/* ---------- Footer (statutory block, always present) ---------- */
.site-footer { background: var(--surface-card); border-top: 1px solid var(--rule); padding-top: var(--s-16); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-8); }
.site-footer .logo-sub { color: var(--ink-muted); }
.footer-about { color: var(--ink-secondary); font-size: 0.9rem; margin-top: var(--s-4); max-width: 40ch; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: var(--s-4); font-weight: 600; }
.footer-col a { display: block; color: var(--ink-secondary); font-size: 0.9rem; padding: var(--s-2) 0; }
.footer-col a:hover { color: var(--ink-primary); }
.footer-legal {
  margin-top: var(--s-12); border-top: 1px solid var(--rule); padding: var(--s-6) 0;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-muted);
}
.footer-legal .reg { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-bottom: var(--s-3); }
.footer-legal .reg span b { color: var(--ink-secondary); font-weight: 500; }
.footer-bottom { border-top: 1px solid var(--rule); padding: var(--s-4) 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2); font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 500ms cubic-bezier(0.32,0.72,0,1), transform 500ms cubic-bezier(0.32,0.72,0,1); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .split, .contact-grid, .footer-top { grid-template-columns: 1fr; gap: var(--s-8); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stat-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell.wide { grid-column: span 2; }
  .cta-band .container { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: var(--s-12) 0; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--surface-card);
    border-bottom: 1px solid var(--rule); padding: var(--s-2) var(--s-6); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
  .nav-links .nav-cta { padding: var(--s-4) 0; }
  .nav-toggle { display: inline-flex; }
  .strip-grid, .bento { grid-template-columns: 1fr; }
  .cell.wide { grid-column: span 1; }
  .process { grid-template-columns: 1fr; }
  .stat-band .container { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   GLENMARK-STYLE CORPORATE COMPONENTS (home page)
   Larger scale, full-bleed sections, soft radius, brand-colored
   media panels (swap for real photography later). No emoji, SVG only.
   ============================================================ */

.container.wide { max-width: 100%; }

/* ---------- Hero carousel ---------- */
.hero-x { position: relative; padding: 0; background: var(--surface-bg); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-stage { position: relative; min-height: clamp(560px, 82vh, 760px); }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 600ms cubic-bezier(0.32,0.72,0,1), transform 600ms cubic-bezier(0.32,0.72,0,1);
  pointer-events: none;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

/* full-bleed background photo */
.slide-bg { position: absolute; inset: 0; z-index: 0; background: var(--surface-sunken); }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* orange gradient overlay (left), fading to reveal the photo (right) */
.slide-tint {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(232, 69, 27, 0.96) 0%,
    rgba(232, 69, 27, 0.58) 11%,
    rgba(245, 236, 228, 0.82) 25%,
    rgba(245, 236, 228, 0.42) 43%,
    rgba(245, 236, 228, 0.0) 62%);
}
.slide-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.slide-copy { max-width: 46ch; padding: var(--s-16) 0; }
.slide .kicker {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(22, 24, 26, 0.7);
  display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-6);
}
.slide .kicker .bar { width: 24px; height: 2px; }
.bar-orange { background: var(--brand-orange); }
.bar-blue { background: var(--brand-blue); }
.bar-purple { background: var(--brand-purple); }
.bar-ink { background: var(--ink-primary); }
.slide h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ink-primary); margin-bottom: var(--s-6); max-width: 14ch;
}
.slide p { font-size: 1.15rem; color: rgba(22, 24, 26, 0.82); max-width: 44ch; margin-bottom: var(--s-8); }
.slide-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* media panel (brand graphic, replace with photo) */
.media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: clamp(320px, 46vh, 500px); border: 1px solid var(--rule);
  background: var(--surface-sunken);
}
.media::before {
  content: ""; position: absolute; width: 130%; height: 130%; right: -30%; top: -30%;
  background: radial-gradient(closest-side, var(--m-blob, rgba(232,69,27,0.9)), transparent 70%);
  opacity: 0.9;
}
.media::after {
  content: ""; position: absolute; left: -10%; bottom: -20%; width: 60%; height: 60%;
  background: radial-gradient(closest-side, var(--m-blob-2, rgba(31,86,196,0.7)), transparent 72%);
  opacity: 0.7;
}
.m-orange { --m-blob: rgba(232,69,27,0.92); --m-blob-2: rgba(122,63,184,0.55); }
.m-blue   { --m-blob: rgba(31,86,196,0.92);  --m-blob-2: rgba(232,69,27,0.5); }
.m-purple { --m-blob: rgba(122,63,184,0.92); --m-blob-2: rgba(31,86,196,0.55); }
.media .m-dots {
  position: absolute; top: var(--s-8); left: var(--s-8);
  display: grid; grid-template-columns: repeat(3, 9px); gap: 8px; z-index: 2;
}
.media .m-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.85); }
.media-chip {
  position: absolute; z-index: 3; left: var(--s-8); bottom: var(--s-8); right: var(--s-12);
  background: rgba(255,255,255,0.94); backdrop-filter: blur(4px);
  border-radius: var(--radius-sm); padding: var(--s-4) var(--s-6);
  box-shadow: var(--shadow-md); border: 1px solid var(--rule);
}
.media-chip .mc-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-2); }
.media-chip .mc-name { font-weight: 600; font-size: 0.98rem; color: var(--ink-primary); }
.media-chip .mc-mol { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-secondary); }
.media-chip .mc-pack { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); margin-top: 2px; }

/* carousel controls */
.hero-controls {
  position: absolute; left: 0; right: 0; bottom: var(--s-8); z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-dots { display: flex; gap: var(--s-2); }
.hero-dot {
  width: 40px; height: 4px; border-radius: 4px; border: 0; padding: 0; cursor: pointer;
  background: var(--rule-strong); opacity: 0.4; transition: opacity 200ms ease, background 200ms ease;
}
.hero-dot[aria-selected="true"] { opacity: 1; background: var(--brand-orange); }
.hero-dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hero-arrows { display: flex; gap: var(--s-2); }
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong);
  background: var(--surface-card); color: var(--ink-primary); cursor: pointer;
  display: grid; place-items: center; transition: background 200ms ease, transform 200ms cubic-bezier(0.32,0.72,0,1);
}
.hero-arrow:hover { background: var(--surface-sunken); }
.hero-arrow:active { transform: scale(0.94); }
.hero-arrow:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* soft rounded buttons for corporate pages */
.btn-lg { min-height: 52px; padding: 0 var(--s-8); font-size: 1rem; border-radius: var(--radius-sm); }
.btn.btn-round { border-radius: var(--radius-sm); }

/* ---------- Purpose band (bold statement, dark) ---------- */
.purpose { background: var(--ink-primary); color: var(--paper-50); }
.purpose .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-16); align-items: end; }
.purpose .kicker { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,249,246,0.5); margin-bottom: var(--s-6); display: block; }
.purpose .big { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch; }
.purpose .big .u { color: var(--brand-orange); } .purpose .big .m { color: var(--brand-blue); } .purpose .big .a { color: var(--brand-purple); }
.purpose p { color: rgba(250,249,246,0.66); font-size: 1.02rem; }

/* ---------- Segment tiles (Glenmark "businesses" style) ---------- */
.segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.seg-tile {
  display: flex; flex-direction: column; background: var(--surface-card);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  transition: transform 320ms cubic-bezier(0.32,0.72,0,1), box-shadow 320ms ease, border-color 320ms ease;
}
.seg-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.seg-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg-media { position: relative; min-height: 168px; overflow: hidden; }
.seg-media .code { position: absolute; top: var(--s-3); right: var(--s-4); z-index: 2; font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,0.9); letter-spacing: 0.06em; }
.seg-body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.seg-body h3 { font-size: 1.12rem; }
.seg-body p { font-size: 0.9rem; }
.seg-foot { margin-top: var(--s-4); display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 0.9rem; color: var(--ink-primary); }
.seg-foot svg { transition: transform 260ms cubic-bezier(0.32,0.72,0,1); }
.seg-tile:hover .seg-foot svg { transform: translateX(4px); }

/* ---------- News / trade notes cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.news-card {
  display: flex; flex-direction: column; background: var(--surface-card);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  transition: transform 300ms cubic-bezier(0.32,0.72,0,1), box-shadow 300ms ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-media { min-height: 150px; position: relative; }
.news-body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.news-kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nk-orange { color: var(--brand-orange); } .nk-blue { color: var(--brand-blue); } .nk-purple { color: var(--brand-purple); }
.news-body h3 { font-size: 1.05rem; }
.news-body p { font-size: 0.9rem; }
.news-body .read { margin-top: auto; font-weight: 600; font-size: 0.88rem; color: var(--ink-primary); display: inline-flex; align-items: center; gap: var(--s-2); }

/* full-bleed CTA (corporate) */
.cta-x { background: var(--ink-primary); text-align: center; }
.cta-x h2 { color: var(--paper-50); font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 20ch; margin: 0 auto; }
.cta-x p { color: rgba(250,249,246,0.62); max-width: 52ch; margin: var(--s-4) auto var(--s-8); }
.cta-x .btn-primary { background: var(--paper-50); color: var(--ink-primary); }
.cta-x .btn-primary:hover { background: #fff; }

/* section rhythm for home */
.section-lg { padding: var(--s-24) 0; }
.head-center { text-align: center; max-width: 62ch; margin: 0 auto var(--s-16); }
.head-center .eyebrow { justify-content: center; }
.head-center h2 { margin-top: var(--s-3); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* ---------- Responsive (corporate components) ---------- */
@media (max-width: 960px) {
  .hero-stage { min-height: 520px; }
  .purpose .container { grid-template-columns: 1fr; gap: var(--s-8); }
  .segments { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .section-lg { padding: var(--s-16) 0; }
  /* stronger warm scrim so headline stays readable over the photo */
  .slide-tint {
    background: linear-gradient(90deg,
      rgba(245, 236, 228, 0.96) 0%,
      rgba(245, 236, 228, 0.82) 46%,
      rgba(245, 236, 228, 0.35) 72%,
      rgba(232, 69, 27, 0.08) 100%);
  }
}
@media (max-width: 640px) {
  .segments { grid-template-columns: 1fr; }
  .hero-stage { min-height: 480px; }
  .hero-arrows { display: none; }
  .slide-copy { padding: var(--s-12) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ============================================================
   LINE-ART CAPABILITY SECTION (Glenmark "Innovation-led" style)
   Thin outline circles + orange-to-purple gradient petal/wedge
   shapes + line-icon stat cards. Pure SVG/CSS, no imagery.
   ============================================================ */

.capability { background: var(--surface-card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cap-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: center; margin-bottom: var(--s-20); }
.cap-figure { position: relative; }
.cap-figure svg { width: 100%; height: auto; display: block; overflow: visible; }
.line-circle { fill: none; stroke: rgba(22,24,26,0.12); stroke-width: 1; }
.fig-label {
  position: absolute; color: #fff; font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem); text-shadow: 0 1px 6px rgba(22,24,26,0.25);
}
.cap-copy .eyebrow { margin-bottom: var(--s-4); }
.cap-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.cap-copy p { margin-top: var(--s-4); max-width: 52ch; }

.cap-bottom { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-12); align-items: center; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.stat-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: var(--surface-card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s-6); box-shadow: var(--shadow-sm);
  transition: transform 260ms cubic-bezier(0.32,0.72,0,1), box-shadow 260ms ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .sc-num { font-family: var(--font-mono); font-size: 1.85rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--ink-primary); }
.stat-card .sc-lbl { font-size: 0.82rem; color: var(--ink-secondary); margin-top: var(--s-2); max-width: 20ch; }
.stat-card .sc-ic {
  width: 54px; height: 54px; border-radius: var(--radius-sm); flex: none;
  border: 1px solid var(--rule); background: var(--surface-bg);
  display: grid; place-items: center; color: var(--brand-orange);
}
.stat-card:nth-child(2) .sc-ic { color: var(--brand-blue); }
.stat-card:nth-child(3) .sc-ic { color: var(--brand-purple); }
.stat-card:nth-child(4) .sc-ic { color: var(--brand-orange); }
.stat-card:nth-child(5) .sc-ic { color: var(--brand-blue); }

.cap-wedge { position: relative; }
.cap-wedge svg { width: 100%; height: auto; display: block; overflow: visible; }
.wedge-label {
  position: absolute; top: 46%; right: 7%; color: #fff; font-weight: 600;
  text-align: right; line-height: 1.1; font-size: clamp(1.05rem, 2.3vw, 1.6rem);
  text-shadow: 0 1px 6px rgba(22,24,26,0.25);
}

@media (max-width: 960px) {
  .cap-top, .cap-bottom { grid-template-columns: 1fr; gap: var(--s-8); }
  .cap-bottom { grid-template-columns: 1fr; }
  .cap-wedge { max-width: 460px; }
}
@media (max-width: 640px) {
  .stat-cards { grid-template-columns: 1fr; }
}

/* ---------- Image slots (replace SVG placeholders with real photos) ---------- */
.media-img, .seg-img, .news-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; display: block;
}
.seg-media, .news-media { background: var(--surface-sunken); }
