:root {
  color-scheme: light;
  --bg: #ffffff; --tint: #fff8f3; --ink: #17130f; --muted: #5f574f;
  --line: #ece5de; --accent: #ea580c; --accent-dark: #b83f06;
  --display: "Outfit", system-ui, sans-serif;
  --shadow: 0 18px 40px -22px rgba(80, 40, 10, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 "Inter", system-ui, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, .brand, .role, .stats dd, .float strong { font-family: var(--display); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
section { padding: 88px 0; scroll-margin-top: 66px; }
.tint { background: var(--tint); }

.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; flex-wrap: wrap; }
.brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.brand span, h1 .dot { color: var(--accent); }
nav { display: flex; align-items: center; gap: 26px; }
nav > a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 500; }
nav > a:not(.btn):hover { color: var(--accent-dark); }
.menu { display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; color: var(--ink); }

.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 8px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero { padding: 72px 0 96px; overflow: hidden; background: radial-gradient(circle at 85% 20%, #ffe4cf 0, transparent 45%), var(--tint); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1 { white-space: nowrap; font-size: clamp(2.5rem, 12vw, 5rem); line-height: .98; letter-spacing: -.03em; margin: 8px 0 0; font-weight: 800; }
.role { display: block; white-space: normal; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; letter-spacing: 0; font-weight: 700; margin: 22px 0 8px; padding-top: 18px; position: relative; }
.role::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 4px; background: var(--accent); border-radius: 2px; }
.lead, .intro { color: var(--muted); max-width: 60ch; }

.stage { position: relative; min-height: 420px; }
.window { position: absolute; inset: 70px 30px auto 66px;background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.dots { display: flex; gap: 7px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #fdba74; }
.dots span { margin-left: 8px; }
pre { margin: 0; padding: 22px 20px 48px; font: .86rem/1.9 ui-monospace, Consolas, monospace; overflow: hidden; }
pre b { color: var(--accent-dark); font-weight: 600; }
pre em { color: #15803d; font-style: normal; }
pre u { color: #1d4ed8; text-decoration: none; }
.float, .chip { position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.float { padding: 12px 18px; border-radius: 14px; font-size: .8rem; color: var(--muted); }
.float strong { display: block; font-size: 1.8rem; line-height: 1.2; color: var(--ink); }
.f1 { top: 8px; right: 0; }
.f2 { bottom: 12px; left: 0; animation-delay: -3s; }
.chip { padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.c1 { top: 24px; left: 20px; animation-delay: -1s; }
.c2 { right: 0; top: 52%; animation-delay: -2s; }
.c3 { left: 0; top: 48%; animation-delay: -4s; }
.c4 { right: 60px; bottom: 24px; animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-9px); } }

h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0; padding: 28px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--tint); text-align: center; }
.stats dd { margin: 0; font-size: 2.5rem; font-weight: 800; color: var(--accent-dark); line-height: 1.2; }
.stats dt { color: var(--muted); font-size: .88rem; }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.person { text-align: center; }
.person img { border-radius: 14px; display: block; width: 100%; margin-bottom: 16px; }
.person p { margin: 0; color: var(--muted); }
.profile { margin: 8px 0 0; }
.profile div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile div:last-child { border-bottom: 0; }
.profile dt { font-weight: 600; }
.profile dd { margin: 0; text-align: right; color: var(--muted); overflow-wrap: anywhere; }

.tools { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tools li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 8px; text-align: center; font-size: .86rem; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.tools li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tools img { display: block; width: 40px; height: 40px; margin: 0 auto 10px; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; margin: 0; }
.groups div { border-top: 2px solid var(--accent); padding-top: 12px; margin-top: 12px; }
.groups dt { font-weight: 600; }
.groups dd { margin: 4px 0 0; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.filters button { font: inherit; font-size: .9rem; font-weight: 500; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.projects, .services { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.projects li[hidden] { display: none; }
.projects a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.projects a:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cover { display: flex; align-items: center; justify-content: space-between; padding: 24px 22px; background: linear-gradient(135deg, #fff1e6, #ffd9bd); }
.cover img { width: 46px; height: 46px; }
.cover span { font: 700 1.3rem var(--display); }
.body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.body h3 { overflow-wrap: anywhere; }
.body p { color: var(--muted); margin: 4px 0 16px; font-size: .93rem; }
.stack { margin-top: auto; font-size: .8rem; font-weight: 600; color: var(--accent-dark); }

.services { margin-top: 32px; }
.services span { font: 800 1.1rem var(--display); color: var(--accent-dark); }
.services h3 { margin-top: 10px; }
.services p { margin: 0; color: var(--muted); font-size: .94rem; }

.cta { text-align: center; padding: 60px 24px; border-radius: 26px; background: radial-gradient(circle at 80% 0, #ffd9bd 0, transparent 55%), var(--tint); border: 1px solid var(--line); }
.cta p { color: var(--muted); margin: 0; }
.cta .actions { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 26px 0 80px; color: var(--muted); font-size: .88rem; }
.fab { display: flex; align-items: center; gap: 8px; position: fixed; right: 18px; bottom: 18px; z-index: 11; background: #0f766e; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .menu { display: block; }
  nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 10px 0 18px; }
  nav.open { display: flex; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .window { inset: 70px 8px auto 8px; }
  pre { font-size: .74rem; }
  .c2, .c3 { display: none; }
  .profile div { flex-direction: column; gap: 2px; }
  .profile dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .chip { animation: none; }
}


.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
nav > a[aria-current="true"]:not(.btn) { color: var(--accent-dark); font-weight: 600; }
.profile dd a { display: inline-block; padding: 4px 0; margin: -4px 0; }
.more { margin-top: 10px; font-size: .86rem; font-weight: 600; }
.projects a:hover .more { color: var(--accent-dark); text-decoration: underline; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .stage { display: none; }
  .menu { min-height: 44px; }
  nav > a:not(.btn) { align-self: stretch; padding: 8px 0; }
  .person img { max-width: 260px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .tools { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tools li { padding: 14px 4px; font-size: .78rem; }
  .tools img { width: 30px; height: 30px; margin-bottom: 6px; }
  .cover { padding: 14px 18px; }
  .cover img { width: 34px; height: 34px; }
  .hero .actions .btn { flex: 1 1 100%; text-align: center; }
  .fab { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .fab span { display: none; }
  .fab img { width: 26px; height: 26px; }
}

/* The two-column hero needs about 1000px; below that the code box gets cut. */
@media (max-width: 999px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
}
/* On short screens (phone landscape) the open menu scrolls. */
@media (max-width: 860px) {
  nav.open { flex-wrap: nowrap; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto; }
  nav > * { flex-shrink: 0; }
}

.jobs { list-style: none; margin: 32px 0 20px; padding: 0; display: grid; gap: 16px; }
.when { margin: 0 0 6px; font-size: .82rem; font-weight: 600; color: var(--accent-dark); }
.org { margin: 0; color: var(--muted); font-weight: 500; }
.jobs ul, .learning ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.learning { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
@media (max-width: 400px) { .learning { grid-template-columns: 1fr; } }
