/* ===========================================================================
   mstringer.info — personal site
   Aesthetic: deep navy, cyan/teal accents, mono accents, terminal motifs
   =========================================================================== */

:root {
  --bg:           #07090d;
  --bg-2:         #0b0f15;
  --bg-3:         #0f141c;
  --surface:      rgba(255, 255, 255, 0.02);
  --surface-2:    rgba(255, 255, 255, 0.035);
  --line:         rgba(120, 180, 220, 0.10);
  --line-strong:  rgba(120, 180, 220, 0.22);

  --text:         #d7e0ec;
  --text-strong:  #f1f5fb;
  --muted:        #7a8aa0;
  --muted-2:      #5a6a82;

  --accent:       #5ce5d9;          /* cyan/teal */
  --accent-2:     #3aa8ff;          /* electric blue */
  --accent-warm:  #f5b170;          /* amber accent for warm highlights */
  --danger:       #ff5d6c;
  --ok:           #6ee7a3;

  --shadow-glow:  0 0 0 1px rgba(92, 229, 217, 0.18), 0 18px 60px -30px rgba(92, 229, 217, 0.35);

  --font-sans:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius:       14px;
  --radius-sm:    8px;

  --container:    1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text-strong); }

::selection { background: rgba(92,229,217,.3); color: var(--text-strong); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.ok { color: var(--ok); }
.sep { color: var(--muted-2); margin: 0 .4em; }

/* ---------- Background decorations ---------- */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(120,180,220,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,180,220,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,1), transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 90vh;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(58, 168, 255, 0.18), transparent 60%),
    radial-gradient(50% 50% at 80% 10%, rgba(92, 229, 217, 0.15), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,9,13,0.85), rgba(7,9,13,0.55));
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 15px;
}

.nav__brand-mark {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--text-strong); }

.nav__cta {
  color: var(--text-strong) !important;
  background: linear-gradient(180deg, rgba(92,229,217,.18), rgba(92,229,217,.08));
  border: 1px solid rgba(92,229,217,.35);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.nav__cta:hover {
  background: linear-gradient(180deg, rgba(92,229,217,.3), rgba(92,229,217,.12));
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 38px; height: 38px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span {
  width: 16px; height: 2px; background: var(--text);
  display: block;
}

@media (max-width: 880px) {
  .nav__links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7,9,13,0.96);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__cta {
    margin: 12px 24px;
    text-align: center;
  }
  .nav__toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.typewriter::after {
  content: '_';
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  margin: 22px 0 14px;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  font-weight: 800;
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--muted);
  margin: 0 0 24px;
  letter-spacing: 0.01em;
}

.hero__lede {
  font-size: 17px;
  color: var(--text);
  max-width: 60ch;
  margin: 0 0 28px;
}

.cert-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cert-chips li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(92,229,217,.07), transparent);
  color: var(--text-strong);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--accent), #3fb9b0);
  color: #07191b;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { color: #07191b; }

.btn--ghost {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--text-strong); border-color: var(--accent); }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.hero__meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-strong);
  font-weight: 500;
}

/* ---------- Portrait ---------- */
.hero__portrait {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(58,168,255,.15), rgba(92,229,217,.08));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(92,229,217,.12),
    0 30px 90px -40px rgba(58,168,255,.55),
    0 18px 60px -30px rgba(0,0,0,.8);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(1.05);
}

.portrait-fallback {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.portrait-fallback code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.portrait-frame__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--accent);
  z-index: 2;
}
.portrait-frame__corner--tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.portrait-frame__corner--tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.portrait-frame__corner--bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.portrait-frame__corner--br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.portrait-meta {
  position: absolute;
  bottom: 14px; left: 22px; right: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-size: 10.5px;
  color: var(--text-strong);
  background: linear-gradient(180deg, rgba(7,9,13,.0), rgba(7,9,13,.85));
  padding-top: 40px;
  letter-spacing: 0.06em;
}
.portrait-meta span:nth-child(odd) { color: var(--accent); }

@media (max-width: 880px) {
  .hero { padding: 56px 0 48px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero__portrait { order: -1; }
  .portrait-frame { max-width: 280px; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, rgba(11,15,21,0), rgba(11,15,21,0.6) 30%, rgba(11,15,21,0.6) 70%, rgba(11,15,21,0));
}

.section__head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section__num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0;
}

.section__rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section__head { grid-template-columns: auto 1fr; gap: 12px; }
  .section__rule { grid-column: 1 / -1; }
}

/* ---------- About / competencies ---------- */
.about-grid { display: grid; gap: 36px; }

.about-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-strong);
  max-width: 75ch;
  margin: 0;
}
.about-lede em {
  color: var(--accent);
  font-style: italic;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 36px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width .25s ease;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card:hover::before { width: 60%; }
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px;
  left: 11px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line));
  opacity: 0.5;
}

.timeline__item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 36px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: 4px; top: 12px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(92,229,217,.5);
}

.timeline__body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color .2s ease, background .2s ease;
}
.timeline__body:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.timeline__meta {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.timeline__body h3 {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.timeline__org {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.timeline__about {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
  font-style: italic;
}

.timeline__body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.timeline__body li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
}
.timeline__body li::before {
  content: '\203A';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.timeline__body strong { color: var(--text-strong); }

/* ---------- Publications ---------- */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.pub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.pub-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.pub-card--feature {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(58,168,255,.10), rgba(92,229,217,.04));
  border-color: var(--line-strong);
}

.pub-card__tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  margin-bottom: 14px;
}
.pub-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--text-strong);
  font-weight: 600;
}
.pub-card__sub {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
}
.pub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.pub-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 1px 5px;
  background: var(--surface-2);
  border-radius: 3px;
}

@media (max-width: 720px) {
  .pub-card--feature { grid-column: span 1; }
}

/* ---------- Credentials ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cred-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cred-card:hover {
  transform: translateY(-2px);
  border-color: rgba(92,229,217,.4);
  box-shadow: var(--shadow-glow);
}

.cred-card__mark {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  background: linear-gradient(180deg, rgba(92,229,217,.18), rgba(92,229,217,.04));
  border: 1px solid rgba(92,229,217,.35);
  padding: 12px 14px;
  border-radius: 10px;
  min-width: 76px;
  text-align: center;
}

.cred-card h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  color: var(--text-strong);
  font-weight: 500;
  line-height: 1.35;
}
.cred-card p { margin: 0; font-size: 12px; }

.education {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.education__title {
  margin: 0 0 24px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}
.education__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.education__item h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text-strong);
  font-weight: 600;
}
.education__item p { margin: 0 0 4px; font-size: 14px; color: var(--text); }
.education__item .muted { color: var(--muted); font-size: 13px; }

/* ---------- Speaking ---------- */
.talks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.talk {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, background .2s ease;
}
.talk:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.talk__venue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.talk__year {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.talk__loc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.talk__body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.talk__body h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .25s ease, color .15s ease;
  padding-bottom: 2px;
}
.talk__body h3 a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}
.talk__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

@media (max-width: 720px) {
  .talk { grid-template-columns: 1fr; gap: 12px; }
  .talk__venue { border-right: none; padding-right: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); flex-direction: row; gap: 14px; align-items: baseline; }
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  transition: border-color .2s ease;
}
.skill-group:hover { border-color: var(--line-strong); }
.skill-group--wide { grid-column: 1 / -1; }

.skill-group h3 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tag-list li:hover {
  background: rgba(92,229,217,.08);
  border-color: rgba(92,229,217,.3);
  color: var(--text-strong);
}

/* ---------- Contact ---------- */
.section--contact { padding-bottom: 120px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.contact-card__lede {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 24px;
  line-height: 1.6;
}
.contact-card__lede strong { color: var(--accent); font-weight: 600; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .mono { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Contact form */
.contact-form {
  margin: 4px 0 28px;
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-2);
  font-size: 11px;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(7, 9, 13, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 14.5px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(7, 9, 13, 0.85);
  box-shadow: 0 0 0 3px rgba(92, 229, 217, 0.12);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: rgba(255, 93, 108, 0.6);
}

/* honeypot — visually removed but present in the DOM for bots */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn { justify-content: center; width: fit-content; }
.contact-form .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.form-status {
  margin: 2px 0 0;
  font-size: 13.5px;
  min-height: 1.2em;
}
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--danger); }

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Terminal */
.terminal {
  background: linear-gradient(160deg, #050708, #0c121a);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(92,229,217,.08),
    0 30px 80px -40px rgba(92,229,217,.4);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.terminal__bar span:not(.terminal__title) {
  width: 11px; height: 11px; border-radius: 50%;
  background: #2a3340;
}
.terminal__bar span:nth-child(1) { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #f5b170; }
.terminal__bar span:nth-child(3) { background: #6ee7a3; }
.terminal__title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
}
.terminal__body {
  flex: 1;
  padding: 24px 22px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-strong);
  white-space: pre-wrap;
  overflow-x: auto;
}
.terminal__body .prompt { color: var(--accent); margin-right: 8px; }
.terminal__body .cursor {
  display: inline-block;
  background: var(--accent);
  width: 8px; height: 14px;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .section--contact { padding-bottom: 80px; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: linear-gradient(180deg, transparent, rgba(11,15,21,0.4));
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer__inner p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
