/* =====================================================
   Kyle Anderson Portfolio — Redesigned Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Inter+Tight:wght@600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

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

:root {
  --bg:        #12100E;
  --surface:   #1B1816;
  --border:    #38312C;
  --text:      #F5F0E8;
  --muted:     #B8AEA3;
  --olive:     #6F7850;
  --burgundy:  #6A2C35;
  --copper:    #B07A58;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  animation: pageFadeIn 0.35s ease-out both;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
}

/* ── FADE UP ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}
.nav-wordmark {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-decoration: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav ul a, nav ul a.nav-link {
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s;
}
nav ul a:hover, nav ul a.nav-link:hover { color: var(--text); }
nav ul a.active, nav ul a.nav-link.active { color: var(--copper); border-bottom: 2px solid var(--burgundy); padding-bottom: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
}

/* ── SECTION WRAPPERS ── */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
body > section[id]:not(#hero) {
  padding-top: 4.5rem;
}
/* prevent nested sections from inheriting section padding */
section section {
  max-width: 100%;
  margin: 0;
  padding: 0;
}
section section + section {
  margin-top: 3rem;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.5rem;
  display: block;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

/* ── HERO ── */
#hero {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  max-width: 960px;
  padding: 5rem 2rem 4rem;
}

.hero-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.hero-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-photo {
  flex-shrink: 0;
}
.hero-photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--copper);
  display: block;
}

.hero-left {}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
  display: block;
}

.hero-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}

.hero-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--copper);
  margin-bottom: 2.25rem;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.hero-sub {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── PROOF PANEL ── */
.proof-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.proof-item {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.proof-item:last-child { border-right: none; }
.proof-metric {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--copper);
  line-height: 1;
}
.proof-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  line-height: 1.45;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.35rem;
  border-radius: 4px;
  transition: all 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--copper);
  color: var(--text);
  border-color: var(--copper);
}
.btn-primary:hover {
  background: var(--copper);
  border-color: var(--copper);
}
.btn-outline {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--copper);
  color: var(--text);
}

/* ── PAGE HERO (section headings) ── */
.page-hero {
  padding: 0 0 1rem;
}
.page-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── DEGREES ── */
.degree-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--copper);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}
.degree-card.featured { border-left-color: var(--copper); }
.degree-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.degree-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  background: rgba(176,122,88,0.1);
  border: 1px solid rgba(176,122,88,0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}
.degree-badge.secondary {
  color: var(--olive);
  background: rgba(111,120,80,0.1);
  border-color: rgba(111,120,80,0.25);
}
.degree-school {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
}
.degree-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.degree-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CERTIFICATIONS ── */
.cert-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--olive);
  border-radius: 4px;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.18s;
}
.cert-card:hover { border-color: var(--copper); }
.cert-card.inprogress { border-left: 3px solid var(--olive); opacity: 0.8; }
.cert-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.cert-issuer {
  font-size: 0.78rem;
  color: var(--copper);
  font-weight: 500;
}
.cert-meta {
  font-size: 0.74rem;
  color: var(--muted);
}
.cert-id {
  font-size: 0.72rem;
  color: var(--olive);
  font-family: 'Inter', monospace;
}
.cert-verification {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.cert-verify {
  color: var(--olive);
  text-decoration: none;
  transition: color 0.18s;
}
.cert-verify:hover { color: var(--copper); }
.cert-status {
  font-size: 0.76rem;
  color: var(--olive);
  font-style: italic;
}

/* ── TECH STACK SECTION ── */
.tech-stack-section {
  margin-top: 3rem;
}

/* Core Stack Band */
.core-stack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 2.25rem;
  overflow: hidden;
}
.core-stack-meta {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.core-stack-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--olive);
}
.core-stack-note {
  font-size: 0.73rem;
  color: color-mix(in srgb, var(--muted) 50%, transparent);
}
.core-stack-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.core-stack-col {
  padding: 1rem 1.25rem 1.25rem;
  border-left: 1px solid var(--border);
}
.core-stack-col:first-child { border-left: none; }
.core-stack-col::before {
  content: '';
  display: block;
  height: 2px;
  width: 1.75rem;
  margin-bottom: 0.7rem;
  border-radius: 1px;
}
.col--virt::before  { background: var(--olive); }
.col--cloud::before { background: var(--burgundy); }
.col--ops::before   { background: var(--copper); }
.col--ai::before    { background: var(--burgundy); }
.col--ai {
  background: color-mix(in srgb, var(--burgundy) 5%, var(--surface));
}
.col-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  display: block;
  margin-bottom: 0.6rem;
}
.col-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.col-items li {
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.item--ai {
  color: var(--copper);
  font-weight: 600;
}

/* Domain Table */
.domain-table {
  display: flex;
  flex-direction: column;
}
.domain-row {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}
.domain-row:last-child {
  border-bottom: 1px solid var(--border);
}
.domain-row--ai {
}
.domain-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}
.domain-desc {
  font-size: 0.7rem;
  color: color-mix(in srgb, var(--muted) 60%, transparent);
  line-height: 1.4;
  margin: 0;
}
.domain-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.05rem;
}
.domain-platforms {
  font-family: 'Inter', sans-serif;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--copper);
  line-height: 1.65;
  margin: 0;
}
.domain-caps {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ── TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-item {
  position: relative;
  padding: 0 0 2.5rem 1.75rem;
  border-left: 1px solid var(--border);
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  border: 2px solid var(--bg);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-org {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.2rem;
}
.tl-role {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.tl-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.tl-desc {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}
.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}
.tl-bullets li {
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}
.tl-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
}
.tl-bullets li strong { color: var(--text); font-weight: 600; }
.tl-bullets li .hl { color: var(--copper); font-weight: 500; }
.tl-impact { margin-top: 0.5rem; }
.impact-label {
  color: var(--copper);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.4rem;
}

/* ── PROJECT CARDS ── */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  border-left: 3px solid var(--copper);
  overflow: hidden;
  transition: border-color 0.18s;
}
.proj-card:hover { border-color: var(--copper); }
.proj-card.purple { border-left-color: var(--burgundy); }
.proj-card.gold   { border-left-color: var(--copper); }
.proj-card.cyan   { border-left-color: var(--olive); }

.proj-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.proj-summary::-webkit-details-marker { display: none; }
.proj-summary:hover { background: rgba(255,255,255,0.02); }
.proj-header { flex: 1; min-width: 0; }
.proj-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.proj-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.proj-dates { font-size: 0.74rem; color: var(--muted); }
.proj-role {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.role-owner       { color: var(--copper);   background: rgba(176,122,88,0.1);  border: 1px solid rgba(176,122,88,0.25); }
.role-lead        { color: var(--burgundy); background: rgba(106,44,53,0.12); border: 1px solid rgba(106,44,53,0.3); }
.role-partner     { color: var(--olive);    background: rgba(111,120,80,0.1);  border: 1px solid rgba(111,120,80,0.25); }
.role-contributor { color: var(--muted);    background: rgba(56,49,44,0.4);    border: 1px solid var(--border); }

.proj-chevron {
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.22s ease;
  display: inline-block;
}
.proj-card[open] .proj-chevron { transform: rotate(180deg); }

.proj-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.proj-body p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 1rem;
}
.proj-body strong { color: var(--text); font-weight: 600; }
.proj-body .hl { color: var(--copper); font-weight: 500; }
.proj-subhead {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive);
  margin-top: 1.1rem \!important;
  margin-bottom: 0.5rem;
}
.proj-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.proj-bullets li {
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}
.proj-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
}
.proj-outcome { margin-top: 1rem \!important; }
.outcome-label {
  color: var(--copper);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.4rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 100%;
}
.foot-copy {
  color: var(--muted);
  font-size: 0.78rem;
}
.foot-links {
  display: flex;
  gap: 1.25rem;
}
.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.18s;
}
.foot-links a:hover { color: var(--olive); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { justify-content: space-between; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
  }
  nav ul.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-body { grid-template-columns: 1fr; gap: 2rem; justify-items: center; text-align: center; }
  .hero-photo img { width: 140px; height: 140px; }
  .core-stack-cols { grid-template-columns: 1fr 1fr; }
  .col--ai { border-top: 1px solid var(--border); grid-column: 1 / -1; border-left: none; }
  .domain-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .proof-panel { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: none; }
  .proof-item:nth-child(3) { border-top: 1px solid var(--border); }
  .proof-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .hero-name { font-size: 2.2rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .proof-panel { grid-template-columns: 1fr; }
  .proof-item { border-right: none; border-top: 1px solid var(--border); }
  .proof-item:first-child { border-top: none; }
}
