/* ============================================================================
   history.css — Trionic "Our story" page-specific layout
   Editorial vertical timeline. Load AFTER trionic-content.css (shared base).
   All rules scoped under #content. From the Claude Design handoff.
   ============================================================================ */

/* --- Hero --- */
#content .hist-hero { background:var(--bg-blue); }
#content .hist-hero h1 { font-size:clamp(56px,10vw,158px); line-height:0.88; margin:0 0 28px; }
#content .hist-hero h1 em { color:var(--pms-1915); }
#content .hist-hero .lead {
  font-size:clamp(18px,1.7vw,23px); line-height:1.45;
  max-width:46ch; font-weight:500; color:#141414; margin:0 0 8px;
}
#content .hist-hero .byline {
  font-family:var(--display); font-weight:700; font-style:italic;
  font-size:13px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--ink-2); margin-top:24px;
}

/* --- Vertical timeline --- */
#content .timeline { position:relative; max-width:1100px; margin:0 auto; padding:8px 0; }
#content .timeline::before {
  content:""; position:absolute; top:0; bottom:0; left:50%;
  width:4px; transform:translateX(-50%); background:#141414; border-radius:2px;
}
#content .tl-item { position:relative; width:50%; padding:0 48px 56px; }
#content .tl-item:last-child { padding-bottom:8px; }
#content .tl-item.left { left:0; text-align:right; }
#content .tl-item.right { left:50%; text-align:left; }
#content .tl-item::after {
  content:""; position:absolute; top:6px; width:22px; height:22px;
  background:var(--pms-291); border:4px solid #141414; border-radius:50%; z-index:2;
}
#content .tl-item.left::after  { right:-13px; }
#content .tl-item.right::after { left:-13px; }
#content .tl-item::before {
  content:""; position:absolute; top:15px; width:36px; height:3px; background:#141414; z-index:1;
}
#content .tl-item.left::before  { right:11px; }
#content .tl-item.right::before { left:11px; }

#content .tl-year {
  display:inline-block;
  font-family:var(--display); font-weight:800; font-style:italic;
  font-size:clamp(28px,3.4vw,44px); line-height:1; letter-spacing:-0.02em;
  color:#141414; margin-bottom:14px;
}
#content .tl-year small {
  display:block; font-size:11.5px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--pms-298); margin-bottom:4px;
}

#content .tl-card {
  display:inline-block; text-align:left; background:#fff;
  border:3px solid #141414; border-radius:4px; padding:24px 26px;
}
#content .tl-item.left  .tl-card { box-shadow:-8px 8px 0 #141414; }
#content .tl-item.right .tl-card { box-shadow:8px 8px 0 #141414; }
#content .tl-card h3 {
  font-family:var(--display); font-weight:800; font-style:italic;
  font-size:clamp(20px,2.1vw,27px); line-height:1.08; letter-spacing:-0.015em;
  margin:0 0 10px; color:#141414;
}
#content .tl-card h3 em { color:var(--pms-1915); }
#content .tl-card p { margin:0; font-size:14.5px; line-height:1.55; color:var(--ink-2); font-weight:500; }
#content .tl-card p + p { margin-top:10px; }
#content .tl-card .tl-quote {
  margin-top:14px; padding-left:14px; border-left:3px solid var(--pms-291);
  font-family:var(--display); font-weight:700; font-style:italic;
  font-size:16px; line-height:1.3; color:#141414;
}

#content .tl-item.spark::after  { background:var(--pms-012); }
#content .tl-item.invent::after { background:var(--pms-1915); }
#content .tl-item.crisis::after { background:var(--pms-186); }
#content .tl-item.turn::after   { background:var(--pms-382); }
#content .tl-item.today::after  { background:#141414; box-shadow:0 0 0 4px var(--pms-291); }

#content .tl-card.blue { background:var(--web-bg-blue); }
#content .tl-card.yellow { background:var(--pms-012); }
#content .tl-card.dark { background:#141414; }
#content .tl-card.dark h3 { color:#fff; }
#content .tl-card.dark p { color:#c5c8cd; }
#content .tl-card.dark .tl-quote { color:#fff; border-left-color:var(--pms-291); }

#content .tl-chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
#content .tl-chip {
  font-family:var(--display); font-weight:700; font-style:italic;
  font-size:11px; letter-spacing:0.05em; text-transform:uppercase;
  padding:5px 11px; border:2px solid #141414; border-radius:999px;
  background:#fff; color:#141414;
}

/* --- Invention highlight --- */
#content .invention { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; }
#content .invention-visual {
  background:#fff; border:3px solid #141414; border-radius:4px;
  padding:28px; box-shadow:12px 12px 0 #141414; display:grid; place-items:center;
}
#content .invention h3 {
  font-family:var(--display); font-weight:800; font-style:italic;
  font-size:clamp(28px,3.4vw,44px); line-height:1.0; letter-spacing:-0.02em;
  margin:0 0 16px; color:#141414;
}
#content .invention h3 em { color:var(--pms-1915); }
#content .invention p { font-size:16px; line-height:1.6; color:var(--ink-2); font-weight:500; margin:0 0 14px; }

/* (Dark stat band + CTA band styles live in the shared trionic-content.css) */

/* --- Responsive --- */
@media (max-width:1000px) {
  #content .invention { grid-template-columns:1fr; }
}
@media (max-width:820px) {
  #content .timeline::before { left:18px; }
  #content .tl-item,
  #content .tl-item.left,
  #content .tl-item.right { width:100%; left:0; text-align:left; padding:0 0 44px 52px; }
  #content .tl-item.left::after,  #content .tl-item.right::after  { left:5px; right:auto; }
  #content .tl-item.left::before, #content .tl-item.right::before { left:29px; right:auto; }
  #content .tl-item.left .tl-card, #content .tl-item.right .tl-card { box-shadow:6px 6px 0 #141414; display:block; }
}
