/* enterprise-grade.com — ported from mockup/index.html, extended for the full site */

:root{
  /* base: the console */
  --bg:#12161C;
  --bg-2:#0D1116;
  --tile:#1C222B;
  --txt:#F2F4F6;
  --txt-dim:#9BA6B2;
  --hair:rgba(255,255,255,.10);

  /* accents — Dynamics blue leads; the rest of his world seasons it */
  --dyn:#1B6EC2;      /* Dynamics blue — the base stack, and the lead accent */
  --safety:#E8730C;   /* plant-floor safety orange — spice, not the frame */
  --via:#0E7C5A;      /* VIA livery green */
  --cn:#B32017;       /* CN locomotive red */
  --steel:#4A5560;    /* legacy / archive */
  --swift:#8B5FA8;    /* the one purple. used twice. */
  --edi:#7A6B18;      /* EDI: old, ugly, still carrying freight */
}

*{-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  background:var(--bg);color:var(--txt);
  font-family:"Open Sans",'Segoe UI',system-ui,sans-serif;
  font-weight:300;font-size:15px;line-height:1.5;
  overflow-x:hidden;
}
::selection{background:var(--dyn);color:#12161C}
a{color:inherit;text-decoration:none}
.mono{font-family:"Roboto Mono",monospace}

/* ---------- Metro type scale. three sizes, doing all the work. ---------- */
.t-pano{font-weight:300;font-size:clamp(2.6rem,5.2vw,4.4rem);line-height:1;letter-spacing:-.02em}
.t-sect{font-weight:300;font-size:clamp(1.6rem,2.4vw,2.1rem);line-height:1.05;letter-spacing:-.01em}
.t-tile{font-weight:400;font-size:1.05rem;line-height:1.2}
.t-sub{font-weight:300;font-size:.84rem;color:var(--txt-dim)}
.label{
  font-family:"Roboto Mono",monospace;font-size:.6rem;font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;
}

/* ---------- top nav ---------- */
.nav-metro{
  background:var(--bg-2);border-bottom:1px solid var(--hair);
  padding:.8rem max(1.25rem,calc((100vw - 1100px)/2));
  display:flex;align-items:baseline;gap:1.4rem;flex-wrap:wrap;
}
.nav-metro .brand{
  font-weight:300;font-size:.85rem;letter-spacing:.3em;text-transform:uppercase;
  color:var(--txt);margin-right:auto;white-space:nowrap;
}
.nav-metro a.navlink{
  font-family:"Roboto Mono",monospace;font-size:.62rem;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--txt-dim);
  border-bottom:2px solid transparent;padding-bottom:.15rem;
}
.nav-metro a.navlink:hover,.nav-metro a.navlink.active{color:var(--txt);border-bottom-color:var(--dyn)}

/* ---------- VERTICAL FLOW ---------- */
.panel{
  padding:3.5rem max(1.25rem,calc((100vw - 1100px)/2)) 3rem;
  display:flex;flex-direction:column;
  box-sizing:border-box;
  border-bottom:1px solid var(--hair);
}
.panel-head{margin-bottom:1.25rem;flex:0 0 auto;max-width:44rem}
.panel-body{flex:1 1 auto;min-height:0}

/* prose-heavy sections read better narrow */
.p-narrow{
  padding-left:max(1.25rem,calc((100vw - 760px)/2));
  padding-right:max(1.25rem,calc((100vw - 760px)/2));
}

/* ---------- tiles ---------- */
.grid{
  display:grid;gap:.5rem;
  grid-auto-flow:row dense;
  grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr));
  grid-auto-rows:9.5rem;
}
.tile{
  background:var(--k,var(--steel));
  padding:.8rem .9rem;
  display:flex;flex-direction:column;
  position:relative;overflow:hidden;
  transition:transform .12s ease;
  min-width:9.5rem;
}
.tile:active{transform:scale(.97)}
a.tile:hover{filter:brightness(1.12)}
.tile .label{opacity:.72;margin-bottom:.3rem}
.tile .foot{margin-top:auto;padding-top:.5rem}
.tile .num{font-weight:300;font-size:2.4rem;line-height:1;letter-spacing:-.02em}
.tile .t-lead{font-size:1.5rem;font-weight:300;line-height:1.1}
.tile .t-mid{font-size:.9rem}

.w1{grid-column:span 1}
.w2{grid-column:span 2}
.h1{grid-row:span 1}
.h2{grid-row:span 2}
.h3{grid-row:span 3}
.h4{grid-row:span 4}

/* live tile: a real pair of notes, flipping. content, not chrome. */
.live{position:relative;overflow:hidden}
.live .face{
  position:absolute;inset:.8rem .9rem;
  display:flex;flex-direction:column;justify-content:flex-end;
  animation:flip 14s cubic-bezier(.7,0,.3,1) infinite;
}
.live .face + .face{animation-delay:7s;opacity:0;transform:translateY(-115%)}
@keyframes flip{
  0%,44%{transform:translateY(0);opacity:1}
  50%,94%{transform:translateY(-115%);opacity:0}
  100%{transform:translateY(0);opacity:1}
}

/* ---------- hero ---------- */
.p-hero{background:var(--bg-2)}
.wordmark{
  font-weight:300;font-size:1rem;letter-spacing:.3em;text-transform:uppercase;
  color:var(--txt-dim);margin:0 0 1.5rem;
}
.hero-sub{max-width:64ch;color:var(--txt-dim);font-size:.95rem;margin-top:1.25rem}

/* ---------- forms / buttons ---------- */
.form-control{
  background:transparent;border:2px solid var(--hair);border-radius:0;
  color:var(--txt);font-family:inherit;font-weight:300;font-size:.9rem;padding:.6rem .7rem;
}
.form-control:focus{background:transparent;box-shadow:none;border-color:var(--dyn);color:var(--txt)}
.form-control::placeholder{color:#5D6874}
.btn-metro{
  display:inline-block;
  background:transparent;color:var(--txt);border:2px solid var(--txt);border-radius:0;
  font-family:inherit;font-weight:400;font-size:.78rem;letter-spacing:.1em;
  text-transform:uppercase;padding:.55rem 1.3rem;
}
.btn-metro:hover{background:var(--txt);color:var(--bg)}

/* ---------- code block: these people copy JSON for a living ---------- */
pre,pre.cfg{
  background:#080B0F;border-left:4px solid var(--dyn);
  font-family:"Roboto Mono",monospace;font-size:.72rem;line-height:1.6;
  color:#A8C4DE;padding:.9rem 1rem;margin:0 0 1.2rem;overflow-x:auto;
}
pre.cfg .k{color:#7FB2E0}
pre.cfg .s{color:#D8A657}
pre.cfg .c{color:#5D6874}
code{font-family:"Roboto Mono",monospace;font-size:.85em;color:#A8C4DE;word-break:break-word}
pre code{color:inherit;font-size:inherit}

.seam{
  border-left:4px solid var(--safety);padding:.5rem 0 .5rem .8rem;
  font-size:.8rem;color:var(--txt-dim);
}

/* ---------- article prose ---------- */
.prose{max-width:44rem;font-size:.95rem;line-height:1.7}
.prose p{margin:0 0 1.1rem}
.prose h2{font-weight:300;font-size:1.45rem;line-height:1.15;letter-spacing:-.01em;margin:2.2rem 0 .9rem}
.prose h3{font-weight:400;font-size:1.1rem;line-height:1.2;margin:1.8rem 0 .7rem}
.prose a{color:#7FB2E0;border-bottom:1px solid rgba(127,178,224,.35)}
.prose a:hover{color:var(--txt);border-bottom-color:var(--txt)}
.prose ul,.prose ol{padding-left:1.3rem;margin:0 0 1.1rem}
.prose li{margin-bottom:.35rem}
.prose blockquote{
  border-left:4px solid var(--safety);margin:1.4rem 0;padding:.4rem 0 .4rem .9rem;
  color:var(--txt-dim);font-style:italic;
}
.prose hr{border:0;border-top:1px solid var(--hair);margin:2rem 0}
.prose table{border-collapse:collapse;width:100%;margin:0 0 1.4rem;font-size:.85rem;display:block;overflow-x:auto}
.prose th{font-family:"Roboto Mono",monospace;font-size:.62rem;font-weight:500;letter-spacing:.12em;
  text-transform:uppercase;color:var(--txt-dim);text-align:left}
.prose th,.prose td{border:1px solid var(--hair);padding:.5rem .7rem;vertical-align:top}
.prose strong{font-weight:600}
.prose img{max-width:100%;height:auto}

/* ---------- article header + portrait image ---------- */
.post-head{display:flex;gap:2.5rem;align-items:flex-start;margin-bottom:2rem}
.post-head .head-txt{flex:1 1 auto;min-width:0}
.post-head .head-img{flex:0 0 250px}
.post-head .head-img img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;display:block}
.t-title{font-weight:300;font-size:clamp(1.9rem,3.4vw,2.8rem);line-height:1.05;letter-spacing:-.015em;margin:.6rem 0 1rem}
.post-meta{display:flex;gap:1rem;flex-wrap:wrap;align-items:baseline}
.taglist{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:1.6rem}
.taglist a{
  font-family:"Roboto Mono",monospace;font-size:.6rem;font-weight:500;letter-spacing:.12em;
  text-transform:uppercase;color:var(--txt-dim);border:1px solid var(--hair);padding:.25rem .55rem;
}
.taglist a:hover{color:var(--txt);border-color:var(--txt-dim)}

/* ---------- footer ---------- */
.footer-metro{
  background:var(--bg-2);
  padding:2rem max(1.25rem,calc((100vw - 1100px)/2)) 2.2rem;
  display:flex;gap:1.4rem;flex-wrap:wrap;align-items:baseline;
}
.footer-metro .label a:hover{color:var(--txt)}

/* ---------- mobile: same flow, tighter grid ---------- */
@media(max-width:767px){
  .panel{padding:2rem 1rem}
  .grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:auto}
  .h2,.h3,.h4{grid-row:span 1}
  .tile{min-height:8rem}
  .live .face{position:static;animation:none;opacity:1;transform:none}
  .live .face + .face{display:none}
  .post-head{flex-direction:column-reverse;gap:1.2rem}
  .post-head .head-img{flex-basis:auto;width:55%;max-width:250px}
}

a:focus-visible,button:focus-visible{outline:2px solid var(--dyn);outline-offset:2px}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
