/* Engineering-drawing look: drafting paper, graphite ink, blue pencil.
   Dark mode is a blueprint. */
:root {
  --paper: #f6f6f3;
  --panel: #ffffff;
  --ink: #121212;
  --ink-2: #4a4a47;
  --ink-3: #85857f;
  --rule: #dcdcd5;
  --grid: rgba(18, 18, 18, .045);
  --blue: #1f47d6;
  --blue-soft: rgba(31, 71, 214, .08);
  --live: #11804a;
  --term: #0f1115;
  --term-ink: #e7e9ee;
  --term-dim: #8a90a0;
  /* one rounded family for everything; the old mono/hand roles are weights of it */
  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --mono: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --hand: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1730;
    --panel: #0f1e3c;
    --ink: #e9eef9;
    --ink-2: #b3bfd8;
    --ink-3: #7d8bab;
    --rule: #22355d;
    --grid: rgba(160, 190, 255, .07);
    --blue: #8fb0ff;
    --blue-soft: rgba(143, 176, 255, .1);
    --live: #5fd69a;
    --term: #07101f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1730;
  --panel: #0f1e3c;
  --ink: #e9eef9;
  --ink-2: #b3bfd8;
  --ink-3: #7d8bab;
  --rule: #22355d;
  --grid: rgba(160, 190, 255, .07);
  --blue: #8fb0ff;
  --blue-soft: rgba(143, 176, 255, .1);
  --live: #5fd69a;
  --term: #07101f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
 
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg use { pointer-events: none; }
code { font-family: inherit; }

/* every inline icon */
.links svg, .tags svg, .go svg, .bullets svg, .s-icon svg,
.term-bar svg, .log svg, .term-more svg, .cta svg, .footer h2 svg, .sign svg {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* top bar */
.topbar {
  max-width: var(--max); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.mark span {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1.6px solid var(--ink); border-radius: 12px;
  font: 800 15px/1 var(--display);
  letter-spacing: .02em;
}
.mark { text-decoration: none; }
.links { display: flex; gap: 6px; }
.links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 6px;
  font: 700 13px/1 var(--mono); color: var(--ink-2); text-decoration: none;
}
.links a:hover { background: var(--blue-soft); color: var(--blue); }
.links svg { width: 18px; height: 18px; }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* hero */
.hero { padding: 4px 0 64px; }
.sketch { width: 100%; height: auto; display: block; overflow: visible; }
.sketch .lead { fill: none; stroke: var(--blue); stroke-width: 3.2; stroke-linecap: round; }
.sketch .name {
  font: 400 262px/1 "La Belle Aurore", "Bradley Hand", cursive;
  fill: var(--ink);
}
.sketch .surname {
  font: 700 26px/1 var(--mono); letter-spacing: .36em; text-transform: uppercase;
  fill: var(--ink-2);
}
.sketch .note { font: italic 800 60px/1 var(--hand); fill: var(--blue); }
.marks path { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.marks .dim { stroke: var(--blue); opacity: .55; }
.dim-label { font: 700 13px/1 var(--mono); fill: var(--blue); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.sketch text, .marks { opacity: 0; transition: opacity 1s ease; }
.sketch.named text, .sketch.named .marks { opacity: 1; }
.sketch.named .note { transition-delay: 1.5s; }

.hero-foot {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end;
  margin-top: 28px; padding-top: 28px; border-top: 1.5px solid var(--ink);
}
.lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.facts li { border-left: 1.5px solid var(--rule); padding-left: 12px; }
.facts strong { display: block; font: 900 34px/1 var(--display); }
.facts span { display: block; margin-top: 6px; font: 400 11.5px/1.35 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.fact-link { text-decoration: none; }
.fact-link span { color: var(--blue); }
.fact-link svg { width: 12px; height: 12px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fact-link:hover strong { color: var(--blue); }
.fact-link[href^="#"] svg { transform: rotate(90deg); }
.intro a { color: var(--blue); text-underline-offset: 3px; }

/* career: a sticky timeline rail beside the eras */
.career { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: start; }
.eras { min-width: 0; }
.rail { position: sticky; top: 24px; padding-top: 88px; }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail ol::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--rule); border-radius: 2px; }
.rail a { position: relative; display: block; padding: 2px 0 22px 30px; text-decoration: none; color: var(--ink-3); }
.rail a::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px;
  border-radius: 5px; border: 2px solid var(--rule); background: var(--paper);
  transition: background .2s ease, border-color .2s ease;
}
.rail .when { display: block; font: 700 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.rail b { display: block; margin-top: 2px; font: 900 20px/1.15 var(--display); color: var(--ink-2); transition: color .2s ease; }
.rail small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; }
.rail a:hover b { color: var(--blue); }
.rail a.on::before { background: var(--blue); border-color: var(--blue); }
.rail a.on .when { color: var(--blue); }
.rail a.on b { color: var(--ink); }

/* section frame */
.block { padding: 88px 0 24px; scroll-margin-top: 8px; }
.block-head { max-width: 860px; }
.kicker { margin: 0 0 6px; font: 700 12.5px/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.block h2 {
  margin: 0; font: 900 clamp(32px, 4.6vw, 54px)/1.02 var(--display);
  letter-spacing: -.015em;
}
.sub { margin: 16px 0 0; color: var(--ink-2); max-width: 720px; }
/* projects */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.project {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 26px; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 20px;
  text-decoration: none; position: relative;
  box-shadow: 6px 6px 0 var(--rule);
  transition: transform .18s ease, box-shadow .18s ease;
}
.project:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--blue); }
.logo { width: 56px; height: 56px; border-radius: 12px; }
.p-top { display: flex; align-items: center; gap: 12px; }
.project h3 { margin: 0; font: 800 26px/1.1 var(--display); }
.live {
  font: 700 11px/1 var(--mono); color: var(--live); text-transform: uppercase; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 6px;
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.pitch { margin: 8px 0 10px; font: italic 800 20px/1.25 var(--hand); color: var(--blue); }
.project p:not(.pitch) { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 12px/1 var(--mono); color: var(--ink-2);
  border: 1px solid var(--rule); padding: 6px 11px; border-radius: 999px;
}
.tags svg { width: 14px; height: 14px; }
.go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font: 700 13px/1 var(--mono); color: var(--blue); }
.go svg { width: 15px; height: 15px; }

/* clover: one paragraph, the devices beside it */
.clover-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; margin-top: 36px; }
.clover-text { position: sticky; top: 32px; }
.intro { margin: 0 0 18px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }

/* bullet lists with an icon per point (Clover, Nook) */
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--rule); }
.bullets li:first-child { border-top: 0; }
.bullets svg { width: 24px; height: 24px; color: var(--blue); margin-top: 2px; }
.bullets span { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.bullets b { color: var(--ink); font-weight: 800; }

/* nook: bullets beside a photo */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; margin-top: 36px; }
.photo { margin: 0; }
.photo { display: flex; flex-direction: column; align-items: center; padding: 28px 20px 18px; background: var(--panel); border: 1px solid var(--rule); border-radius: 22px; }
.photo img { display: block; width: auto; max-width: 100%; height: 380px; object-fit: contain; }
.photo figcaption { margin-top: 12px; font: 800 14px/1.2 var(--display); color: var(--ink-2); }

/* semiconductors: four stories */
.stories { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stories li { position: relative; padding: 24px 24px 22px; background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; }
.s-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.s-icon svg { width: 26px; height: 26px; }
.s-meta { margin: 14px 0 4px; font: 700 12px/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.stories h3 { margin: 0 0 8px; font: 900 21px/1.25 var(--display); }
.stories p:last-child { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.devices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.devices li { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; }
.devices li.wide { grid-column: span 2; }
.devices figure { margin: 0; padding: 18px 16px 14px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.devices img { width: 100%; height: 116px; object-fit: contain; }
.devices li.wide img { height: 176px; }
.devices figcaption { margin-top: 10px; text-align: center; }
.devices b { display: block; font: 800 16px/1.2 var(--display); }
.devices span { display: block; margin-top: 2px; font: 600 12.5px/1.3 var(--mono); color: var(--ink-3); }
.devices li.wide span { color: var(--blue); }

/* kernel terminal */
.terminal { scroll-margin-top: 72px; margin-top: 36px; border-radius: 18px; overflow: hidden; background: var(--term); color: var(--term-ink); border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 14px; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #262b36; }
.term-bar svg { width: 22px; height: 22px; color: #f2c14e; flex: none; }
.term-bar code { color: var(--term-dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log { list-style: none; margin: 0; padding: 8px 0; }
.log li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 18px; }
.log li:hover { background: #161b26; }
.log a { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.log a:hover span { text-decoration: underline; text-decoration-color: #8fb0ff; }
.log svg { width: 18px; height: 18px; color: #8fb0ff; flex: none; }
.sha { color: #f2c14e; font-weight: 800; font-variant-numeric: tabular-nums; }
.log time { color: var(--term-dim); flex: none; }
.term-more { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px 16px; color: #8fb0ff; text-decoration: none; font-size: 12.5px; }
.term-more svg { width: 14px; height: 14px; }

/* contact */
.coda { margin-top: 88px; padding: 64px 0; border-top: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.coda p { margin: 0; font: 900 clamp(26px, 3.4vw, 40px)/1.1 var(--display); max-width: 640px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 999px;
  font: 700 15px/1 var(--mono); box-shadow: 5px 5px 0 var(--blue);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--blue); }
.cta svg { width: 18px; height: 18px; }

/* footer: patents */
.footer { background: var(--ink); color: var(--paper); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px 24px 36px; }
.footer h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 900 30px/1 var(--display); }
.footer h2 svg { width: 28px; height: 28px; }
.footer h2 .all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--mono); text-decoration: none; opacity: .8; }
.footer h2 .all svg { width: 14px; height: 14px; }
.footer h2 .all:hover { color: #8fb0ff; opacity: 1; }
.patents { list-style: none; padding: 0; margin: 0; }
.patents li {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  font-size: 15px;
}
.patents .yr, .patents .n { font: 400 12.5px/1.4 var(--mono); opacity: .65; }
.patents .n { text-align: right; opacity: .8; }
.patents a { text-decoration-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.patents a:hover { color: #8fb0ff; }
.sign { margin-top: 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font: 400 12.5px/1 var(--mono); opacity: .8; }
.sign nav { display: flex; gap: 18px; flex-wrap: wrap; }
.sign a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.sign a:hover { color: #8fb0ff; }
.sign svg { width: 15px; height: 15px; }

/* below laptop width the rail turns into a sticky strip across the top */
@media (max-width: 1100px) {
  .career { grid-template-columns: 1fr; gap: 0; }
  .rail {
    top: 0; z-index: 5; padding: 10px 0; margin: 0 -24px; padding-inline: 24px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    overflow-x: auto; scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail ol { display: flex; gap: 6px; width: max-content; }
  .rail ol::before, .rail a::before, .rail small { display: none; }
  .rail a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); white-space: nowrap; }
  .rail .when { display: inline; font-size: 11px; margin-right: 6px; }
  .rail b { display: inline; font-size: 14px; }
  .rail a.on { border-color: var(--blue); background: var(--blue-soft); }
  .block { scroll-margin-top: 64px; }
}

/* small screens */
@media (max-width: 980px) {
  .clover-body, .split { grid-template-columns: 1fr; gap: 32px; }
  .clover-text { position: static; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { padding: 16px; }
  .links span { display: none; }
  .links a { padding: 8px; }
  main { padding: 0 16px; }
  .footer-inner { padding: 44px 16px 32px; }
  .lede { font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .block { padding-top: 64px; }
  .rail { margin: 0 -16px; padding-inline: 16px; }
  .photo img { height: 300px; }
  .projects { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; padding: 22px; }
  .intro { font-size: 17px; }
  .stories { grid-template-columns: 1fr; }
  .devices img { height: 104px; }
  .devices li.wide img { height: 150px; }
  .log li { flex-direction: column; gap: 2px; }
  .log time { padding-left: 28px; }
  .patents li { grid-template-columns: 1fr; gap: 4px; }
  .patents .n { text-align: left; }
  .coda { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project, .cta { transition: none; }
}

/* phones: the hero scales down as one piece, so enlarge its small type */
@media (max-width: 600px) {
  .sketch .marks { display: none; }
  .sketch .surname { font-size: 44px; letter-spacing: .3em; }
  .sketch .note { font-size: 88px; }
}
