/* Hafiz Muhammad Talha — portfolio
   Dark "scan room" bands (header, hero, contact) frame light reading sections. */

:root {
  --scan: #070c0f;
  --scan-2: #0c1418;
  --scan-3: #15222a;
  --scan-line: #1f2f37;
  --on-scan: #e7eff1;
  --on-scan-2: #a3b5bb;

  --teal-bright: #3fd6c6;
  --teal: #0a6a64;
  --teal-tint: #e2f1ef;
  --teal-edge: #b5d9d4;

  --paper: #f4f6f5;
  --paper-2: #eaefed;
  --card: #ffffff;
  --line: #d5dedb;
  --ink: #0d1b1e;
  --ink-2: #44565a;

  --caliper: #f5cf4f;

  --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --gut: clamp(16px, 4vw, 32px);
  --wrap: 1160px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }
.sec :focus-visible { outline-color: var(--teal); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.display {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.04;
  text-wrap: balance;
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--f-body); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--teal-bright); color: #03231f; }
.btn-primary:hover { background: #74e6da; }
.btn-line { border-color: #33474f; color: var(--on-scan); }
.btn-line:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--scan); color: var(--on-scan);
  border-bottom: 1px solid var(--scan-line);
}
.header-in { position: relative; display: flex; align-items: center; gap: 20px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 1.0625rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .01em;
}
.brand-mark { width: auto; height: 30px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  font-size: .9375rem; color: var(--on-scan-2);
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a[aria-current] { color: var(--on-scan); background: var(--scan-3); }
.nav .nav-cv { display: none; }
.header-cv svg { width: 16px; height: 16px; }
.nav-toggle { display: none; }

@media (max-width: 1099px) {
  .header-cv { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 40px; padding: 0 14px; border-radius: 999px;
    background: transparent; color: var(--on-scan);
    border: 1px solid #33474f; font: 500 .9375rem/1 var(--f-body); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -5px; }
  .bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--scan); border-bottom: 1px solid var(--scan-line);
    padding: 8px var(--gut) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--scan-line); font-size: 1.0625rem; }
  .nav a:hover, .nav a[aria-current] { background: transparent; color: var(--teal-bright); }
  .nav .nav-cv { display: block; border-bottom: 0; color: var(--teal-bright); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(63, 214, 198, .09), transparent 70%),
    var(--scan);
  color: var(--on-scan);
  padding-top: clamp(40px, 7vw, 88px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--teal-bright); box-shadow: 0 0 0 4px rgba(63, 214, 198, .14);
}
.hero-id .eyebrow { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-bright);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--teal-bright); opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.hero h1 { font-size: clamp(2.25rem, 8.4vw, 3.6rem); font-stretch: 106%; margin-bottom: 20px; }
.hero h1 span { display: block; color: var(--teal-bright); }
.hero-role {
  font: 500 clamp(1.125rem, 2.1vw, 1.3125rem)/1.35 var(--f-display); font-stretch: 104%;
  margin-bottom: 16px;
}
.hero-lead { color: var(--on-scan-2); max-width: 54ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.brands { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.brands::before { content: "Representing"; margin-right: 6px; font-size: .6875rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-scan-2); }
.brands li {
  padding: 5px 12px; border-radius: 6px; border: 1px solid #2b3e46;
  font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-scan);
}

/* console */
.console {
  margin: 0; padding: 12px;
  background: linear-gradient(#0d161b, #080f13);
  border: 1px solid var(--scan-line); border-radius: 18px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.console-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 2px 4px 10px;
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-scan-2);
}
.console-bar b { color: var(--teal-bright); font-weight: 500; }
.bmode { position: relative; aspect-ratio: 300 / 228; background: #000; border-radius: 10px; overflow: hidden; }
.bmode canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tag { position: absolute; font: 500 .625rem/1 var(--f-mono); letter-spacing: .04em; color: #b9c9ce; }
.tag-tl { top: 10px; left: 10px; }
.tag-bl { bottom: 10px; left: 10px; color: var(--caliper); }
.tag-br { bottom: 10px; right: 10px; }
.cbar {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: 500 .5625rem/1 var(--f-mono); color: #b9c9ce;
}
.cbar i { font-style: normal; }
.cbar b {
  width: 6px; height: 54px; border-radius: 2px;
  background: linear-gradient(#ffe066, #ff3b30 26%, #3d070b 49%, #061230 51%, #2f6bff 76%, #84e4ff);
}
.spec {
  display: grid; grid-template-columns: minmax(0, 1fr) 30px;
  height: 104px; margin-top: 8px;
  background: #030608; border-radius: 10px; overflow: hidden;
}
.spec canvas { width: 100%; height: 100%; }
.spec-scale { position: relative; font-size: .5625rem; color: #9fb2b8; border-left: 1px solid #13212a; }
.spec-scale span { position: absolute; right: 6px; transform: translateY(-50%); }
.console-foot {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 4px 2px;
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-scan-2);
}
.console-foot b { color: var(--on-scan); font-weight: 500; }
.console-foot .hr { margin-left: auto; color: #7ee0a8; }
.console-foot .hr b { color: #7ee0a8; }

/* stats */
.stats {
  list-style: none; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--scan-line);
}
.stat { padding: 28px 24px 40px; border-left: 1px solid var(--scan-line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-n {
  font: 700 clamp(2.25rem, 4.2vw, 3rem)/1 var(--f-display); font-stretch: 115%;
  color: var(--on-scan);
}
.stat-n small { font-size: .42em; font-stretch: 100%; color: var(--teal-bright); margin-left: 6px; letter-spacing: .02em; }
.stat-l { margin-top: 10px; color: var(--on-scan-2); font-size: .9375rem; line-height: 1.45; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 120px); }
.sec-alt { background: var(--paper-2); }
.sec-head { display: grid; gap: 14px; max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-idx { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); font-weight: 500; }
.sec-head h2 { font-size: clamp(1.875rem, 4.4vw, 3rem); }
.sub {
  font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-2); margin-bottom: 14px;
}

/* profile */
.profile { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.profile-media { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--scan); aspect-ratio: 4 / 5; }
.profile-media img { width: 100%; height: 100%; object-fit: cover; }
.profile-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(4, 9, 12, .85));
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: #d4e1e4;
}
.profile-text p + p { margin-top: 18px; }
.profile-text p { color: var(--ink-2); max-width: 62ch; }
.profile-text .lead { font: 500 clamp(1.1875rem, 2vw, 1.375rem)/1.5 var(--f-body); color: var(--ink); }
.glance {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px;
  margin: 32px 0 0; padding-top: 6px; border-top: 1px solid var(--line);
}
.glance div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.glance dt { font: 500 .6875rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.glance dd { margin: 2px 0 0; font-weight: 500; }

/* services */
.banner {
  position: relative; margin: 0 0 16px; border-radius: 20px; overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--scan);
}
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.banner figcaption {
  position: absolute; left: 20px; bottom: 20px; max-width: 380px;
  padding: 18px 20px; border-radius: 14px;
  background: rgba(7, 12, 15, .82); color: var(--on-scan);
  font-size: .9375rem; line-height: 1.5;
}
.banner figcaption .mono {
  display: block; margin-bottom: 6px;
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-bright);
}
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--teal-edge); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.card-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-n { font-size: .75rem; color: var(--ink-2); }
.card h3 { font: 650 1.25rem/1.25 var(--f-display); font-stretch: 106%; }
.card p { color: var(--ink-2); font-size: 1rem; }

/* field work — dark band */
.field { background: var(--scan); color: var(--on-scan); padding-block: clamp(72px, 10vw, 120px); }
.field .sec-idx { color: var(--teal-bright); }
.field .sec-head p:not(.sec-idx) { color: var(--on-scan-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #2b3e46; background: transparent; color: var(--on-scan);
  font: 500 .9375rem/1 var(--f-body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.chip span { font: 500 .75rem/1 var(--f-mono); color: var(--on-scan-2); }
.chip:hover { border-color: var(--teal-bright); }
.chip[aria-pressed="true"] { background: var(--teal-bright); border-color: var(--teal-bright); color: #03231f; }
.chip[aria-pressed="true"] span { color: #03231f; }
.logs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.log {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  background: var(--scan-2); border: 1px solid var(--scan-line); border-radius: var(--r);
}
.log[hidden] { display: none; }
.log-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.log-tags span { padding: 3px 9px; border-radius: 6px; font-size: .6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 255, 255, .05); }
.t-install { color: var(--teal-bright); }
.t-demo { color: #9dbcff; }
.t-train { color: #ffc977; }
.t-event { color: #c9b2ff; }
.log h3 { font: 650 1.25rem/1.25 var(--f-display); font-stretch: 106%; }
.log-where { font-size: .9375rem; font-weight: 500; color: var(--teal-bright); }
.log p:last-child { color: var(--on-scan-2); font-size: .9688rem; line-height: 1.6; }
.log { overflow: hidden; }
.log-img {
  display: block; width: calc(100% + 48px); max-width: none; height: auto; margin: -24px -24px 10px;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; background: var(--scan-3);
}
.gallery-wrap { margin-top: clamp(48px, 6vw, 72px); }
.field .sub { color: var(--on-scan-2); }
.gallery { list-style: none; columns: 3 280px; column-gap: 14px; }
.gallery li { break-inside: avoid; margin-bottom: 14px; }
.g-item {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--scan-3); cursor: zoom-in;
}
.g-item img { width: 100%; height: auto; transition: transform .35s ease; }
.g-item:hover img { transform: scale(1.03); }
.gallery p { margin-top: 8px; font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-scan-2); }

.lightbox {
  width: min(1100px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0;
  background: transparent; color: var(--on-scan); overflow: visible;
}
.lightbox::backdrop { background: rgba(3, 6, 8, .92); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lb-img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 10px; }
.lightbox figcaption { text-align: center; font-size: .9375rem; color: var(--on-scan); padding-inline: 56px; }
.lb-count { margin-left: 8px; font-size: .75rem; color: var(--on-scan-2); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #33474f; background: rgba(12, 20, 24, .9); color: var(--on-scan); cursor: pointer;
}
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.lb-prev { left: 6px; top: 40%; }
.lb-next { right: 6px; top: 40%; }
.lb-close { right: 6px; top: -54px; }

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 56px); }
.quote { margin: 0; padding: 28px; border-radius: var(--r); border: 1px solid var(--scan-line); background: linear-gradient(140deg, rgba(63, 214, 198, .08), transparent 60%); }
.quote blockquote { margin: 0 0 16px; font: 500 clamp(1.0625rem, 1.6vw, 1.25rem)/1.5 var(--f-body); color: var(--on-scan); }
.quote figcaption { font-size: .75rem; line-height: 1.6; letter-spacing: .04em; color: var(--on-scan-2); }

/* expertise — console preset keys */
.groups { display: grid; gap: 22px; }
.group {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 24px; align-items: start;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.group h3 { font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); padding-top: 14px; }
.keys { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.key {
  position: relative; padding: 14px 18px 16px;
  background: linear-gradient(#17242b, #0c1418);
  border: 1px solid #22343c; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 3px 0 #04080a;
}
.key::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-bright); box-shadow: 0 0 8px rgba(63, 214, 198, .8);
}
.key b { display: block; font: 500 1rem/1.2 var(--f-mono); letter-spacing: .06em; color: var(--teal-bright); }
.key span { display: block; margin-top: 6px; font-size: .9375rem; line-height: 1.35; color: var(--on-scan-2); }
.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.audience + .audience { margin-top: 20px; }
.audience p { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); font-weight: 500; }
.audience ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.audience li { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9375rem; font-weight: 500; }

/* experience */
.timeline { list-style: none; }
.job { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: clamp(16px, 4vw, 48px); }
.job-when { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-top: 4px; }
.job-body { position: relative; padding: 0 0 44px 32px; border-left: 1px solid var(--line); }
.job:last-child .job-body { padding-bottom: 0; }
.job-body::before {
  content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--teal);
}
.job.current .job-body::before { background: var(--teal); box-shadow: 0 0 0 5px rgba(10, 106, 100, .15); }
.job h3 { font: 650 clamp(1.25rem, 2.4vw, 1.5rem)/1.25 var(--f-display); font-stretch: 106%; }
.job-org { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 16px; color: var(--teal); font-weight: 600; }
.job-meta { margin: -8px 0 14px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.highlight a { color: var(--teal); font-weight: 600; }
.sub-gap { margin-top: 36px; }
.conf-ex { border-color: var(--teal-edge); background: var(--teal-tint); }
.contact-list .v small { font-size: .8125rem; color: var(--on-scan-2); }
.now { padding: 3px 9px; border-radius: 999px; background: var(--teal); color: #fff; font-size: .6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.job ul { padding-left: 1.1em; color: var(--ink-2); max-width: 70ch; }
.job li + li { margin-top: 8px; }
.job li::marker { color: var(--teal); }
.highlight { margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: var(--teal-tint); border: 1px solid var(--teal-edge); max-width: 70ch; }
.highlight .mono { font-size: .6875rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); font-weight: 500; margin-bottom: 6px; }

/* education */
.edu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.edu-list { list-style: none; }
.edu-list li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.edu-list strong { font: 650 1.125rem/1.3 var(--f-display); font-stretch: 104%; }
.edu-list span { color: var(--ink-2); }
.edu-list .yr { font-size: .8125rem; color: var(--teal); }
.confs-wrap { margin-top: clamp(48px, 6vw, 72px); }
.confs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.conf { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.conf b { display: block; font: 700 1.375rem/1.15 var(--f-display); font-stretch: 115%; }
.conf span { display: block; margin-top: 6px; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }

/* contact */
.contact { background: var(--scan); color: var(--on-scan); padding-block: clamp(72px, 10vw, 120px); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: end; }
.contact .sec-idx { color: var(--teal-bright); margin-bottom: 14px; }
.contact h2 { font-size: clamp(2.75rem, 8vw, 5.25rem); }
.contact-lead { color: var(--on-scan-2); max-width: 44ch; margin: 18px 0 28px; }
.contact-list { list-style: none; border-top: 1px solid var(--scan-line); }
.contact-list a, .contact-list div {
  display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr) 20px; gap: 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--scan-line); text-decoration: none;
}
.contact-list .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-scan-2); }
.contact-list .v { font-size: 1.125rem; overflow-wrap: anywhere; transition: color .2s; }
.contact-list .arr { width: 20px; height: 20px; fill: none; stroke: var(--teal-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.contact-list a:hover .v { color: var(--teal-bright); }
.contact-list a:hover .arr { transform: translate(2px, -2px); }

.site-footer { background: var(--scan); color: var(--on-scan-2); font-size: .875rem; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--scan-line); }
.footer-in a { text-decoration: none; }
.footer-in a:hover { color: var(--teal-bright); }

/* ---------- responsive ---------- */
@media (max-width: 959px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .console { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--scan-line); }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile-media { aspect-ratio: 16 / 10; }
  .profile-media img { object-position: 50% 45%; }
  .banner { aspect-ratio: 16 / 9; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .log, .quote { padding: 22px; }
  .log-img { width: calc(100% + 44px); margin: -22px -22px 10px; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery li { margin-bottom: 10px; }
  .lb-prev, .lb-next { top: auto; bottom: -58px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lightbox figcaption { padding-inline: 0; }
  .banner { aspect-ratio: auto; background: var(--scan); }
  .banner img { aspect-ratio: 4 / 3; height: auto; object-position: 62% 40%; }
  .banner figcaption { position: static; max-width: none; border-radius: 0; background: var(--scan); }
  .profile-media { aspect-ratio: 4 / 3; }
  .glance { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .group h3 { padding-top: 0; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .job-when { padding: 0 0 6px 32px; border-left: 1px solid var(--line); }
  .job:first-child .job-when { border-left-color: transparent; }
  .edu { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .stat { padding: 22px 16px 28px; }
  .stat-l { font-size: .875rem; }
  .contact-list a, .contact-list div { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; }
  .contact-list .k { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .console-bar span:nth-child(3) { display: none; }
}
@media (max-width: 380px) {
  .console { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
  .card, .card:hover { transform: none; }
}
