/* ==========================================================================
   ALI MZAYHEM — QA ENGINEER PORTFOLIO
   Design system: "Live Test Console" — a QA dashboard aesthetic.
   ========================================================================== */

@font-face {
  font-family: 'Arcon';
  src: url('../fonts/Arcon.otf');
}

:root{
  /* palette */
  --bg:        #06090a;
  --bg-soft:   #0a1010;
  --panel:     rgba(255,255,255,0.025);
  --panel-hi:  rgba(255,255,255,0.05);
  --border:    rgba(255,255,255,0.09);
  --border-hi: rgba(0,214,190,0.35);
  --grid-line: rgba(0,214,190,0.06);

  --text:      #eef3f1;
  --text-dim:  #83958f;
  --text-dimmer: #4d5b57;

  --accent:      #00d6be; /* PASS / signature teal */
  --accent-soft: rgba(0,214,190,0.14);
  --warn:        #ffb020; /* RUNNING */
  --fail:        #ff5c5c; /* rare */

  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --display: 'Space Grotesk', sans-serif;
  --body-font: 'Inter', sans-serif;

  --radius: 12px;
  --frame-gap: 14px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  overflow-x: hidden;
  position: relative;
}

/* faint always-on perspective grid across the whole page */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 40%, transparent 90%);
}

/* subtle grain / scanline vignette */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
img{ max-width: 100%; display: block; }

::selection{ background: var(--accent); color: #06090a; }

.hide{ display: none !important; }
.stop-scroll{ overflow: hidden; }

/* ---------- custom cursor ---------- */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .run-card,
body.has-custom-cursor input,
body.has-custom-cursor textarea{
  cursor: none;
}
.cursor-dot{
  position: fixed;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  pointer-events: none;
  z-index: 1000;
  transition: opacity .2s;
}
.cursor-ring{
  position: fixed;
  top: -19px; left: -19px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,214,190,0.55);
  pointer-events: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .25s, height .25s, top .25s, left .25s,
              border-color .25s, background .25s, opacity .2s;
}
.cursor-ring span{
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .14em;
  color: var(--accent);
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap;
}
.cursor-ring.is-hover{
  width: 58px; height: 58px;
  top: -29px; left: -29px;
  border-color: var(--accent);
  background: rgba(0,214,190,0.08);
  backdrop-filter: blur(2px);
}
.cursor-ring.has-label span{ opacity: 1; }
.cursor-ring.is-down{
  width: 26px; height: 26px;
  top: -13px; left: -13px;
  background: rgba(0,214,190,0.2);
}

/* ---------- corner HUD frame ---------- */
.hud-frame{
  position: fixed;
  inset: var(--frame-gap);
  z-index: 90;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}
.hud-frame span{
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
  opacity: .55;
}
.hud-frame .tl{ top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 18px; }
.hud-frame .tr{ top: -1px; right: -1px; border-width: 2px 2px 0 0; border-top-right-radius: 18px; }
.hud-frame .bl{ bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-bottom-left-radius: 18px; }
.hud-frame .br{ bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 18px; }

/* ---------- top bar ---------- */
.topbar{
  position: fixed;
  top: var(--frame-gap);
  left: var(--frame-gap);
  right: var(--frame-gap);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  font-family: var(--mono);
}
.topbar-id{
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.topbar-logo{ height: 34px; width: auto; }
.title-icon{
  color: var(--accent);
  font-size: .65em;
  margin-right: .55rem;
  vertical-align: .12em;
}
.section-sub i, .eyebrow i{ color: var(--accent); }
.matrix-head .name i{ color: var(--accent); margin-right: .35rem; }
.tb-item .tag i{ margin-right: .15rem; }
.quote-mark{
  font-size: 1.6rem;
  color: var(--accent);
  opacity: .8;
  display: block;
  margin-top: 1.2rem;
  line-height: 1;
}
.footer h3 i{ color: var(--accent); margin-right: .35rem; font-size: .9em; }
.footer address i{ color: var(--accent); margin-right: .25rem; }
.field label i{ color: var(--accent); margin-right: .25rem; }
.stats-label i{ color: var(--accent); margin-right: .3rem; }
.topbar-id .name{ font-size: .95rem; }
.topbar-id .role{ color: var(--text-dim); font-size: .7rem; display:none; }

.topbar-stats{
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.tb-item{ display:flex; flex-direction:column; gap:2px; line-height:1; }
.tb-item .tag{ font-size: .62rem; letter-spacing:.12em; color: var(--text-dimmer); text-transform: uppercase; }
.tb-item .val{ font-size: .78rem; letter-spacing:.04em; }
.tb-item .val.pass{ color: var(--accent); }
.dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent); margin-right:.4rem; box-shadow:0 0 8px var(--accent); animation: blink 2.2s ease-in-out infinite; }

@keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:.35;} }

.menu-btn{
  font-family: var(--mono);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .5rem .8rem;
  font-size: .72rem;
  letter-spacing: .1em;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap:.5rem;
}
.menu-btn:hover{ border-color: var(--border-hi); color: var(--accent); }

@media (max-width: 900px){
  .topbar-stats{ display:none; }
  .topbar-id .role{ display:none; }
}

/* ---------- side menu ---------- */
.side-menu{
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100%;
  z-index: 200;
  background: #090d0d;
  border-left: 1px solid var(--border);
  padding: 6rem 2rem 2rem;
  font-family: var(--mono);
  transition: right .4s cubic-bezier(.7,0,.2,1);
}
.side-menu.open{ right: 0; }
.side-menu h2{
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--text-dimmer);
  text-transform: uppercase;
  margin: 0 0 1.6rem;
}
.side-menu ul li{ border-bottom: 1px solid var(--border); }
.side-menu ul li a{
  display: flex;
  justify-content: space-between;
  padding: 1.05rem 0;
  font-size: .95rem;
  letter-spacing: .03em;
  color: var(--text-dim);
  transition: color .2s, padding-left .2s;
}
.side-menu ul li a .idx{ color: var(--text-dimmer); font-size: .75rem; }
.side-menu ul li a:hover, .side-menu ul li a.active{
  color: var(--accent);
  padding-left: .4rem;
}
.overlay{
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden;
  transition: opacity .3s;
}
.overlay.show{ opacity: 1; visibility: visible; }

/* ---------- shared section chrome ---------- */
main{ position: relative; z-index: 1; padding-top: 92px; }

.eyebrow{
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 .9rem;
}
.section-title{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 .6rem;
  line-height: 1.02;
}
.section-sub{
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 46rem;
  margin: 0 0 2.6rem;
  line-height: 1.55;
}
.panel-section{
  max-width: 1280px;
  margin: 0 auto;
  padding: 6.5rem 2.5rem;
  position: relative;
}
.panel-section + .panel-section{ border-top: 1px solid var(--border); }

@media (max-width: 767px){
  .panel-section{ padding: 4.2rem 1.3rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  align-items: center;
  padding: 7rem 2.5rem 3rem;
  overflow: hidden;
}
#heroCanvas{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .95;
}
.hero-content{ position: relative; z-index: 2; }
.hero-title{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: .96;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  text-transform: uppercase;
}
.hero-title span{ color: var(--accent); }
.hero-sub{
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 1.05rem;
  min-height: 1.6em;
  border-left: 2px solid var(--accent);
  padding-left: .8rem;
}
.cursor{ color: var(--accent); animation: blink .9s steps(1) infinite; }

.hero-cta{ margin-top: 2.4rem; display:flex; gap: .9rem; flex-wrap: wrap; }
.btn{
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .85rem 1.4rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn:hover{ border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px rgba(0,214,190,.18); }
.btn.solid{ background: var(--accent); color: #06090a; border-color: var(--accent); font-weight: 600; }
.btn.solid:hover{ box-shadow: 0 0 22px rgba(0,214,190,.45); color:#06090a; }

.hero-stats{
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 1.6rem 1.6rem 1.4rem;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
}
.hero-stats::before{
  content: "";
  position: absolute;
  top: -60%; left: -30%;
  width: 80%; height: 140%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: rotate(8deg);
  pointer-events: none;
}
.stats-label{
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--text-dimmer);
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.stat-row{
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}
.stat-row b.pass{ color: var(--accent); }
.stat-bar-row{ padding: .8rem 0; border-bottom: 1px solid var(--border); }
.stat-bar-row > span{ font-size: .78rem; color: var(--text-dim); }
.stat-bar-row > b{ float: right; font-size: .78rem; }
.bar{ clear: both; width: 100%; height: 5px; background: rgba(255,255,255,0.07); margin-top: .55rem; border-radius: 3px; overflow: hidden; }
.bar i{ display:block; height:100%; width:0%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }

.log{ margin-top: 1.1rem; font-size: .74rem; color: var(--text-dim); line-height: 1.9; }
.log p{ margin: 0; }
.log p::before{ content: ""; }

.scroll-cue{
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--text-dimmer);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.scroll-cue i{
  display:block;
  animation: floatDown 1.8s ease-in-out infinite;
  color: var(--accent);
  font-style: normal;
}
@keyframes floatDown{ 0%,100%{ transform: translateY(0); opacity:.4; } 50%{ transform: translateY(6px); opacity:1; } }

@media (max-width: 991px){
  .hero{ grid-template-columns: 1fr; padding-top: 8rem; padding-bottom: 4rem; }
  .hero-stats{ margin-top: 2.4rem; }
  /* scroll cue was absolutely positioned at the bottom of .hero, which on
     mobile (stacked content, often taller than 100vh) overlapped the
     terminal. Drop it into normal flow, below the terminal, instead. */
  .scroll-cue{
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 2.4rem 0 0;
  }
}

/* ==========================================================================
   SKILLS / CAPABILITY MATRIX
   ========================================================================== */
.matrix{ display: flex; flex-direction: column; gap: 1.5rem; }
.matrix-row{ }
.matrix-head{
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--mono);
  margin-bottom: .55rem;
}
.matrix-head .idx{ color: var(--text-dimmer); font-size: .78rem; }
.matrix-head .name{ flex: 1; font-size: .98rem; color: var(--text); }
.matrix-head .pct{ color: var(--accent); font-size: .9rem; }
.matrix-bar{ height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.matrix-bar i{ display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #6df7e4); box-shadow: 0 0 10px rgba(0,214,190,.4); transition: width 1.6s cubic-bezier(.2,.7,.2,1); }

@media (max-width: 600px){
  .matrix-head{ flex-wrap: wrap; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}
.about-photo{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.about-photo img{ width: 100%; filter: grayscale(45%) contrast(1.05); mix-blend-mode: luminosity; opacity: .92; }
.about-photo::after{
  content: "OPERATOR_PROFILE.PNG";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--accent);
  background: rgba(6,9,10,0.7);
  padding: .5rem .8rem;
}
.about-text p{ color: var(--text-dim); font-size: 1.08rem; line-height: 1.8; margin: 0 0 1.2rem; }
.about-text strong{ color: var(--text); }
.about-cta{ display:flex; gap: .9rem; margin-top: 1.6rem; flex-wrap: wrap; }

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ max-width: 320px; margin: 0 auto; }
}

/* ==========================================================================
   PORTFOLIO / TEST RUNS
   ========================================================================== */
.runs-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.run-card{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.run-card:hover{ border-color: var(--border-hi); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.run-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 1.1rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--border);
  color: var(--text-dimmer);
}
.run-head .badge{
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: .2rem .6rem;
  font-size: .62rem;
}
.run-thumb{ aspect-ratio: 16/10; overflow: hidden; background: #0a0f0f; }
.run-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.run-body{ padding: 1.1rem 1.2rem 1.4rem; }
.run-body h3{ font-family: var(--display); font-size: 1.25rem; margin: 0 0 .4rem; }
.run-body p{ color: var(--text-dim); font-size: .88rem; margin: 0 0 1rem; line-height:1.6; }
.run-link{ font-family: var(--mono); font-size: .74rem; color: var(--accent); display:inline-flex; align-items:center; gap:.4rem; }

/* ==========================================================================
   CERTIFICATES
   ========================================================================== */
.cert-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.cert-card{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 1.4rem;
  display:flex; flex-direction:column; gap: 1rem;
  transition: border-color .25s, transform .25s;
}
.cert-card:hover{ border-color: var(--border-hi); transform: translateY(-3px); }
.cert-card img{ border-radius: 8px; border: 1px solid var(--border); }
.cert-meta{ display:flex; justify-content:space-between; align-items:center; font-family: var(--mono); font-size:.72rem; }
.cert-meta .status{ color: var(--accent); }

/* ==========================================================================
   FEEDBACK / SIGN-OFF LOG
   ========================================================================== */
.signoff-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.4rem; }
.signoff-card{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 1.6rem 1.5rem;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.signoff-card:hover{ transform: translateY(-5px); border-color: var(--border-hi); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.signoff-stamp{
  position: absolute;
  top: 1.3rem; right: 1.3rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: .2rem .55rem;
}
.signoff-card p.quote{ color: var(--text); font-size: .97rem; line-height: 1.7; margin: .5rem 0 1.4rem; }
.signoff-card h5{ font-family: var(--display); font-size: 1rem; margin: 0; }
.signoff-card h6{ font-family: var(--mono); font-size: .74rem; color: var(--text-dim); font-weight: 400; margin: .2rem 0 0; }

/* ==========================================================================
   CONTACT / SUBMIT TICKET
   ========================================================================== */
.ticket-wrap{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  max-width: 780px;
  padding: 2.4rem 2.6rem;
}
.ticket-wrap .field-row{ display:flex; gap: 1.2rem; }
.field{ margin-bottom: 1.3rem; flex: 1; }
.field label{
  display:block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--text-dimmer);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.field input, .field textarea{
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .8rem .9rem;
  color: var(--text);
  font-family: var(--body-font);
  font-size: .95rem;
  resize: none;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: rgba(0,214,190,0.04);
}
.field input::placeholder, .field textarea::placeholder{ color: var(--text-dimmer); }

@media (max-width: 600px){
  .ticket-wrap{ padding: 1.6rem; }
  .ticket-wrap .field-row{ flex-direction: column; gap: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{
  border-top: 1px solid var(--border);
  padding: 4rem 2.5rem 2rem;
  position: relative;
  z-index: 1;
}
.footer-grid{
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 2.5rem;
}
.footer h3{ font-family: var(--display); font-size: 1.1rem; margin: 0 0 .9rem; }
.footer p, .footer address{ color: var(--text-dim); font-size: .92rem; line-height: 1.8; font-style: normal; margin: 0; }
.footer .socials{ display:flex; gap: .7rem; margin-top: .3rem; }
.footer-col-web{ text-align: center; }
.footer-col-web .socials{ justify-content: center; }
.social-btn{
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--text);
  transition: all .2s;
}
.social-btn:hover{ border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px rgba(0,214,190,.3); }

.footer-bottom{
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-dimmer);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom .status{ color: var(--accent); display:flex; align-items:center; gap:.4rem; }

@media (max-width: 767px){
  .footer-grid{ grid-template-columns: 1fr; text-align:center; }
  .footer .socials{ justify-content: center; }
  .footer-bottom{ justify-content: center; text-align:center; }
}

/* ==========================================================================
   MODALS (case study reports)
   ========================================================================== */
.modal-backdrop{
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4,6,7,0.86);
  backdrop-filter: blur(6px);
  display:flex; align-items:flex-start; justify-content:center;
  padding: 4rem 1.2rem;
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
  overflow-y: auto;
}
.modal-backdrop.open{ opacity:1; visibility:visible; }
.modal-box{
  width: 100%;
  max-width: 920px;
  background: #0a1010;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-close{
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: all .2s;
}
.modal-close:hover{ border-color: var(--fail); color: var(--fail); }
.modal-box h2{ font-family: var(--display); font-size: clamp(1.5rem,3vw,2.1rem); margin: 0 0 .4rem; }
.modal-tagline{ color: var(--text-dim); font-size: .95rem; margin: 0 0 1.6rem; max-width: 44rem; }
.modal-box img.cover{ width: 100%; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 1.6rem; }

.qa-tabs{
  display:flex; gap: .3rem; border-bottom: 1px solid var(--border);
  margin-bottom: 1.6rem; overflow-x: auto;
}
.qa-tabs button{
  font-family: var(--mono);
  background: transparent; border: none;
  color: var(--text-dim);
  padding: .6rem .9rem;
  font-size: .78rem;
  letter-spacing: .04em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.qa-tabs button.active{ color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane{ display: none; text-align: left; }
.tab-pane.active{ display: block; }
.tab-pane p{ color: var(--text-dim); line-height: 1.75; font-size: .95rem; }
.tab-pane p strong{ color: var(--text); }

.qa-table-wrap{ width: 100%; overflow-x: auto; }
.qa-table{ width: 100%; min-width: 640px; border-collapse: collapse; font-size: .85rem; }
.qa-table th, .qa-table td{
  border: 1px solid var(--border);
  padding: .7rem .8rem;
  text-align: left;
  vertical-align: top;
  color: var(--text-dim);
  line-height: 1.55;
}
.qa-table th{ color: var(--accent); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; background: rgba(0,214,190,0.04); }

.state-flow{
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  line-height: 1.9;
  word-break: break-word;
}
.state-flow b{ color: var(--accent); }

.item-details{ display:flex; flex-wrap:wrap; gap: 1.6rem; font-size: .9rem; color: var(--text-dim); margin-top: 1rem; }
.item-details strong{ color: var(--text); }

.sev{ font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.sev-critical{ color: var(--fail); }
.sev-high{ color: var(--warn); }

@media (max-width: 600px){
  .modal-box{ padding: 1.6rem 1.2rem; }
}


/* ---------- icon polish ---------- */
.eyebrow i, .stats-label i, .tb-item .tag i{ margin-right: .35rem; }
.matrix-head .name i{ color: var(--accent); margin-right: .5rem; }
.stat-row span i, .stat-bar-row span i{ color: var(--accent); margin-right: .4rem; }
.side-menu ul li a i{ color: var(--accent); margin-right: .55rem; font-size: .85em; }
.field label i{ color: var(--accent); margin-right: .35rem; }
.footer h3 i{ color: var(--accent); margin-right: .45rem; }
.footer address i{ color: var(--accent); margin-right: .25rem; width: 1rem; display: inline-block; }
.run-head i, .badge i, .signoff-stamp i, .cert-meta i{ margin-right: .25rem; }
.qa-tabs button i{ margin-right: .35rem; }
.run-link i:first-child{ margin-right: .1rem; }


/* ---------- topbar logo ---------- */
.topbar-logo{ height: 34px; width: auto; display: block; }
@media (max-width: 480px){ .topbar-logo{ height: 26px; } }


/* ---------- inline SVG icons ---------- */
.ico{
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -0.14em;
  margin-right: .38em;
  color: var(--accent);
  flex-shrink: 0;
}
.btn .ico, .run-link .ico{ color: inherit; }
.btn.solid .ico{ color: #06090a; }
.social-btn .ico{ margin: 0; width: 1.15em; height: 1.15em; color: inherit; }
.menu-btn .ico{ margin: 0 0 0 .3em; color: inherit; }
.badge .ico, .signoff-stamp .ico, .cert-meta .status .ico{ width: .95em; height: .95em; }
.quote-mark{ width: 1.5em; height: 1.5em; opacity: .8; }
.scroll-cue i{ font-style: normal; }


/* ---------- hero terminal (replaces stats panel) ---------- */
.hero-terminal{
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.term-bar{
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.term-dots{ display: flex; gap: .35rem; }
.term-dots i{ width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.term-dots i:first-child{ background: rgba(255,92,92,.7); }
.term-dots i:nth-child(2){ background: rgba(255,176,32,.7); }
.term-dots i:last-child{ background: rgba(0,214,190,.7); }
.term-title{ font-size: .66rem; letter-spacing: .06em; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body{
  padding: .9rem 1rem;
  height: 250px;
  overflow: hidden;
  font-size: .74rem;
  line-height: 1.9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.term-body div{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body .ok{ color: var(--accent); }
.term-body .dim{ color: var(--text-dimmer); }
.term-body .warn{ color: var(--warn); }
.term-foot{
  display: flex;
  align-items: center;
  padding: .55rem 1rem;
  border-top: 1px solid var(--border);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--accent);
  background: rgba(0,0,0,0.2);
}
@media (max-width: 991px){
  .hero-terminal{ margin-top: 2.4rem; justify-self: start; max-width: 480px; }
}

/* ---------- certificates: compact strip ---------- */
.cert-strip{ padding-top: 3.2rem !important; padding-bottom: 3.2rem !important; }
.cert-card.compact{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  align-items: center;
  max-width: 760px;
  padding: 1.2rem 1.4rem;
}
.cert-card.compact img{ border-radius: 8px; border: 1px solid var(--border); max-height: 150px; width: 100%; object-fit: cover; }
.cert-card.compact h3{ font-family: var(--display); font-size: 1.25rem; margin: 0 0 .4rem; }
.cert-card.compact p{ color: var(--text-dim); font-size: .9rem; line-height: 1.6; margin: 0 0 .8rem; }
@media (max-width: 640px){
  .cert-card.compact{ grid-template-columns: 1fr; }
  .cert-card.compact img{ max-height: 180px; }
}

/* ---------- smaller imagery ---------- */
.runs-grid{ grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: start; }
.run-thumb{ aspect-ratio: 16/8.5; }
.about-photo{ max-width: 300px; }
.modal-box img.cover{ max-height: 260px; object-fit: cover; }


/* ---------- centered section headers & contact form ---------- */
.panel-section .eyebrow,
.panel-section .section-title,
.panel-section .section-sub{
  text-align: center;
}
.panel-section .section-sub{ margin-left: auto; margin-right: auto; }

.ticket-wrap{ margin-left: auto; margin-right: auto; }

/* content grids centered under the headers */
.runs-grid{ justify-content: center; }
.cert-inline{ display: flex; justify-content: center; }
.matrix{ max-width: 900px; margin: 0 auto; }
.about-grid{ max-width: 1000px; margin: 0 auto; }

/* hero stays left-aligned by design (it has its own layout) */
.hero .eyebrow{ text-align: left; }


/* ---------- square, non-cropping image containers ---------- */
.run-thumb{
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  background: transparent;
}
.run-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* full logo visible, never cropped */
  mix-blend-mode: multiply;   /* knocks out a white/light background baked into the PNG itself */
}
.cert-card.compact img{
  aspect-ratio: 1/1;
  max-height: none;
  height: auto;
  object-fit: contain;
  background: transparent;
  padding: .8rem;
  mix-blend-mode: multiply;
}
.about-photo img{
  aspect-ratio: 1/1;
  object-fit: contain;
  background: rgba(255,255,255,0.02);
}
.modal-box img.cover{
  aspect-ratio: 1/1;
  max-height: 300px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

/* ---------- wider hero terminal ---------- */
.hero-terminal{ max-width: 500px; }
.term-body{ height: 265px; font-size: .76rem; }
@media (max-width: 991px){
  .hero-terminal{ max-width: 560px; }
}


/* ==========================================================================
   FLEX PACK CSS — boot, glitch, reveals, tilt, progress, scrollbar
   ========================================================================== */

/* scroll progress bar */
#scrollProgress{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6df7e4);
  box-shadow: 0 0 12px var(--accent);
  z-index: 500;
  pointer-events: none;
}

/* boot overlay */
#boot{
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #040708;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  transition: opacity .5s, transform .5s;
  cursor: pointer;
}
#boot .boot-inner{
  font-size: .85rem;
  line-height: 2.1;
  color: var(--text-dim);
  min-width: 320px;
}
#boot .boot-inner .ok{ color: var(--accent); }
#boot .boot-inner .dim{ color: var(--text-dimmer); }
#boot .boot-inner div{ animation: bootLine .18s ease both; }
@keyframes bootLine{ from{ opacity:0; transform: translateX(-8px);} to{ opacity:1; transform:none;} }
#boot .boot-skip{
  position: absolute;
  bottom: 2rem;
  font-size: .6rem;
  letter-spacing: .25em;
  color: var(--text-dimmer);
}
#boot.glitch-out{ animation: bootGlitch .34s steps(2) both; }
@keyframes bootGlitch{
  0%{ clip-path: inset(0 0 0 0); transform: none; }
  25%{ clip-path: inset(12% 0 60% 0); transform: translateX(-8px) skewX(4deg); }
  50%{ clip-path: inset(55% 0 8% 0); transform: translateX(9px) skewX(-5deg); }
  75%{ clip-path: inset(30% 0 35% 0); transform: translateX(-5px); }
  100%{ clip-path: inset(0 0 100% 0); transform: none; }
}
#boot.done{ opacity: 0; pointer-events: none; }
body.pre-boot{ overflow: hidden; }
body.pre-boot .hero-content, body.pre-boot .hero-terminal{ opacity: 0; }
.hero-content, .hero-terminal{
  opacity: 1;
  transition: opacity .8s ease .1s, transform .8s ease .1s;
}

/* hero title glitch */
.hero-title{ position: relative; }
.hero-title.glitching{ animation: titleGlitch .42s steps(3) both; }
@keyframes titleGlitch{
  0%{ text-shadow: none; transform: none; }
  20%{ text-shadow: 3px 0 var(--accent), -3px 0 rgba(255,92,92,.8); transform: translateX(2px) skewX(-2deg); clip-path: inset(8% 0 40% 0); }
  40%{ text-shadow: -4px 0 var(--accent), 4px 0 rgba(255,92,92,.8); transform: translateX(-3px); clip-path: inset(50% 0 10% 0); }
  60%{ text-shadow: 2px 0 var(--accent); transform: skewX(3deg); clip-path: none; }
  100%{ text-shadow: none; transform: none; clip-path: none; }
}

/* scroll reveals */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{ opacity: 1; transform: none; }

/* 3D tilt cards */
.tiltable{ transform-style: preserve-3d; will-change: transform; }
.tiltable:hover{ transition: none; }

/* magnetic buttons */
.btn{ will-change: transform; transition: all .2s, transform .25s cubic-bezier(.2,.7,.3,1.4); }

/* teal scrollbar */
::-webkit-scrollbar{ width: 9px; }
::-webkit-scrollbar-track{ background: #070b0c; }
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--accent), #0a5c52);
  border-radius: 5px;
  border: 2px solid #070b0c;
}
::-webkit-scrollbar-thumb:hover{ background: var(--accent); }