/*==================================================================
  Danang Avan Maulana — Portfolio
  Cybersecurity dark theme · teal accent · monospace system
==================================================================*/

/*---------------------------------------------------------------
  Design tokens
---------------------------------------------------------------*/
:root {
  /* base surfaces */
  --bg:          #0a0e14;
  --bg-2:        #0d1218;
  --surface:     #10161f;
  --surface-2:   #141b26;
  --elevated:    #172130;

  /* borders */
  --border:      #1e2a3a;
  --border-soft: #182231;

  /* text */
  --text:        #e6edf3;
  --text-muted:  #9fb0c3;
  --text-dim:    #647184;

  /* accents */
  --accent:      #5eead4;   /* teal */
  --accent-2:    #38bdf8;   /* sky   */
  --accent-3:    #a78bfa;   /* violet */
  --danger:      #f87171;
  --warn:        #fbbf24;
  --ok:          #4ade80;

  --accent-glow: rgba(94, 234, 212, 0.14);

  /* type */
  --ff-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  /* layout */
  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/*---------------------------------------------------------------
  Reset
---------------------------------------------------------------*/
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

/* Ambient background grid + glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(800px 600px at 10% 8%, rgba(94, 234, 212, 0.08), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 80%);
}

/*---------------------------------------------------------------
  Layout helpers
---------------------------------------------------------------*/
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; scroll-margin-top: 80px; }
.section:not(:last-child) { border-bottom: 1px solid var(--border-soft); }

.section-head { margin-bottom: 48px; }
.section-kicker {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub { color: var(--text-muted); margin-top: 12px; max-width: 62ch; }

.mono { font-family: var(--ff-mono); }
.accent { color: var(--accent); }

/*---------------------------------------------------------------
  Header / nav
---------------------------------------------------------------*/
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--ff-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .prompt { color: var(--accent); }
.brand .caret {
  width: 9px; height: 17px;
  background: var(--accent);
  display: inline-block;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { to { opacity: 0; } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-glow); }

.nav-toggle { display: none; font-size: 22px; color: var(--text); padding: 6px; }

/*---------------------------------------------------------------
  Hero
---------------------------------------------------------------*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 10px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role {
  font-family: var(--ff-mono);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--accent);
  margin-bottom: 22px;
}
.hero-role .sep { color: var(--text-dim); }
.hero-desc { color: var(--text-muted); max-width: 54ch; margin-bottom: 32px; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn ion-icon { font-size: 17px; }
.btn-primary {
  background: var(--accent);
  color: #04121a;
  box-shadow: 0 10px 30px -12px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--accent); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.hero-socials { display: flex; gap: 12px; margin-top: 30px; }
.hero-socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 19px;
  transition: 0.2s var(--ease);
}
.hero-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* Terminal card */
.terminal {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--ff-mono);
  font-size: 13.5px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.terminal-bar .tb { width: 12px; height: 12px; border-radius: 50%; }
.tb.r { background: #ff5f56; } .tb.y { background: #ffbd2e; } .tb.g { background: #27c93f; }
.terminal-bar .tt { margin-left: 10px; color: var(--text-dim); font-size: 12px; }
.terminal-body { padding: 20px 20px 24px; line-height: 1.9; }
.terminal-body .ln { white-space: pre-wrap; word-break: break-word; }
.terminal-body .cmd::before { content: "$ "; color: var(--accent); }
.terminal-body .cmd { color: var(--text); }
.terminal-body .out { color: var(--text-muted); }
.terminal-body .out .k { color: var(--accent-2); }
.terminal-body .out .s { color: var(--ok); }
.terminal-body .comment { color: var(--text-dim); }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.15s steps(2, start) infinite;
}

/*---------------------------------------------------------------
  Stats strip
---------------------------------------------------------------*/
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  transition: 0.25s var(--ease);
}
.stat:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat .num {
  font-family: var(--ff-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat .lbl { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/*---------------------------------------------------------------
  About
---------------------------------------------------------------*/
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.about-photo img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; filter: grayscale(0.15) contrast(1.02); }
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,14,20,0.6));
}
.about-photo .tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--ff-mono); font-size: 11.5px;
  color: var(--accent);
  background: rgba(10,14,20,0.7);
  border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 7px;
}
.about-body p { color: var(--text-muted); margin-bottom: 18px; }
.about-body p strong { color: var(--text); font-weight: 600; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 26px; }
.about-facts li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 0.92rem;
}
.about-facts .fk { font-family: var(--ff-mono); color: var(--accent); font-size: 12.5px; min-width: 82px; }
.about-facts .fv { color: var(--text-muted); }

/*---------------------------------------------------------------
  Expertise cards
---------------------------------------------------------------*/
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.card:hover { border-color: var(--border); transform: translateY(-4px); background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 23px;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

/* skill bars */
.skills { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px; }
.skill .skill-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; }
.skill .skill-top .pct { font-family: var(--ff-mono); color: var(--accent); font-size: 0.82rem; }
.skill-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border-soft); }
.skill-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  transition: width 1.1s var(--ease);
}

/* toolbox tags */
.toolbox-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700;
  margin-top: 44px;
}
.toolbox-head ion-icon { color: var(--accent); font-size: 20px; }
.toolbox { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip-more { color: var(--text-dim); font-style: italic; border-style: dashed; }
.chip-more:hover { color: var(--text-muted); border-color: var(--border); }
.chip {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 13px;
  border-radius: 8px;
  transition: 0.2s;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }

/*---------------------------------------------------------------
  Timeline (experience / education)
---------------------------------------------------------------*/
.tl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.tl-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
  font-size: 1.15rem; font-weight: 700;
}
.tl-head ion-icon { color: var(--accent); font-size: 22px; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-item .tl-date {
  font-family: var(--ff-mono); font-size: 12px; color: var(--accent);
  margin-bottom: 5px;
}
.tl-item h4 { font-size: 1.02rem; margin-bottom: 2px; }
.tl-item .tl-org { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.tl-item p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/*---------------------------------------------------------------
  CVE / research
---------------------------------------------------------------*/
.cve-list { display: grid; gap: 14px; }
.cve {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: 0.22s var(--ease);
}
.cve:hover { transform: translateX(4px); background: var(--surface-2); }
.cve .cve-id { font-family: var(--ff-mono); font-size: 0.95rem; color: var(--text); font-weight: 600; }
.cve .cve-desc { color: var(--text-muted); font-size: 0.92rem; }
.cve .cve-desc b { color: var(--text); font-weight: 600; }
.cve .cve-type {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.35);
  background: rgba(248,113,113,0.08);
  padding: 4px 10px; border-radius: 7px;
  white-space: nowrap;
}

.book-feature {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 30px;
}
.book-feature .bk {
  width: 92px; aspect-ratio: 3/4;
  border-radius: 8px; object-fit: cover;
  background: var(--elevated);
  border: 1px solid var(--border);
}
.book-feature .tag {
  font-family: var(--ff-mono); font-size: 11.5px; color: var(--accent-3);
  border: 1px solid rgba(167,139,250,0.3); background: rgba(167,139,250,0.08);
  padding: 4px 10px; border-radius: 7px; display: inline-block; margin-bottom: 10px;
}
.book-feature h3 { font-size: 1.25rem; margin-bottom: 6px; }
.book-feature p { color: var(--text-muted); font-size: 0.94rem; }

/*---------------------------------------------------------------
  Projects
---------------------------------------------------------------*/
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-btn {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 8px;
  transition: 0.2s;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.28s var(--ease);
  display: flex; flex-direction: column;
}
.project.hide { display: none; }
.project:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: var(--shadow); }
.project .thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.project .thumb img.contain { object-fit: contain; padding: 26px; }
.project:hover .thumb img { transform: scale(1.05); }
.project .thumb .ov {
  position: absolute; inset: 0;
  background: rgba(10,14,20,0.72);
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.25s;
  color: var(--accent); font-size: 26px;
}
.project:hover .thumb .ov { opacity: 1; }
.project .p-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project .p-cat { font-family: var(--ff-mono); font-size: 11.5px; color: var(--accent); }
.project h3 { font-size: 1.05rem; }
.project .p-desc { color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }

/*---------------------------------------------------------------
  Certifications
---------------------------------------------------------------*/
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cert {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: 0.2s var(--ease);
}
.cert:hover { border-color: var(--accent); background: var(--surface-2); }
.cert ion-icon { color: var(--accent); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.cert .c-name { font-size: 0.92rem; font-weight: 500; line-height: 1.35; }
.cert .c-iss { font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }

/*---------------------------------------------------------------
  Recognition (speaking + VDP)
---------------------------------------------------------------*/
.rec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.rec-block h3 {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.12rem; margin-bottom: 22px;
}
.rec-block h3 ion-icon { color: var(--accent); font-size: 21px; }

.disc-line {
  color: var(--text-muted); font-size: 0.92rem;
  border-left: 3px solid var(--border);
  padding: 4px 0 4px 16px;
  margin: 0 0 40px;
  max-width: 78ch;
}
.disc-line strong { color: var(--accent); font-family: var(--ff-mono); }

.speak-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.speak {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.speak .s-role { font-family: var(--ff-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.speak .s-title { font-size: 0.94rem; margin-top: 4px; }
.speak.hl { grid-column: 1 / -1; border-color: var(--accent); background: linear-gradient(120deg, var(--accent-glow), var(--surface)); }

.vdp-scroll {
  max-height: 460px; overflow-y: auto;
  display: grid; gap: 8px;
  padding-right: 8px;
}
.vdp {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 15px;
  font-size: 0.88rem;
}
.vdp .v-org { color: var(--text); }
.vdp .v-type { font-family: var(--ff-mono); font-size: 11px; color: var(--text-dim); white-space: nowrap; text-align: right; }
.vdp-scroll::-webkit-scrollbar { width: 8px; }
.vdp-scroll::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 8px; }
.vdp-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.vdp-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/*---------------------------------------------------------------
  Hall of Fame
---------------------------------------------------------------*/
.hof-head {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.12rem; font-weight: 700;
  margin-bottom: 20px;
}
.hof-head ion-icon { color: var(--warn); font-size: 22px; }
.hof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 52px; }
.hof {
  background: linear-gradient(150deg, rgba(251,191,36,0.06), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: 0.25s var(--ease);
}
.hof:hover { transform: translateY(-4px); border-color: var(--warn); box-shadow: var(--shadow); }
.hof-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hof-top ion-icon { color: var(--text-dim); font-size: 17px; transition: color 0.2s; }
.hof:hover .hof-top ion-icon { color: var(--warn); }
.hof-year {
  font-family: var(--ff-mono); font-size: 12px; color: var(--warn);
  border: 1px solid rgba(251,191,36,0.35); background: rgba(251,191,36,0.08);
  padding: 3px 10px; border-radius: 999px;
}
.hof h4 { font-size: 1.1rem; margin-bottom: 6px; }
.hof p { color: var(--text-muted); font-size: 0.88rem; }
.rec-note { color: var(--text-dim); font-size: 0.85rem; margin: -14px 0 20px; }

/* aggregated disclosure view (anonymised) */
.disc-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.disc-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 12px; text-align: center;
}
.disc-stat .num { font-family: var(--ff-mono); font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.disc-stat .lbl { color: var(--text-dim); font-size: 0.76rem; margin-top: 3px; }

.sector-list { display: grid; gap: 12px; }
.sector {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 15px 18px;
  transition: 0.22s var(--ease);
}
.sector:hover { background: var(--surface-2); transform: translateX(4px); }
.sector-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.sector-name { font-size: 0.95rem; font-weight: 600; }
.sector-count {
  font-family: var(--ff-mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--border); background: var(--accent-glow);
  min-width: 30px; text-align: center; padding: 3px 9px; border-radius: 999px;
}
.sector-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sector-tags span {
  font-family: var(--ff-mono); font-size: 11px; color: var(--text-muted);
  border: 1px solid var(--border); background: var(--bg-2);
  padding: 4px 10px; border-radius: 7px;
}

/*---------------------------------------------------------------
  Press / media coverage cards
---------------------------------------------------------------*/
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.press {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: 0.26s var(--ease);
  position: relative; overflow: hidden;
}
.press::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.press:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.press:hover::before { transform: scaleX(1); }
.press-top { display: flex; align-items: center; justify-content: space-between; }
.press-src {
  font-family: var(--ff-mono); font-size: 13px; font-weight: 600; color: var(--accent);
}
.press-top ion-icon { color: var(--text-dim); font-size: 16px; }
.press h3 { font-size: 1.02rem; line-height: 1.4; }
.press p { color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.press-date { font-size: 11.5px; color: var(--text-dim); }

/* video feature cards */
.press-video { padding: 0; gap: 0; }
.press-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border); }
.press-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.press-video:hover .press-thumb img { transform: scale(1.05); }
.press-thumb .play {
  position: absolute; inset: 0; margin: auto;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: rgba(10, 14, 20, 0.62); backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%; color: #fff; font-size: 22px;
  transition: 0.2s var(--ease);
}
.press-video:hover .press-thumb .play { background: var(--accent); color: #04121a; border-color: var(--accent); transform: scale(1.08); }
.press-vbody { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.press-vbody .press-top ion-icon { color: #ff0000; }

/*---------------------------------------------------------------
  Blog loader
---------------------------------------------------------------*/
.blog-loading {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 48px 0; color: var(--text-dim); font-size: 0.9rem;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.blog-error { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 32px 0; }

/*---------------------------------------------------------------
  Media + Blog cards
---------------------------------------------------------------*/
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: 0.26s var(--ease);
}
.post:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow); }
.post .p-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.post .p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.post:hover .p-thumb img { transform: scale(1.06); }
.post .p-in { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post .p-meta { display: flex; align-items: center; gap: 9px; font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim); }
.post .p-meta .src { color: var(--accent); }
.post .p-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }
.post h3 { font-size: 1rem; line-height: 1.4; }
.post .p-ex { color: var(--text-muted); font-size: 0.86rem; margin-top: auto; }
.center { text-align: center; margin-top: 40px; }

/*---------------------------------------------------------------
  Contact
---------------------------------------------------------------*/
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info p { color: var(--text-muted); margin-bottom: 26px; }
.contact-list { display: grid; gap: 12px; }
.contact-list a, .contact-list li > div {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: 0.2s var(--ease);
}
.contact-list a:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-list .ci {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--accent-glow);
  color: var(--accent); font-size: 19px;
}
.contact-list .ck { font-family: var(--ff-mono); font-size: 11.5px; color: var(--text-dim); }
.contact-list .cv { color: var(--text); font-size: 0.92rem; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  width: 100%;
  font: inherit; font-size: 0.94rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-dim); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn-primary { justify-self: start; border: none; }

/*---------------------------------------------------------------
  Footer
---------------------------------------------------------------*/
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-in p { font-family: var(--ff-mono); font-size: 12.5px; color: var(--text-dim); }
.footer-in .footer-socials { display: flex; gap: 10px; }
.footer-in .footer-socials a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-muted); font-size: 17px; transition: 0.2s;
}
.footer-in .footer-socials a:hover { color: var(--accent); border-color: var(--accent); }

/*---------------------------------------------------------------
  Reveal animation
---------------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/*---------------------------------------------------------------
  Responsive
---------------------------------------------------------------*/
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; margin-inline: auto; }
  .tl-cols { grid-template-columns: 1fr; gap: 44px; }
  .rec-cols { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects, .posts, .press-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .hof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  /* centered hero intro on phones */
  .hero-grid > .reveal:first-child { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; gap: 2px;
  }
  .nav-links.open a { padding: 12px 6px; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .projects, .posts, .press-grid, .cert-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .speak-list { grid-template-columns: 1fr; }
  .cve { grid-template-columns: 1fr; gap: 8px; }
  .cve .cve-type { justify-self: start; }
  .book-feature { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
