/* ============================================================
   MATHIS ALLEN - Portfolio
   style.css
   ============================================================ */

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

:root {
  --bg:       #f4f3f0;
  --white:    #ffffff;
  --ink:      #18181b;
  --ink2:     #3f3f46;
  --mid:      #71717a;
  --line:     #e4e4e7;
  --line2:    #d4d4d8;

  --acc:      #1a6b3c;
  --acc-bg:   #edf5f0;
  --warn:     #c2410c;
  --warn-bg:  #fef3ee;
  --blue:     #1d4ed8;
  --blue-bg:  #eff3ff;

  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}


/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 243, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo em { color: var(--acc); font-style: normal; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }

.nav-loc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mid);
  font-weight: 500;
}


/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  padding-top: 56px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  border-bottom: 1px solid var(--line);
}

.hero-left {
  padding: 72px 48px 64px 8vw;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-right {
  padding: 72px 40px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
}

.role {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--acc);
  text-transform: uppercase;
  margin-bottom: 24px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink2);
}

.hero-desc {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 40px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}
.btn-fill:hover { background: var(--ink2); }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--line2);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color .15s;
}
.btn-line:hover { border-color: var(--ink2); }

.sidebar-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sidebar-bio {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.85;
  margin-bottom: 32px;
}

.kv-list { display: flex; flex-direction: column; }

.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.kv:last-child { border-bottom: none; }
.kv-k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mid);
}
.kv-v {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8vw;
  border-bottom: 1px solid var(--line);
}

.stat-row { display: flex; }

.stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.stat-n {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}
.stat-l {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--line2);
  border-radius: 3px;
  color: var(--ink2);
  letter-spacing: 0.04em;
}


/* ── Section Layout ───────────────────────────────────────── */
section.w {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8vw;
}

.sh {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 80px;
  margin-bottom: 40px;
}
.sn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--mid);
  text-transform: uppercase;
}
.st {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}
.sl { flex: 1; height: 1px; background: var(--line); }


/* ── Skills ───────────────────────────────────────────────── */
.sk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 80px;
  background: var(--line);
  gap: 1px;
}

.sk {
  background: var(--white);
  padding: 24px 20px;
  transition: background .15s;
}
.sk:hover { background: #fafaf9; }

.sk-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--acc);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sk-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}

.sk-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sk-list li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sk-list li::before { content: '-'; color: var(--line2); }


/* ── Experience ───────────────────────────────────────────── */
.exp-list { margin-bottom: 80px; }

.exp {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.exp:hover .et { color: var(--acc); }

.el {}

.ed {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mid);
  margin-bottom: 8px;
  font-weight: 500;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bw   { background: var(--acc-bg);  color: var(--acc);  }
.bc   { background: var(--warn-bg); color: var(--warn); }
.bs   { background: var(--bg); color: var(--mid); border: 1px solid var(--line2); }
.bi   { background: var(--blue-bg); color: var(--blue); }
.bcur { background: var(--ink); color: var(--white); }

.er {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.et {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color .15s;
  line-height: 1.3;
}

.edesc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 10px;
}

.chips { display: flex; flex-wrap: wrap; gap: 5px; }

.chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--mid);
}


/* ── Certifications ───────────────────────────────────────── */
.cert-list { margin-bottom: 80px; }

.cert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cy {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--line2);
  min-width: 40px;
}

.cb { flex: 1; }
.cn { font-size: 14px; font-weight: 600; color: var(--ink); }
.cf { font-family: var(--mono); font-size: 11px; color: var(--mid); margin-top: 2px; }

.pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pok  { background: var(--acc-bg);  color: var(--acc);  }
.pwip { background: var(--warn-bg); color: var(--warn); }


/* ── Contact ──────────────────────────────────────────────── */
.contact-section {
  background: var(--ink);
  padding: 72px 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.contact-section p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
}

.clinks { display: flex; flex-direction: column; gap: 1px; }

.clink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1px;
  transition: background .15s;
}
.clinks .clink:first-child { border-radius: 6px 6px 0 0; }
.clinks .clink:last-child  { border-radius: 0 0 6px 6px; margin-bottom: 0; }
.clink:hover { background: rgba(255, 255, 255, 0.09); }

.clbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.carr { opacity: 0.3; }


/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 8vw;
  display: flex;
  justify-content: space-between;
}
footer p {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
}


/* ── Animations ───────────────────────────────────────────── */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade.in {
  opacity: 1;
  transform: translateY(0);
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }

  .hero-main { grid-template-columns: 1fr; }
  .hero-left  { padding: 48px 20px 40px; border-right: none; }
  .hero-right { padding: 40px 20px; border-top: 1px solid var(--line); }
  .hero-footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
  }
  .stat-row { flex-wrap: wrap; gap: 16px; }
  .stat { border-right: none; padding-right: 0; margin-right: 0; }

  section.w { padding: 0 20px; }

  .sk-grid { grid-template-columns: 1fr 1fr; }

  .exp { grid-template-columns: 1fr; gap: 8px; }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px;
  }

  footer { padding: 16px 20px; }
}


/* ── Hero Photo ───────────────────────────────────────────── */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--line);
  background: var(--bg);
}
