/* ============================================================
   TMG SECURITY — INDUSTRIES
   Loaded with tmg-home.css (tokens, header, footer) and
   tmg-services.css (shared service furniture).

   Visual language for this page: a MAP. The other pages move
   through something — a pipeline, a stack, an architecture.
   This one is cartographic: an ecosystem you look across, then
   travel horizontally through, then read as a matrix.

   Everything is CSS 3D + SVG. No WebGL, no library.
   ============================================================ */

.ind{ --acc:var(--cyan); --acc-soft:rgba(79,216,234,.13); --acc-line:rgba(79,216,234,.42); }
.ind[data-sector="fintech"]   { --acc:var(--cyan);  --acc-soft:rgba(79,216,234,.13); --acc-line:rgba(79,216,234,.42); }
.ind[data-sector="healthcare"]{ --acc:#3FE0B0;      --acc-soft:rgba(63,224,176,.12); --acc-line:rgba(63,224,176,.4); }
.ind[data-sector="saas"]      { --acc:#9B85FF;      --acc-soft:rgba(124,92,250,.15); --acc-line:rgba(124,92,250,.45); }
.ind[data-sector="ecommerce"] { --acc:var(--warn);  --acc-soft:rgba(245,180,78,.12); --acc-line:rgba(245,180,78,.4); }
.ind[data-sector="government"]{ --acc:var(--hyper); --acc-soft:rgba(255,79,216,.12); --acc-line:rgba(255,79,216,.42); }

/* ============================================================
   01 — HERO: INDUSTRY ECOSYSTEM
   ============================================================ */
.ihero-grid{ display:grid; grid-template-columns:1.02fr .98fr; gap:var(--s6); align-items:center; }
.ihero-h{
  font-family:var(--display); font-size:clamp(31px,4.4vw,54px); font-weight:700;
  line-height:1.05; letter-spacing:-1.5px; margin-bottom:20px; text-wrap:balance;
}
.ihero-lead{ font-size:16.5px; color:var(--ice); line-height:1.65; max-width:600px; margin-bottom:var(--s4); }
.ihero-ctas{ display:flex; gap:12px; flex-wrap:wrap; }

.esys-stage{ position:relative; width:100%; max-width:520px; margin:0 auto; perspective:1200px; }
.esys-inner{
  position:relative; transform-style:preserve-3d;
  transform:rotateX(var(--erx,14deg)) rotateZ(var(--erz,-6deg));
  transition:transform .5s var(--ease);
}
.esys-svg{ width:100%; height:auto; overflow:visible; }
.esys-ring{ fill:none; stroke:var(--line2); stroke-width:1; }
.esys-ring.dashed{ stroke:var(--line); stroke-dasharray:3 8; }
.esys-spoke{ stroke:rgba(140,165,225,.26); stroke-width:1; transition:stroke .45s; }
.esys-spoke.lit{ stroke:var(--acc-line); }
.esys-core{ fill:url(#indCore); stroke:rgba(79,216,234,.5); stroke-width:1.2; }
.esys-node{ fill:var(--panel2); stroke:var(--line2); stroke-width:1.2; transition:stroke .45s, fill .45s; }
.esys-node.lit{ stroke:var(--acc); fill:rgba(79,216,234,.12); }
/* threat satellites sit further out and read as secondary */
.esys-threat{ fill:var(--line3); opacity:.5; transition:fill .45s, opacity .45s; }
.esys-threat.lit{ fill:var(--acc); opacity:.9; }
.esys-label{
  position:absolute; transform:translate(-50%,-50%);
  font-family:var(--mono); font-size:8.5px; letter-spacing:1.5px; color:var(--ice);
  background:rgba(4,6,12,.92); border:1px solid var(--line2); border-radius:12px;
  padding:5px 10px; white-space:nowrap; pointer-events:none; transition:border-color .45s, color .45s;
}
.esys-label.lit{ border-color:var(--acc); color:var(--white); }
.esys-core-label{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; pointer-events:none; width:120px; }
.esys-core-label span{ display:block; font-family:var(--mono); font-size:7.5px; letter-spacing:2px; color:var(--fog); }
.esys-core-label b{ display:block; font-family:var(--display); font-size:13px; font-weight:700; color:var(--white); line-height:1.2; }
.esys-cap{ text-align:center; font-family:var(--mono); font-size:8.5px; letter-spacing:1.8px; color:var(--fog); margin-top:var(--s4); }
@media (max-width:1000px){ .ihero-grid{ grid-template-columns:1fr; gap:var(--s5); } .esys-stage{ max-width:400px; order:-1; } }
@media (max-width:420px){ .esys-stage{ max-width:300px; } .esys-label{ font-size:7px; padding:3px 7px; letter-spacing:1px; } }

/* ============================================================
   02 — INDUSTRY SELECTOR
   Reads as a control surface, not browser tabs.
   ============================================================ */
.sel-rail{
  display:flex; gap:8px; padding:6px; border:1px solid var(--line); border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(13,20,36,.7), rgba(6,9,17,.6)); margin-bottom:var(--s5);
}
.sel-tab{
  flex:1 1 0; min-width:0; position:relative; overflow:hidden;
  display:flex; flex-direction:column; gap:5px; align-items:flex-start;
  padding:14px 16px; border-radius:var(--r-md); border:1px solid transparent;
  background:none; color:var(--ice); cursor:pointer; min-height:64px; text-align:left;
  transition:border-color .3s, background .3s, transform .3s var(--ease);
}
.sel-tab:hover{ background:rgba(18,27,48,.6); }
.sel-tab[aria-selected="true"]{
  border-color:var(--acc-line); background:var(--panel);
  box-shadow:0 0 24px var(--acc-soft);
}
.sel-tab::after{
  content:''; position:absolute; left:16px; right:16px; bottom:0; height:2px;
  background:var(--acc); border-radius:2px; transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.sel-tab[aria-selected="true"]::after{ transform:scaleX(1); }
.sel-n{ font-family:var(--mono); font-size:8px; letter-spacing:1.6px; color:var(--fog); }
.sel-tab[aria-selected="true"] .sel-n{ color:var(--acc); }
.sel-k{ font-family:var(--display); font-size:14.5px; font-weight:600; letter-spacing:.2px; white-space:nowrap; }
@media (max-width:900px){
  /* controlled horizontal scroll for the selector only — never the page */
  .sel-rail{ overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
  .sel-tab{ flex:0 0 auto; min-width:148px; scroll-snap-align:start; }
  .sel-rail::-webkit-scrollbar{ height:4px; }
  .sel-rail::-webkit-scrollbar-thumb{ background:var(--line2); border-radius:4px; }
}

/* --- the data panel --- */
.sel-panel{ display:none; }
.sel-panel.on{ display:block; animation:selIn .4s var(--ease); }
@keyframes selIn{ from{ opacity:0; transform:translateY(12px) scale(.995); } to{ opacity:1; transform:none; } }
.sel-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:var(--s5); align-items:start; }
.sel-head{ margin-bottom:var(--s4); }
.sel-title{ font-family:var(--display); font-size:clamp(21px,2.4vw,29px); font-weight:700; letter-spacing:-.7px; line-height:1.2; margin-bottom:12px; text-wrap:balance; }
.sel-block{ margin-bottom:var(--s4); }
.sel-block h4{ font-family:var(--mono); font-size:9px; letter-spacing:2px; color:var(--acc); margin-bottom:10px; }
.sel-block p{ font-size:13.5px; color:var(--fog); line-height:1.7; }
.sel-side{ border:1px solid var(--line); border-radius:var(--r-lg); padding:24px 22px; background:var(--deep); }
.sel-svc{ display:flex; flex-direction:column; gap:2px; }
.sel-svc a{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:9px 11px; border-radius:9px; font-size:12.8px; color:var(--ice);
  transition:background .2s, color .2s, transform .2s var(--ease);
}
.sel-svc a::after{ content:'→'; font-family:var(--mono); font-size:10px; color:var(--acc); opacity:0; transition:opacity .2s; }
.sel-svc a:hover{ background:var(--acc-soft); color:var(--white); transform:translateX(3px); }
.sel-svc a:hover::after{ opacity:1; }
.sel-cons{ display:flex; flex-wrap:wrap; gap:6px; }
.sel-cons span{
  font-family:var(--mono); font-size:8.5px; letter-spacing:.9px; padding:6px 10px;
  border-radius:10px; border:1px solid var(--line2); color:var(--fog);
}
.sel-cta{ margin-top:var(--s4); }
@media (max-width:900px){ .sel-grid{ grid-template-columns:1fr; gap:var(--s4); } }

/* ============================================================
   03 — ATTACK SURFACE: horizontal journey
   ============================================================ */
.surf{ position:relative; }
.surf-rail{ height:420vh; }
.surf-view{
  position:sticky; top:var(--hh,68px); height:calc(100vh - var(--hh,68px));
  display:flex; align-items:center; overflow:hidden; perspective:1300px;
}
.surf-track{
  /* Padding is half a viewport minus half a column, so the FIRST and LAST
     columns can each reach dead centre. With a flat 8vw the outer columns
     never became the active one — the indicator could only ever light 2..5. */
  display:flex; align-items:center; gap:56px; padding:0 calc(50vw - 140px);
  transform:translate3d(var(--sx,0px),0,0); will-change:transform;
}
.surf-col{ flex:none; width:280px; transform-style:preserve-3d; }
.surf-card{
  border:1px solid var(--line2); border-radius:var(--r-lg); padding:24px 22px;
  background:linear-gradient(155deg, rgba(13,20,36,.94), rgba(6,9,17,.82));
  box-shadow:0 26px 66px rgba(0,0,0,.55);
  transform:rotateY(var(--ry,0deg)) scale(var(--sc,.9));
  opacity:var(--op,.35); transition:border-color .35s;
  will-change:transform,opacity;
}
.surf-col.on .surf-card{ border-color:var(--acc-line); }
.surf-k{ font-family:var(--hud); font-size:11px; font-weight:700; letter-spacing:1.6px; color:var(--acc); }
.surf-t{ font-family:var(--display); font-size:22px; font-weight:700; margin:10px 0 16px; letter-spacing:-.4px; }
.surf-list{ display:flex; flex-direction:column; gap:7px; }
.surf-list li{
  font-family:var(--mono); font-size:9.5px; letter-spacing:1.1px; color:var(--ice);
  padding:9px 12px; border-radius:9px; border:1px solid var(--line); background:var(--panel2);
}
.surf-link{ flex:none; width:56px; height:1px; background:var(--line3); position:relative; }
.surf-link::after{
  content:''; position:absolute; right:-4px; top:-3px; width:6px; height:6px;
  border-top:1px solid var(--acc); border-right:1px solid var(--acc); transform:rotate(45deg); opacity:.55;
}
.surf-hud{ position:absolute; left:50%; bottom:30px; transform:translateX(-50%); display:flex; gap:7px; }
.surf-hud i{ width:20px; height:2px; border-radius:2px; background:var(--line2); transition:background .3s; }
.surf-hud i.on{ background:var(--acc); box-shadow:0 0 8px var(--acc); }
.surf-cap{
  position:absolute; left:50%; top:22px; transform:translateX(-50%);
  font-family:var(--mono); font-size:9px; letter-spacing:2px; color:var(--fog); white-space:nowrap;
}
/* Mobile: a vertical stack. No horizontal travel, no scroll trap. */
@media (max-width:900px){
  .surf-rail{ height:auto; }
  .surf-view{ position:static; height:auto; overflow:visible; perspective:none; }
  .surf-track{ flex-direction:column; gap:10px; padding:0; transform:none !important; align-items:stretch; }
  .surf-col{ width:100%; }
  .surf-card{ transform:none !important; opacity:1 !important; box-shadow:none; padding:20px 18px; }
  .surf-t{ font-size:18px; }
  .surf-link{ width:1px; height:18px; margin:0 auto; }
  .surf-link::after{ right:-3px; top:auto; bottom:-4px; transform:rotate(135deg); }
  .surf-hud,.surf-cap{ display:none; }
}

/* ============================================================
   04 — THREAT MATRIX
   ============================================================ */
.mx-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--deep); }
.mx{ width:100%; border-collapse:collapse; min-width:820px; }
.mx th,.mx td{ padding:13px 12px; text-align:left; border-bottom:1px solid var(--line); }
.mx thead th{
  font-family:var(--mono); font-size:8px; letter-spacing:1.5px; color:var(--fog);
  font-weight:500; white-space:nowrap; position:sticky; top:0; background:var(--panel2); z-index:2;
}
.mx tbody th{
  font-family:var(--display); font-size:13.5px; font-weight:600; color:var(--white); white-space:nowrap;
}
.mx tbody tr{ transition:background .25s; }
.mx tbody tr:hover{ background:rgba(18,27,48,.5); }
.mx-cell{
  font-family:var(--mono); font-size:8px; letter-spacing:.9px; padding:5px 9px;
  border-radius:9px; border:1px solid var(--line2); color:var(--fog); white-space:nowrap;
  display:inline-block; transition:border-color .3s, color .3s, background .3s;
}
.mx-cell.high{ border-color:rgba(255,79,216,.42); color:var(--hyper); background:rgba(255,79,216,.07); }
.mx-cell.priority{ border-color:rgba(245,180,78,.4); color:var(--warn); background:rgba(245,180,78,.06); }
.mx-cell.relevant{ border-color:rgba(79,216,234,.36); color:var(--cyan); background:rgba(79,216,234,.06); }
.mx-cell.context{ border-color:var(--line2); color:var(--fog); }
.mx-note{ font-size:11.5px; color:var(--fog); font-style:italic; margin-top:var(--s3); }
.mx-key{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:var(--s3); }

/* ============================================================
   05 — SECURITY STACK (3D layers)
   ============================================================ */
.stack{ position:relative; perspective:1500px; padding:var(--s6) 0; overflow:hidden; }
.stack-inner{
  position:relative; transform-style:preserve-3d; height:440px;
  transform:rotateX(var(--krx,48deg)) rotateZ(var(--krz,-12deg));
}
.stack-l{
  position:absolute; left:50%; top:50%; width:min(440px,76vw); height:96px;
  margin:-48px 0 0 max(-220px,-38vw);
  border:1px solid var(--line2); border-radius:var(--r-md);
  background:linear-gradient(150deg, rgba(13,20,36,.94), rgba(6,9,17,.84));
  transform:translateZ(var(--kz,0px));
  display:flex; align-items:center; justify-content:space-between; padding:14px 20px;
  box-shadow:0 16px 44px rgba(0,0,0,.5); transition:border-color .5s, box-shadow .5s;
  will-change:transform;
}
.stack-l.lit{ border-color:var(--acc-line); box-shadow:0 16px 54px var(--acc-soft); }
.stack-k{ font-family:var(--mono); font-size:9.5px; letter-spacing:1.9px; color:var(--ice); }
.stack-n{ font-family:var(--mono); font-size:8px; letter-spacing:1.1px; color:var(--fog); text-align:right; max-width:54%; }
.stack-cap{ text-align:center; font-family:var(--mono); font-size:9px; letter-spacing:1.7px; color:var(--fog); margin-top:var(--s4); }
@media (max-width:640px){ .stack{ perspective:900px; } .stack-inner{ height:340px; } .stack-l{ height:80px; margin-top:-40px; padding:11px 15px; } }

/* ============================================================
   07 — INDUSTRY → SERVICE MAP
   ============================================================ */
.map-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.map-cell{
  padding:15px 14px; border-radius:var(--r-md); border:1px solid var(--line);
  background:var(--deep); transition:border-color .35s, background .35s, opacity .35s, transform .35s var(--ease);
}
.map-cell.lit{ border-color:var(--acc-line); background:var(--panel); transform:translateY(-3px); }
.map-cell.dim{ opacity:.3; }
.map-k{ font-family:var(--display); font-size:13px; font-weight:600; display:block; }
.map-n{ font-family:var(--mono); font-size:8px; letter-spacing:1.1px; color:var(--fog); display:block; margin-top:6px; }
@media (max-width:900px){ .map-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:420px){ .map-grid{ grid-template-columns:1fr; } }

/* ============================================================
   08 — SCENARIOS  ·  09 — PILLARS
   ============================================================ */
.scn-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.scn{ padding:22px 18px; border-radius:var(--r-md); border:1px solid var(--line); background:var(--deep); display:flex; flex-direction:column; gap:10px; }
.scn-k{ font-family:var(--mono); font-size:8.5px; letter-spacing:1.6px; color:var(--acc); }
.scn-q{ font-family:var(--display); font-size:14px; font-weight:600; line-height:1.4; color:var(--white); }
@media (max-width:1000px){ .scn-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .scn-grid{ grid-template-columns:1fr; } }

.pil-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.pil{ padding:26px 22px; display:flex; flex-direction:column; gap:9px; }
.pil-n{ font-family:var(--hud); font-size:24px; font-weight:900; color:var(--line3); line-height:1; transition:color .35s; }
.pil:hover .pil-n{ color:var(--cyan); }
.pil-k{ font-family:var(--display); font-size:15px; font-weight:600; margin-top:6px; }
.pil-d{ font-size:12.8px; color:var(--fog); line-height:1.6; }
@media (max-width:1000px){ .pil-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .pil-grid{ grid-template-columns:1fr; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  .esys-inner{ transform:none !important; }
  .surf-rail{ height:auto; }
  .surf-view{ position:static; height:auto; overflow:visible; perspective:none; }
  .surf-track{ flex-direction:column; gap:10px; padding:0; transform:none !important; }
  .surf-col{ width:100%; }
  .surf-card{ transform:none !important; opacity:1 !important; }
  .stack{ perspective:none; }
  .stack-inner{ transform:none !important; height:auto; display:flex; flex-direction:column; gap:8px; }
  .stack-l{ position:relative; left:auto; top:auto; margin:0; width:100%; height:auto; transform:none !important; box-shadow:none; }
  .sel-panel.on{ animation:none; }
}

/* ============================================================
   PAGE-LOCAL UTILITIES
   Classes this page needs that the shared sheets do not define.
   ============================================================ */
.nav-btn.is-current{ color:var(--white); }
.nav-btn.is-current::after{
  content:''; position:absolute; left:10px; right:10px; bottom:4px; height:1px;
  background:linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.sel-list{ display:flex; flex-direction:column; gap:9px; }
.sel-list li{
  position:relative; padding-left:20px; font-size:13.5px; color:var(--fog); line-height:1.65;
}
.sel-list li::before{
  content:''; position:absolute; left:2px; top:9px; width:7px; height:7px; border-radius:2px;
  border:1px solid var(--acc-line); background:var(--acc-soft); transform:rotate(45deg);
}
/* The adapt timeline reuses the shared .scen component; only the accent differs. */
.ind .scen{ max-width:940px; }

/* 44px minimum touch target on this page's own controls. */
.sel-svc a{ min-height:44px; }
.cta-btn.sel-cta{ min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
