/* ============================================================================
   LINXPLOIT — STYLESHEET
   Light theme only (per brief). All colors/fonts derive from the tokens below.
   ============================================================================ */

:root {
  --font-display : 'DM Serif Display', Georgia, serif;
  --font-body    : 'Outfit', sans-serif;
  --font-mono    : 'JetBrains Mono', monospace;

  --bg           : #F5F4F0;
  --bg-2         : #EEECEA;
  --bg-3         : #E5E3DF;
  --bg-card      : #FFFFFF;

  --border       : rgba(0,0,0,0.08);
  --border-h     : rgba(0,0,0,0.18);

  --text         : #1A1A20;
  --text-muted   : #6A6A7A;
  --text-faint   : #B0B0C0;

  --accent       : #9B6F2F;
  --accent-glow  : rgba(155,111,47,0.1);
  --accent-2     : #8B7CF6;

  --nav-bg       : rgba(245,244,240,0.92);

  --success      : #2F9E5B;
  --danger       : #D14343;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(20,20,25,0.04);
  --shadow-2: 0 8px 24px rgba(20,20,25,0.07);
  --shadow-3: 0 20px 48px rgba(20,20,25,0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hard guard against horizontal scroll/page-shift on any viewport.
   Root causes (unclipped hero glow orbs + the off-canvas mobile nav panel)
   are fixed below, but this stays as a safety net so no future absolutely/
   fixed-positioned element can ever push the page wider than the screen. */
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

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

::selection { background: var(--accent-glow); color: var(--text); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }
.container.wide { max-width: 1360px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.badge, .tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); background: var(--accent); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-h);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn:active { transform: translateY(0) scale(0.98); }

/* -------------------- Navbar -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1360px;
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand .mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.brand .brand-name {
  white-space: nowrap;
  line-height: 1;
}
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.main-nav > li { position: relative; }
.main-nav a.nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 0.92rem;
  border-radius: 999px;
  position: relative;
  color: var(--text-muted);
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--text); background: var(--bg-3); }

.has-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s var(--ease);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}
.dropdown a:hover { background: var(--bg-2); color: var(--accent); padding-left: 16px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color .2s ease, background-color .2s ease;
}
.btn-icon:hover { color: var(--accent); background: var(--bg-3); }
.icon-mail { display: none; }

@media (max-width: 1180px) and (min-width: 961px) {
  .main-nav a.nav-link { padding: 10px 10px; font-size: 0.86rem; }
  .main-nav { gap: 0; }
  .nav-cta { gap: 6px; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .icon-mail { display: flex; }
}

/* -------------------- Sections -------------------- */
.section { padding: 88px 0; position: relative; overflow: hidden; }
.section.raised { background: var(--bg-2); }
.section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-foot-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--accent);
}
.section-foot-link .arrow { transition: transform .25s var(--ease); display:inline-block; }
.section-foot-link:hover .arrow { transform: translateX(4px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* Decorative glow orbs */
.glow-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-orb.a { width: 340px; height: 340px; background: var(--accent-glow); top: -80px; right: -60px; }
.glow-orb.b { width: 260px; height: 260px; background: rgba(139,124,246,0.12); bottom: -60px; left: -40px; animation-delay: -6s; }
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .glow-orb { animation: none; } }

/* -------------------- Hero -------------------- */
.hero { padding: 120px 0 80px; position: relative; overflow: hidden; }
.hero-inner { max-width: 780px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.hero h1 .highlight { color: var(--accent); font-style: italic; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
  position: relative; z-index: 1;
}
.kpi-cell { background: var(--bg-card); padding: 26px 20px; text-align: left; }
.kpi-value { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.kpi-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 760px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* -------------------- Trust marquee -------------------- */
.marquee-wrap { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-muted); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 18px; text-align: center; }

/* -------------------- Grids & Cards -------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--border-h); }
.card .icon-badge {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.2rem;
}
.card h3, .card h4 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0; }
.card .card-link { margin-top: 16px; display: inline-block; font-size: 0.85rem; color: var(--accent); font-weight: 500; }

.content-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.content-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); position: relative; }
.content-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.content-card:hover .thumb img { transform: scale(1.06); }
.content-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.content-card .meta { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em;}
.content-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.content-card p.desc { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.content-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-faint); }

.placeholder-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--bg-2), var(--bg-2) 10px, var(--bg-3) 10px, var(--bg-3) 20px);
  color: var(--text-faint); font-family: var(--font-mono); font-size: 0.68rem; text-align: center; padding: 10px;
  border: 1px dashed var(--border-h);
}

.stat-strip { display: flex; align-items: baseline; gap: 10px; }
.stat-strip .stat-value { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); }

/* -------------------- CTA banner -------------------- */
.cta-banner {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--bg); }
.cta-banner p { color: rgba(245,244,240,0.7); max-width: 560px; margin: 0 auto 28px; }
.cta-banner .btn-primary { background: var(--accent); color: var(--text); }
.cta-banner .btn-primary:hover { background: var(--bg); }
.cta-banner .btn-secondary { color: var(--bg); border-color: rgba(245,244,240,0.3); }
.cta-banner .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -------------------- Forms -------------------- */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-h);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
textarea { resize: vertical; min-height: 120px; }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-2); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }

.alert { padding: 16px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 24px; animation: fadeInUp .5s var(--ease); }
.alert-success { background: rgba(47,158,91,0.1); color: var(--success); border: 1px solid rgba(47,158,91,0.25); }
.alert-error { background: rgba(209,67,67,0.08); color: var(--danger); border: 1px solid rgba(209,67,67,0.22); }

/* -------------------- Breadcrumb / Page header -------------------- */
.breadcrumb { display: flex; gap: 8px; font-size: 0.8rem; color: var(--text-faint); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-header { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.page-header .desc { color: var(--text-muted); max-width: 640px; font-size: 1.05rem; }

/* -------------------- Tabs (research) -------------------- */
.tab-row { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border-h); background: transparent; color: var(--text-muted); cursor: pointer;
  transition: all .2s ease;
}
.tab-btn.active, .tab-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.9rem; color: var(--text-muted); transition: color .18s ease, transform .18s ease; }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-faint); flex-wrap: wrap; gap: 12px; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------- Scroll reveal + counters -------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Nav progress bar (route/page load sweep) */
#page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 300; transition: width .4s var(--ease), opacity .3s ease;
}

/* Download / list rows */
.list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--border);
  transition: padding-left .25s ease, background-color .25s ease;
}
.list-row:hover { padding-left: 10px; background: var(--bg-2); }
.list-row:last-child { border-bottom: none; }

/* Misc */
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--border); margin: 48px 0; }
.center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg);
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.spinner { width: 18px; height: 18px; border: 2px solid var(--border-h); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* -------------------- Social icons -------------------- */
.social-icons { display: flex; gap: 10px; margin-top: 16px; }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-h);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .25s var(--ease);
}
.social-icons a:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* -------------------- Event cards -------------------- */
.event-card { display: flex; gap: 20px; align-items: flex-start; }
.event-date-badge {
  flex-shrink: 0; width: 68px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.event-date-badge .month { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; color: var(--accent); letter-spacing: .05em; }
.event-date-badge .day { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }

/* ============================================================================
   MOBILE RESPONSIVENESS — additional fine-tuning pass
   ============================================================================ */
@media (max-width: 760px) {
  .nav-inner { padding: 14px 16px; }
  .brand { font-size: 1.15rem; }
  .brand .mark { width: 26px; height: 26px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-secondary.btn-small { padding: 8px 14px; font-size: 0.82rem; }

  .section { padding: 56px 0; }
  .section.tight { padding: 36px 0; }
  .hero { padding: 72px 0 48px; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }

  .container { padding: 0 18px; }

  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .kpi-value { font-size: 1.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

  .section-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }

  .tab-row { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 0.8rem; }

  .form-row-2 { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }

  .cta-banner { padding: 40px 24px; }
  .cta-ctas { flex-direction: column; }
  .cta-ctas .btn { width: 100%; }

  .list-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .list-row .section-foot-link { align-self: flex-end; }

  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Collapsible link groups — headings become tap targets that reveal
     their links; only active on mobile, desktop keeps everything expanded. */
  .footer-col { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
  .footer-col:first-child { border-bottom: none; padding-bottom: 0; margin-bottom: 20px; }
  .footer-col:last-child { border-bottom: none; }
  .footer-col h4 {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
    padding: 14px 0;
    margin-bottom: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .footer-col h4::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    transition: transform .25s ease;
  }
  .footer-col.open h4::after { content: '−'; }
  .footer-col .footer-links {
    display: none;
    flex-direction: column;
    padding-bottom: 14px;
  }
  .footer-col.open .footer-links { display: flex; }

  .event-card { flex-direction: row; }

  .two-col { gap: 28px; }

  .breadcrumb { font-size: 0.72rem; }
  .page-header { padding: 44px 0 32px; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-secondary.btn-small { display: none; }
}

/* -------------------- Dark theme variant (toggle target) --------------------
   The company site is light-only by brief; this page adds an optional dark
   mode for the toggle button, reusing the exact same --accent/--accent-2/
   --success/--danger hues so both themes still read as the same brand. */
html[data-theme="dark"] {
  --bg           : #14141A;
  --bg-2         : #1B1B22;
  --bg-3         : #24242D;
  --bg-card      : #1E1E26;
  --border       : rgba(255,255,255,0.08);
  --border-h     : rgba(255,255,255,0.16);
  --text         : #EDEDF2;
  --text-muted   : #9C9CA8;
  --text-faint   : #5E5E6B;
  --accent-glow  : rgba(201,168,108,0.14);
  --nav-bg       : rgba(20,20,26,0.85);
  color-scheme: dark;
}
html[data-theme="dark"] .btn-primary { color: var(--bg); }
html[data-theme="dark"] .cta-banner .btn-primary { color: var(--text); }

/* ============================================================================
   PORTFOLIO EXTENSIONS — Hamid / Mindless
   Everything below extends the tokens and component patterns above (same
   --bg/--accent/--font vars, same .card/.btn/.eyebrow/.badge idiom) to cover
   the pieces the multi-page company site doesn't need: a single-page anchor
   nav + mobile menu, a two-column hero with an avatar, skill meters, a
   quote popup, and a floating chat widget.
   ============================================================================ */

/* -------------------- Mobile nav (single-page site needs in-page anchors
   on small screens; the company site's nav simply hides here because its
   footer duplicates every link — this page has no footer nav, so it needs
   a way in on mobile) -------------------- */
.hamburger {
  display: none;
  width: 38px; height: 38px;
  border: none; background: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: min(78vw, 320px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 90px 28px 28px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .hamburger { display: flex; }
}

/* -------------------- Hero: two-column with avatar -------------------- */
.hero-flex { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-flex .hero-inner { max-width: none; }
.avatar-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  background: var(--bg-card);
  box-shadow: var(--shadow-3);
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; }
.avatar-badge {
  position: absolute; top: -16px; left: -16px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.15rem;
  box-shadow: var(--shadow-2);
}
@media (max-width: 980px) {
  .hero-flex { grid-template-columns: 1fr; }
  .avatar-frame { max-width: 320px; margin: 0 auto; }
}

/* -------------------- Skill meters (extends .card) -------------------- */
.skill-meter { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.skill-track { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.skill-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.1s var(--ease); }
.skill-pct { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-faint); width: 34px; text-align: right; }
.skill-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* -------------------- Tag cloud (about section) -------------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* -------------------- Initiative panel -------------------- */
.initiative-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.initiative-left {
  padding: 44px 36px;
  background: var(--accent-glow);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.initiative-logo {
  width: 68px; height: 68px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 18px;
}
.initiative-logo img { width: 100%; height: 100%; object-fit: cover; }
.initiative-logo-fallback { display: none; color: var(--accent); font-size: 1.7rem; }
.initiative-name { font-family: var(--font-mono); font-size: 1.2rem; letter-spacing: .04em; }
.initiative-domain { color: var(--accent); font-family: var(--font-mono); font-size: .82rem; margin-top: 6px; }
.initiative-founded { color: var(--text-faint); font-size: .78rem; margin-top: 10px; }
.initiative-right { padding: 44px; }
.initiative-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.if-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text-muted); padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.if-item svg, .if-item i { color: var(--accent); }
@media (max-width: 900px) {
  .initiative-panel { grid-template-columns: 1fr; }
  .initiative-left { border-right: none; border-bottom: 1px solid var(--border); }
  .initiative-features { grid-template-columns: 1fr; }
}

/* -------------------- Project card tag badge (extends .content-card) -------------------- */
.content-card .thumb .tag-float {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 999px;
  background: var(--accent); color: var(--bg-card);
}
.content-card .thumb .tag-float.alt { background: var(--accent-2); }

/* -------------------- Contact cards (extends .card) -------------------- */
.contact-card { display: flex; align-items: center; gap: 14px; text-align: left; }
.contact-card .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-card .cc-arrow { margin-left: auto; color: var(--text-faint); font-size: .8rem; }

/* -------------------- Quote popup -------------------- */
.quote-fab {
  position: fixed; bottom: 26px; left: 26px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-h);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; cursor: pointer; z-index: 250;
  box-shadow: var(--shadow-2);
  transition: transform .25s var(--ease), border-color .25s ease;
}
.quote-fab:hover { transform: translateY(-3px); border-color: var(--accent); }

.quote-overlay {
  position: fixed; inset: 0; background: rgba(20,20,25,.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 900;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  padding: 24px;
}
.quote-overlay.open { opacity: 1; visibility: visible; }
.quote-box {
  position: relative; max-width: 420px; width: 100%;
  background: var(--bg-card); border: 1px solid var(--border-h);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  padding: 44px 32px 32px; text-align: center;
  transform: translateY(14px); transition: transform .3s ease;
}
.quote-overlay.open .quote-box { transform: translateY(0); }
.quote-mark { font-family: var(--font-display); font-size: 3.2rem; color: var(--accent); line-height: 1; }
.quote-box p { font-size: 1.05rem; font-style: italic; margin: 6px 0 14px; }
.quote-box .author { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; }
.quote-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-h); background: transparent; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
.quote-close:hover { color: var(--accent); border-color: var(--accent); }

/* -------------------- Chat launcher + panel -------------------- */
.chat-fab {
  position: fixed; bottom: 26px; right: 26px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-h);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 250; box-shadow: var(--shadow-3);
  transition: transform .25s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.03); }
.chat-fab svg { width: 30px; height: 36px; }
.chat-fab-pulse {
  position: absolute; top: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--bg-card);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.chat-panel {
  position: fixed; bottom: 96px; right: 26px;
  width: min(360px, calc(100vw - 40px));
  height: min(480px, calc(100vh - 160px));
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  z-index: 260; display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98);
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.chat-panel-left { display: flex; align-items: center; gap: 12px; }
.chat-panel-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-glow); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.chat-panel-name { font-size: .92rem; font-weight: 500; }
.chat-panel-status { font-size: .7rem; color: var(--text-faint); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-panel-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.chat-panel-close { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-h); background: transparent; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.chat-panel-close:hover { color: var(--accent); border-color: var(--accent); }

.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.ai { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-bubble { padding: 11px 14px; border-radius: var(--radius-md); font-size: .86rem; line-height: 1.5; }
.chat-msg.ai .chat-bubble { background: var(--bg-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--accent-glow); border: 1px solid var(--border-h); border-bottom-right-radius: 4px; }
.chat-time { font-size: .64rem; color: var(--text-faint); margin-top: 4px; font-family: var(--font-mono); }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.chat-suggestion { font-size: .74rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-h); background: transparent; color: var(--text-muted); transition: border-color .2s ease, color .2s ease; cursor: pointer; }
.chat-suggestion:hover { border-color: var(--accent); color: var(--accent); }

.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.chat-input { flex: 1; background: var(--bg-card); border: 1px solid var(--border-h); border-radius: 999px; padding: 10px 16px; font-family: var(--font-body); font-size: .86rem; color: var(--text); }
.chat-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--accent); color: var(--bg-card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }

@media (max-width: 760px) {
  .chat-panel { right: 12px; bottom: 90px; }
  .chat-fab { right: 16px; }
  .quote-fab { left: 16px; }
}
