:root {
  --ink: #111211;
  --muted: #626760;
  --line: #c8cbc5;
  --ground: #f3f3ef;
  --panel: #111211;
  --accent: #50b64c;
  --soft-accent: #e3f1df;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image: linear-gradient(#00000008 1px, transparent 1px), linear-gradient(90deg, #00000008 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

main, footer { width: min(1120px, calc(100% - 48px)); margin: auto; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; }
a { color: inherit; text-decoration: none; }
.wordmark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--ink); color: var(--ground); font: 500 .78rem/1 "DM Mono", monospace; letter-spacing: -.08em; }
.wordmark span, em { color: var(--accent); font-style: normal; }
.nav-link, .eyebrow, .section-label > p, footer {
  font: 400 .72rem/1.3 "DM Mono", monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.nav-link { padding-bottom: 3px; border-bottom: 1px solid var(--ink); transition: color .2s ease, border-color .2s ease; }
.nav-link:hover { color: var(--accent); border-color: var(--accent); }

.hero { min-height: 69vh; padding: 14vh 0 10vh; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 25px; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.07em; line-height: .95; }
h1 { max-width: 900px; margin-bottom: 32px; font-size: clamp(3.8rem, 9vw, 8.3rem); }
.typed-line { display: inline-block; color: var(--ink); }
.cursor { display: inline-block; margin-left: .06em; color: var(--accent); animation: blink 1s step-end infinite; }
.lede { max-width: 620px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.65; }

@keyframes blink { 50% { opacity: 0; } }

.signal, .experience { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.55fr); gap: 9vw; padding: 112px 0; border-top: 1px solid var(--ink); }
.section-label > p { color: var(--accent); margin-bottom: 18px; }
.section-label h2 { max-width: 310px; margin-bottom: 0; font-size: clamp(2.1rem, 3.5vw, 3.4rem); }
.experience-list { border-top: 1px solid var(--ink); }
h3 { margin-bottom: 8px; font-size: 1.08rem; font-weight: 700; letter-spacing: -.03em; }

.signal { padding-bottom: 134px; }
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.stack-group { min-height: 210px; margin: 0; padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: #fafaf7b8; transition: background .2s ease; }
.stack-group:hover { background: var(--soft-accent); }
.stack-group p { margin: 0; font: 500 .87rem/1.7 "DM Mono", monospace; letter-spacing: -.025em; }
.stack-group .stack-heading { margin-bottom: 22px; color: var(--accent); font: 500 .69rem/1.3 "DM Mono", monospace; letter-spacing: .045em; text-transform: uppercase; }
.tool-icons { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.tool-icon { position: relative; display: block; }
.tool-icon img { display: block; width: 62px; height: 62px; padding: 7px; object-fit: contain; background: #fff; border: 1px solid var(--line); filter: saturate(.9); transition: transform .2s ease, border-color .2s ease; }
.stack-group:hover .tool-icon img { border-color: #8bbf85; }
.tool-icon::after { content: attr(data-tooltip); position: absolute; z-index: 2; bottom: calc(100% + 8px); left: 50%; width: max-content; max-width: 180px; padding: 6px 8px; transform: translateX(-50%) translateY(3px); background: var(--ink); color: var(--ground); font: .63rem/1.2 "DM Mono", monospace; letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.tool-icon:hover img { transform: translateY(-4px); border-color: var(--accent); }
.tool-icon:hover::after { transform: translateX(-50%) translateY(0); opacity: 1; }

.experience-list article { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 27px 0 30px; border-bottom: 1px solid var(--line); }
.experience-list h3 { margin-bottom: 5px; }
.experience-list p { margin-bottom: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.experience-list .experience-period, .experience-company { font: .72rem/1.5 "DM Mono", monospace; letter-spacing: .035em; text-transform: uppercase; }
.experience-list .experience-period { color: var(--accent); padding-top: 4px; }
.experience-list .experience-company { margin-bottom: 12px; color: var(--ink); }
.experience-highlights { margin: 17px 0 0; padding: 0; list-style: none; }
.experience-highlights li { position: relative; margin: 0 0 10px; padding-left: 17px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.experience-highlights li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: "DM Mono", monospace; }
.role-stack { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.role-stack > p { margin-bottom: 10px; color: var(--muted); font: .67rem/1.3 "DM Mono", monospace; letter-spacing: .045em; text-transform: uppercase; }
.role-stack ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.role-stack li { padding: 6px 8px; border: 1px solid var(--line); color: var(--ink); font: .68rem/1 "DM Mono", monospace; }

.contact { position: relative; margin-bottom: 80px; padding: clamp(52px, 8vw, 94px); overflow: hidden; background: var(--panel); color: #f4f4ef; }
.contact::after { content: "+"; position: absolute; right: 5%; bottom: -12%; color: var(--accent); font: 22rem/.7 "DM Mono", monospace; opacity: .85; }
.contact h2 { position: relative; z-index: 1; margin-bottom: 36px; font-size: clamp(2.8rem, 6vw, 5.3rem); }
.contact-link { position: relative; z-index: 1; color: var(--accent); font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid currentColor; }
.contact-link span { margin-left: 5px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 28px; color: var(--muted); }
footer p { margin: 0; }

@media (max-width: 680px) {
  main, footer { width: min(100% - 36px, 1120px); }
  .hero { min-height: 64vh; padding: 12vh 0 9vh; }
  .signal, .experience { grid-template-columns: 1fr; gap: 44px; padding: 74px 0; }
  .section-label h2 { max-width: 360px; }
  .signal { padding-bottom: 82px; }
  .stack { grid-template-columns: 1fr; }
  .stack-group { min-height: auto; }
  .experience-list article { grid-template-columns: 1fr; gap: 8px; }
  .contact { margin-bottom: 48px; padding: 45px 28px; }
  footer { font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
