:root {
  --bg: #141412;
  --border: #2A2A26;
  --ink: #F0EEE6;
  --muted: #9A9890;
  --cyan: #5EEAF0;
  --cyan-strong: #00C9D6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .rubik { font-family: 'Rubik', sans-serif; }
a { color: inherit; }
ul { list-style: none; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; position: relative; }

.thread {
  position: absolute;
  right: 4px;
  top: 0;
  width: 1px;
  height: 100%;
  background-image: repeating-linear-gradient(180deg, var(--cyan-strong) 0 6px, transparent 6px 12px);
  background-size: 100% 24px;
  background-repeat: repeat-y;
  animation: stitchscroll 2.5s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes stitchscroll {
  from { background-position-y: 0; }
  to   { background-position-y: 24px; }
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--border);
}
.logo { font-weight: 500; font-size: 18px; letter-spacing: 0.2px; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.logo-icon { width: 24px; height: 24px; display: block; }
.footer-icon { width: 14px; height: 14px; display: block; opacity: 0.7; }
nav { display: flex; gap: 16px; flex-wrap: wrap; row-gap: 8px; }
nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 2px 0; }
nav a:hover, nav a.current { color: var(--ink); }

.hero { padding: 48px 0 32px; }
.eyebrow {
  font-size: 13px; letter-spacing: 0.5px; color: var(--cyan);
  margin-bottom: 14px; text-transform: uppercase;
}
h1 { font-size: 36px; line-height: 1.25; font-weight: 500; max-width: 540px; }
.hero-sub { font-size: 17px; color: var(--muted); margin-top: 16px; max-width: 480px; line-height: 1.7; }

section { padding: 36px 0; border-bottom: 0.5px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-label {
  font-family: 'Rubik', sans-serif; font-size: 13px; color: var(--muted);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}

#who-i-am p { font-size: 16px; line-height: 1.8; max-width: 640px; }
#who-i-am p + p { margin-top: 14px; }

.skills-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.skills-grid h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.skills-grid ul { font-size: 14px; color: var(--muted); line-height: 2; }

.timeline-item { margin-bottom: 20px; font-size: 15px; line-height: 1.75; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item .years { font-family: 'Rubik', sans-serif; color: var(--cyan); font-size: 13px; display: block; margin-bottom: 4px; }
.timeline-quote {
  display: block; margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--cyan-strong);
  font-style: italic; color: var(--muted); font-size: 14px; line-height: 1.65;
}
.timeline-source {
  display: block; margin-top: 6px; padding-left: 14px;
  font-style: normal; color: var(--muted); font-size: 12px; opacity: 0.75; letter-spacing: 0.2px;
}
.experience-note {
  font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 24px; max-width: 640px; line-height: 1.65;
}

.services-intro-strong { font-size: 19px; font-family: 'Rubik', sans-serif; font-weight: 500; max-width: 640px; margin-bottom: 12px; line-height: 1.4; }
.services-intro { font-size: 15px; color: var(--muted); max-width: 640px; margin-bottom: 32px; line-height: 1.75; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.service-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  background: rgba(240,238,230,0.03);
  border-radius: 8px;
  padding: 22px 20px 20px;
}
.service-card.tier-2, .service-card.tier-3 {
  border-top: 3px solid var(--cyan-strong);
  background: rgba(94,234,240,0.05);
}
.service-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.service-card.tier-2 h3, .service-card.tier-3 h3 { color: var(--cyan-strong); }
.service-card .tagline { font-size: 13px; color: var(--muted); margin-bottom: 14px; font-style: italic; }
.service-card ul { font-size: 14px; color: var(--muted); line-height: 1.95; }
.how-it-works {
  margin-top: 18px; padding: 16px 18px; background: rgba(94,234,240,0.07);
  border-left: 3px solid var(--cyan-strong); border-radius: 4px; font-size: 14px; color: var(--muted); line-height: 1.7;
}
.how-it-works strong { color: var(--ink); }
.cta-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--cyan); text-decoration: none; }
.services-note { font-size: 13px; color: var(--muted); margin-top: 24px; font-style: italic; max-width: 640px; line-height: 1.6; }

#contact { text-align: center; }
#contact .section-label { text-align: center; }
.contact-text { font-size: 20px; max-width: 480px; line-height: 1.6; margin: 0 auto 24px; font-family: 'Rubik', sans-serif; font-weight: 400; }
.contact-links { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 17px; }
.contact-links a { text-decoration: none; }
.contact-links a:hover { color: var(--cyan); }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
  padding: 20px 0 32px; font-size: 13px; color: var(--muted);
}

@media (min-width: 641px) {
  .wrap { padding: 0 32px; }
  header { flex-wrap: nowrap; padding: 20px 0; }
  .logo { font-size: 19px; }
  nav { gap: 24px; }
  nav a { font-size: 15px; }
  .hero { padding: 64px 0 40px; }
  h1 { font-size: 48px; max-width: 660px; }
  .hero-sub { font-size: 18px; max-width: 560px; }
  section { padding: 44px 0; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .thread { right: 8px; }
}

.nav-toggle { display: none; }
@media (max-width: 640px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 30px; height: 30px; background: none; border: none; cursor: pointer; padding: 0; order: 2;
  }
  .nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--ink); }
  header { position: relative; }
  nav#site-nav {
    display: none; flex-direction: column; width: 100%; flex-basis: 100%; order: 3;
    gap: 0; padding-top: 4px;
  }
  nav#site-nav.open { display: flex; }
  nav#site-nav a { padding: 12px 0; border-top: 0.5px solid var(--border); }
}
