:root {
  --paper: #f8fafc;
  --ink: #1b2b3a;
  --muted: #536476;
  --blue: #2856bd;
  --deep-blue: #213f7d;
  --pale-blue: #eef3fa;
  --line: #cfd9e6;
  --max-width: 1152px;
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #dc7900; outline-offset: 6px; border-radius: 2px; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
img { display: block; max-width: 100%; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
h1, h2, h3, p { margin-top: 0; }
p { line-height: 1.7; }
.wrap { width: min(var(--max-width), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -70px; background: white; color: var(--ink); padding: 12px 18px; z-index: 5; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 33px; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.4px; }
.mark { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }
nav { display: flex; gap: 34px; font-size: 14px; font-weight: 550; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 7px 13px; }
.hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 70px; align-items: center; padding-block: 76px 113px; }
.role { color: var(--blue); font-size: 16px; margin-bottom: 24px; }
h1 { font-weight: 600; font-size: clamp(66px, 8.7vw, 114px); line-height: .98; letter-spacing: -.071em; margin-left: -7px; margin-bottom: 34px; }
.period { color: var(--blue); }
.intro { max-width: 450px; font-size: 21px; line-height: 1.55; letter-spacing: -.25px; margin-bottom: 30px; color: var(--muted); }
.hero-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: white; font-size: 14px; font-weight: 600; padding: 15px 22px; border-radius: 4px; line-height: 1.4; transition: background .15s; }
.button:hover { background: var(--deep-blue); text-decoration: none; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; line-height: 1.5; }
.portrait { margin: 29px 0 0; max-width: 390px; justify-self: end; }
.portrait-frame { overflow: hidden; border-radius: 7px 7px 0 0; background: #18222d; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption { background: var(--pale-blue); padding: 21px 25px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; line-height: 1.55; font-weight: 550; border-radius: 0 0 7px 7px; }
.portrait-symbol { font-family: Georgia, serif; font-size: 40px; color: var(--blue); font-weight: 400; }
.work-section { padding-block: 0 98px; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 38px; }
h2 { font-size: clamp(34px, 4vw, 49px); line-height: 1.15; font-weight: 550; letter-spacing: -2px; margin-bottom: 0; }
.section-intro > p { font-size: 17px; max-width: 420px; color: var(--muted); margin-bottom: 0; }
.featured-work { background: var(--deep-blue); color: white; border-radius: 8px; padding: 52px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 55px; overflow: hidden; }
.context { font-size: 13px; margin-bottom: 18px; font-weight: 550; color: var(--muted); }
.featured-work .context { color: #c2d4fb; }
h3 { font-size: 32px; line-height: 1.2; letter-spacing: -1px; font-weight: 550; margin-bottom: 18px; }
.featured-copy > p:not(.context) { font-size: 16px; max-width: 435px; color: #e0e9fb; margin-bottom: 26px; }
.light-link { color: white; }
.runtime-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 9px; }
.agent-node { border: 1px solid #8faadd; border-radius: 6px; font-size: 15px; width: 112px; text-align: center; padding: 13px; background: #34558e; }
.connector { width: 1px; height: 33px; background: #8faadd; }
.runtime-boundary { border: 1px dashed #9cb6e5; border-radius: 16px; padding: 34px 24px 24px; display: flex; gap: 17px; position: relative; }
.boundary-label { position: absolute; top: -11px; left: 22px; padding: 0 10px; font-size: 12px; background: var(--deep-blue); color: #d4e3ff; }
.tool-node { background: #f1f5fc; border-radius: 6px; color: #203e75; width: 110px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; font-size: 14px; }
.code-symbol { font-family: Georgia, serif; font-size: 30px; height: 31px; line-height: 31px; }
.browser-symbol { display: block; width: 33px; height: 27px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; margin-block: 2px; }
.browser-symbol::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-bottom: 1px solid currentColor; }
.figure-caption { font-size: 12px; color: #c2d4fb; margin-top: 19px; }
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 82px; padding-top: 48px; }
.work-item { padding-right: 22px; }
.work-item p:not(.context) { color: var(--muted); max-width: 430px; font-size: 16px; margin-bottom: 24px; }
.about-section { background: var(--pale-blue); padding-block: 81px; }
.about-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 100px; }
.about-title p { margin-top: 26px; font-size: 14px; color: var(--muted); }
.about-copy { max-width: 600px; }
.about-copy > p { font-size: 17px; color: var(--muted); }
.about-copy .large-copy { font-size: 28px; line-height: 1.42; color: var(--ink); letter-spacing: -.6px; margin-bottom: 28px; }
.notebook-link { margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--line); }
.notebook-link h3 { font-size: 18px; letter-spacing: -.3px; margin-bottom: 6px; }
.notebook-link p { font-size: 14px; color: var(--muted); margin-bottom: 15px; }
.contact-section { padding-block: 88px; display: flex; justify-content: space-between; align-items: center; gap: 70px; }
.contact-section h2 { font-size: clamp(34px, 4vw, 45px); }
.contact-section p { color: var(--muted); max-width: 610px; margin: 20px 0 0; font-size: 17px; }
.contact-section .button { flex-shrink: 0; }
.site-footer { padding-block: 28px 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.site-footer > div { display: flex; gap: 26px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 40px; padding-block: 56px 86px; }
  .featured-work { padding: 38px; gap: 28px; }
  .runtime-boundary { padding-inline: 17px; gap: 12px; }
  .tool-node { width: 88px; height: 100px; }
  .about-layout { gap: 60px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 23px; position: relative; gap: 12px; }
  nav { gap: 17px; font-size: 12px; }
  .wordmark { font-size: 15px; }
  .hero { grid-template-columns: 1fr; gap: 37px; padding-block: 39px 65px; }
  h1 { font-size: clamp(70px, 17vw, 108px); margin-left: -4px; margin-bottom: 28px; }
  .role { margin-bottom: 20px; }
  .intro { font-size: 19px; max-width: 480px; }
  .portrait { display: flex; max-width: none; width: 100%; margin: 0; justify-self: stretch; background: var(--pale-blue); border-radius: 6px; overflow: hidden; }
  .portrait-frame { width: 130px; flex-shrink: 0; border-radius: 0; }
  .portrait figcaption { width: 100%; padding: 17px 21px; gap: 12px; border-radius: 0; }
  .portrait-symbol { font-size: 34px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
  h2 { font-size: 37px; letter-spacing: -1.5px; }
  .section-intro h2 br { display: none; }
  .section-intro > p { font-size: 16px; }
  .featured-work { grid-template-columns: 1fr; padding: 30px 25px; gap: 33px; }
  h3 { font-size: 28px; }
  .featured-copy > p:not(.context) { font-size: 15px; }
  .runtime-figure { padding-bottom: 3px; }
  .runtime-boundary { padding-inline: 30px; gap: 23px; }
  .tool-node { width: 100px; }
  .work-pair { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .work-item { padding-right: 0; }
  .work-item h3 br { display: none; }
  .work-section { padding-bottom: 60px; }
  .about-section { padding-block: 53px; }
  .about-layout { grid-template-columns: 1fr; gap: 24px; }
  .about-title h2 br { display: none; }
  .about-title p { margin-top: 18px; margin-bottom: 0; }
  .about-copy .large-copy { font-size: 25px; }
  .contact-section { display: block; padding-block: 59px; }
  .contact-section p { font-size: 16px; }
  .contact-section .button { margin-top: 25px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-block: 25px; }
}
@media (max-width: 390px) {
  .menu-toggle:not([hidden]) { display: block; }
  .js nav { display: none; }
  .js nav[data-open="true"] { display: flex; position: absolute; left: 0; right: 0; top: 67px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); z-index: 3; justify-content: space-between; }
  .runtime-boundary { padding-inline: 18px; gap: 16px; }
  .portrait-frame { width: 112px; }
  .portrait figcaption { padding: 15px; font-size: 13px; }
  .portrait-symbol { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
