/* Jacob Arroyo — a little space to think. */
:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --surface: #fff;
  --ink: #202124;
  --muted: #65676c;
  --faint: #696b70;
  --line: #dedfdd;
  --blue: #3158c8;
  --blue-hover: #2447ac;
  --header: rgba(247, 247, 245, .88);
  --soft: #eeefed;
  --focus: #3158c8;
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171819;
  --surface: #202123;
  --ink: #f0f0ed;
  --muted: #b0b3ba;
  --faint: #a0a3aa;
  --line: #343638;
  --blue: #8ca8ff;
  --blue-hover: #adc0ff;
  --header: rgba(23, 24, 25, .88);
  --soft: #242628;
  --focus: #a1b7ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button, summary { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; }
button svg, a svg { flex-shrink: 0; }
button { border: 0; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
::selection { color: var(--ink); background: #b9caf370; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
.print-heading { display: none; }

.wrap { width: min(1160px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: 116px; }
.eyebrow { margin-bottom: 22px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .105em; line-height: 1.5; text-transform: uppercase; }
.section-heading { margin-bottom: 64px; }
.section-heading h2, .about-layout h2, .now-heading h2 { max-width: 740px; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.12; letter-spacing: -.045em; }
.section-intro { max-width: 540px; margin-top: 22px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 20px; transform: translateY(-160%); border-radius: 8px; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }

/* Quiet, always-available navigation. */
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: var(--header); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.nav-shell { display: flex; align-items: center; min-height: 80px; gap: 40px; }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; font-size: 19px; font-weight: 600; letter-spacing: -.055em; white-space: nowrap; }
.wordmark-dot { width: 5px; height: 5px; margin: 8px 0 0 3px; border-radius: 50%; background: var(--blue); font-size: 0; line-height: 0; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 29px; margin-inline: auto; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="location"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.theme-toggle { display: grid; width: 44px; height: 44px; padding: 12px; place-items: center; border-radius: 50%; background: transparent; color: var(--muted); transition: background .2s ease, color .2s ease; }
.theme-toggle:hover { background: var(--soft); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.contact-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.contact-link svg { width: 14px; height: 14px; }

/* The introduction is intentionally the most spacious moment. */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 68px; padding-top: 105px; padding-bottom: 84px; }
.hero-copy { padding-block: 12px; }
.hero .eyebrow { margin-bottom: 28px; font-size: 11px; letter-spacing: .075em; }
.hero h1 { margin-bottom: 31px; font-size: clamp(50px, 6.1vw, 76px); line-height: 1.055; letter-spacing: -.063em; }
.hero h1 span { color: var(--muted); }
.hero-intro { max-width: 490px; margin-bottom: 15px; font-size: 22px; font-weight: 500; letter-spacing: -.023em; line-height: 1.45; }
.hero-description { max-width: 460px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 13px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { transform: translateY(-2px); background: var(--blue-hover); }
:root[data-theme="dark"] .button-primary { color: #121b32; }
.button svg { width: 15px; height: 15px; }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; gap: 11px; padding: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-portrait { width: 100%; max-width: 420px; justify-self: end; }
.hero-portrait picture { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 26px; background: var(--soft); }
.hero-portrait img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 40%; }
.hero-portrait figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hero-portrait figcaption span:first-child { color: var(--ink); font-weight: 500; }

.expertise-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 29px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.expertise-strip > div { position: relative; display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 11px; padding-right: 32px; }
.expertise-strip > div + div { padding-left: 33px; border-left: 1px solid var(--line); }
.expertise-strip .index { padding-top: 3px; color: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.expertise-strip p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.expertise-strip strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -.015em; }

/* Work history keeps a familiar resume rhythm, with optional depth. */
.experience-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 60px; }
.experience-aside { padding-top: 24px; }
.experience-aside p { max-width: 150px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.experience-marker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.6; }
.experience-marker::before { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); content: ""; }
.experience-aside .print-button { margin-top: 17px; font-size: 11px; }
.timeline { border-top: 1px solid var(--line); }
.experience-item { border-bottom: 1px solid var(--line); }
.experience-item summary { display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; align-items: start; gap: 26px; padding-block: 30px; list-style: none; cursor: pointer; }
.experience-item summary::-webkit-details-marker { display: none; }
.experience-period { padding-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.role-kicker { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.experience-item h3 { margin-bottom: 9px; font-size: 22px; letter-spacing: -.03em; line-height: 1.3; }
.summary-text { max-width: 490px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.expand-icon { position: relative; display: grid; width: 28px; height: 28px; place-items: center; margin-top: 2px; color: var(--muted); font-size: 22px; font-weight: 300; line-height: 1; transition: transform .25s ease, color .2s ease; }
.expand-icon:empty::before { content: "+"; }
.expand-icon svg { width: 17px; height: 17px; }
.experience-item summary:hover .expand-icon { color: var(--blue); }
.experience-item[open] .expand-icon { transform: rotate(45deg); }
.experience-body { padding: 0 54px 32px 138px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.experience-body > p { margin-bottom: 18px; }
.experience-body ul { margin: 17px 0 24px; padding-left: 18px; }
.experience-body li { padding-left: 5px; margin-block: 7px; }
.experience-body li::marker { color: var(--faint); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.tag-list span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }

/* A working example gives the visitor something to explore. */
.work { padding-top: 107px; padding-bottom: 105px; background: var(--soft); }
.work .section-heading { margin-bottom: 44px; }
.featured-project { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 58px; overflow: hidden; padding: 51px 46px; border-radius: var(--radius); background: #232529; color: #f3f4f4; }
.project-copy .eyebrow { margin-bottom: 20px; color: #a9afb9; font-size: 10px; }
.project-copy h3 { max-width: 340px; margin-bottom: 20px; font-size: 35px; line-height: 1.13; letter-spacing: -.04em; }
.project-copy > p:not(.eyebrow) { max-width: 350px; color: #b9bdc5; font-size: 14px; line-height: 1.75; }
.project-copy .text-link { margin-top: 23px; color: #f3f4f4; }
.workflow-demo { padding: 22px; border: 1px solid #45474c; border-radius: 14px; background: #2b2d31; }
.demo-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.demo-topline > span { color: #b9bdc5; font-size: 10px; font-weight: 500; letter-spacing: .045em; }
.demo-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: -9px -9px -9px 0; padding: 9px 11px; border-radius: 6px; background: transparent; color: #e2e6ee; font-size: 10px; font-weight: 500; transition: background .2s ease; }
.demo-toggle:hover { background: #3a3d44; }
.demo-toggle svg { width: 12px; height: 12px; }
.demo-toggle[aria-pressed="true"] { color: #a5bcff; }
.toggle-track { position: relative; flex: 0 0 24px; width: 24px; height: 14px; border: 1px solid #6b7079; border-radius: 10px; background: #42464f; transition: background .25s ease, border-color .25s ease; }
.toggle-track::after { position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #c0c6d0; content: ""; transition: transform .25s ease, background .25s ease; }
.demo-toggle[aria-pressed="true"] .toggle-track { border-color: #7f9bde; background: #4b68a9; }
.demo-toggle[aria-pressed="true"] .toggle-track::after { transform: translateX(10px); background: #e3eaff; }
.workflow-canvas { display: flex; align-items: center; gap: 9px; }
.workflow-node { position: relative; flex: 1; min-width: 0; min-height: 105px; padding: 13px 10px; border: 1px solid #555960; border-radius: 9px; background: #32353a; transition: border-color .35s ease, background .35s ease, transform .35s ease; }
.node-number { display: inline-grid; width: 19px; height: 19px; place-items: center; margin-bottom: 12px; border: 1px solid #686c74; border-radius: 50%; color: #bfc4cc; font-size: 9px; line-height: 1; }
.workflow-node strong { display: block; color: #e8eaee; font-size: 11px; font-weight: 500; line-height: 1.5; }
.workflow-node small { display: block; margin-top: 3px; color: #9da4b0; font-size: 9px; line-height: 1.5; }
.flow-connector { position: relative; flex: 0 0 14px; height: 1px; background: #636871; color: transparent; font-size: 0; transition: background .35s ease; }
.flow-connector::after { position: absolute; top: -2px; right: 0; width: 5px; height: 5px; border-top: 1px solid #636871; border-right: 1px solid #636871; content: ""; transform: rotate(45deg); }
.workflow-node.is-active, .workflow-node[data-state="active"] { transform: translateY(-3px); border-color: #a1b8fb; background: #36425d; }
.workflow-node.is-active .node-number, .workflow-node.is-complete .node-number, .workflow-node[data-state="active"] .node-number, .workflow-node[data-state="complete"] .node-number { border-color: #8cabea; color: #c1d2ff; }
.workflow-node.is-complete, .workflow-node[data-state="complete"] { border-color: #7d92c1; background: #303a4e; }
.flow-connector.is-active { background: #a1b8fb; }
.flow-connector.is-active::after { border-color: #a1b8fb; }
.demo-result { display: flex; align-items: flex-start; gap: 9px; min-height: 53px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #45484f; }
.demo-result > span { flex-shrink: 0; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #8b95a6; transition: background .3s ease; }
.demo-result > .result-label { width: auto; height: auto; margin-top: 1px; border-radius: 0; background: transparent; color: #aeb5c0; font-size: 9px; font-weight: 600; letter-spacing: .05em; line-height: 1.65; text-transform: uppercase; }
.demo-result p { color: #aeb5c0; font-size: 10px; line-height: 1.65; }
.demo-result.is-visible > span, .workflow-demo.is-complete .demo-result > span, .workflow-demo.is-running .demo-result > span { background: #9eb6f5; }
.workflow-demo.is-running .demo-result > .result-label { background: transparent; color: #c1d2ff; }
.demo-result.is-visible p { color: #c7d4f5; }
.demo-disclaimer { margin-top: 13px; color: #9da4b0; font-size: 9px; line-height: 1.65; }
.project-list { margin-top: 34px; }
.project-row { display: grid; grid-template-columns: 42px 1fr 48px; align-items: center; gap: 23px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.project-number { align-self: start; padding-top: 3px; color: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.project-row .eyebrow { margin-bottom: 7px; font-size: 9px; }
.project-row h3 { margin-bottom: 6px; font-size: 22px; letter-spacing: -.03em; line-height: 1.3; }
.project-row p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.project-open { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 20px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.project-open svg { width: 18px; height: 18px; }
.project-open:hover { transform: translate(2px, -2px); border-color: var(--faint); background: var(--surface); }

.about-layout { display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: 125px; }
.about-layout h2 { max-width: 490px; margin-bottom: 28px; }
.about-copy { max-width: 480px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.about-copy + .about-copy { margin-top: 18px; }
.interest-panel { overflow: hidden; min-height: 305px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.interest-tabs { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.interest-tabs [role="tab"] { position: relative; min-height: 60px; padding: 18px 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
.interest-tabs [role="tab"]::after { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: transparent; content: ""; transition: background .2s ease; }
.interest-tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.interest-tabs [role="tab"][aria-selected="true"]::after { background: var(--blue); }
.interest-content { padding-block: 29px 32px; }
.interest-icon { width: 44px; height: 44px; margin-bottom: 19px; color: var(--blue); stroke-width: 2.2; }
.interest-content h3 { margin-bottom: 11px; font-size: 21px; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.interest-content p { color: var(--muted); font-size: 14px; line-height: 1.8; }

.now { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 58px; padding-bottom: 74px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.now-heading .eyebrow { margin-bottom: 18px; }
.now-heading h2 { font-size: 35px; }
.now-heading > p:not(.eyebrow) { margin-top: 20px; color: var(--faint); font-size: 11px; }
.now-dot { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--blue); vertical-align: 2px; }
.now-list p { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding-block: 17px; }
.now-list p:first-child { padding-top: 0; }
.now-list p + p { border-top: 1px solid var(--line); }
.now-list p > span { padding-top: 1px; color: var(--faint); font-size: 11px; }
.now-list strong { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.7; }
.connect { max-width: 750px; padding-top: 105px; padding-bottom: 111px; text-align: center; }
.connect .eyebrow { margin-bottom: 24px; }
.connect h2 { margin-bottom: 24px; font-size: clamp(40px, 5vw, 62px); line-height: 1.1; letter-spacing: -.05em; }
.connect > p:not(.eyebrow) { max-width: 470px; margin-inline: auto; margin-bottom: 29px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 93px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--ink); }

/* Native dialogs preserve the page context and keyboard behavior. */
.project-dialog { width: min(680px, calc(100% - 40px)); max-height: min(780px, calc(100dvh - 64px)); margin: auto; padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 90px #0003; }
.project-dialog::backdrop { background: #10111485; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-close { position: sticky; z-index: 1; top: 18px; display: grid; width: 44px; height: 44px; place-items: center; margin: 18px 18px -34px auto; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--muted); font-size: 25px; line-height: 1; }
.dialog-close:hover { background: var(--soft); color: var(--ink); }
.dialog-close svg { width: 18px; height: 18px; }
.dialog-content { padding: 55px 48px 46px; }
.dialog-content .eyebrow { padding-right: 30px; margin-bottom: 22px; }
.dialog-content h2 { max-width: 490px; margin-bottom: 24px; font-size: 38px; line-height: 1.15; letter-spacing: -.04em; }
.dialog-content > p { margin-block: 17px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.dialog-content > .dialog-lede { color: var(--muted); font-size: 17px; line-height: 1.75; }
.dialog-content > .project-note { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.dialog-content dl { display: grid; grid-template-columns: 110px 1fr; gap: 15px 22px; margin: 29px 0; padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.75; }
.dialog-content dt { color: var(--faint); }
.dialog-content dd { margin: 0; color: var(--muted); }
.dialog-content ul { padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.dialog-content li { padding-left: 5px; margin-block: 9px; }
.dialog-content h3 { margin-top: 29px; font-size: 18px; letter-spacing: -.02em; }

.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .65, .3, 1); }
.js-ready .reveal.is-visible, .js-ready .reveal.visible { opacity: 1; transform: translateY(0); }
html:not(.js-ready) .theme-toggle, html:not(.js-ready) .demo-toggle, html:not(.js-ready) .print-button, html:not(.js-ready) .interest-tabs, html:not(.js-ready) .dialog-close { display: none; }
html:not(.js-ready) .interest-content[hidden] { display: block !important; }
html:not(.js-ready) .interest-content + .interest-content { border-top: 1px solid var(--line); }
html:not(.js-ready) .project-dialog:target { position: relative; inset: auto; display: block; max-height: none; margin: 2rem auto; }

@media (min-width: 1440px) {
  .hero { padding-top: 122px; padding-bottom: 102px; }
}

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 80px); }
  .nav-shell { gap: 25px; }
  .primary-nav { gap: 21px; }
  .header-actions { gap: 10px; }
  .hero { gap: 42px; padding-top: 83px; }
  .hero h1 { font-size: clamp(48px, 6.4vw, 68px); }
  .hero-intro { font-size: 20px; }
  .experience-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 35px; }
  .experience-item summary { grid-template-columns: 93px minmax(0, 1fr) 26px; gap: 20px; }
  .experience-body { padding-left: 113px; }
  .featured-project { gap: 34px; padding: 40px 32px; }
  .project-copy h3 { font-size: 31px; }
  .workflow-demo { padding: 18px; }
  .workflow-canvas { gap: 6px; }
  .workflow-node { padding-inline: 8px; }
  .flow-connector { flex-basis: 10px; }
  .about-layout { gap: 70px; }
}

@media (max-width: 850px) {
  .wrap { width: calc(100% - 56px); }
  .section { padding-block: 85px; }
  .nav-shell { gap: 20px; }
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: 12px; }
  .header-actions { gap: 7px; }
  .contact-link { font-size: 12px; }
  .hero { gap: 34px; padding-top: 72px; padding-bottom: 64px; }
  .hero .eyebrow { max-width: 210px; font-size: 10px; }
  .hero h1 { font-size: 51px; }
  .hero-intro { font-size: 18px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 18px; margin-top: 24px; }
  .hero-portrait figcaption { font-size: 9px; }
  .expertise-strip > div { grid-template-columns: 20px 1fr; gap: 7px; padding-right: 17px; }
  .expertise-strip > div + div { padding-left: 20px; }
  .expertise-strip strong { font-size: 13px; }
  .expertise-strip p { font-size: 12px; }
  .section-heading { margin-bottom: 46px; }
  .section-intro { font-size: 16px; }
  .experience-layout { grid-template-columns: 1fr; gap: 28px; }
  .experience-aside { padding: 0; }
  .experience-aside p { max-width: none; }
  .experience-item summary { grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 26px; }
  .experience-body { padding-left: 138px; }
  .featured-project { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .project-copy h3 { max-width: 400px; font-size: 35px; }
  .project-copy > p:not(.eyebrow) { max-width: 530px; }
  .workflow-demo { max-width: 540px; padding: 23px; }
  .workflow-canvas { gap: 12px; }
  .workflow-node { min-height: 112px; padding: 16px; }
  .workflow-node strong { font-size: 12px; }
  .workflow-node small { font-size: 10px; }
  .flow-connector { flex-basis: 20px; }
  .about-layout { grid-template-columns: 1fr 1fr; align-items: start; gap: 45px; }
  .about-copy { font-size: 15px; }
  .interest-tabs { gap: 8px; }
  .interest-tabs [role="tab"] { font-size: 11px; }
  .now { gap: 45px; padding-block: 55px; }
  .now-list p { grid-template-columns: 65px 1fr; gap: 14px; }
  .connect { padding-block: 85px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 133px; }
  .wrap { width: calc(100% - 40px); }
  .nav-shell { flex-wrap: wrap; justify-content: space-between; gap: 0; min-height: 108px; padding-top: 9px; }
  .wordmark { font-size: 19px; }
  .header-actions { gap: 14px; }
  .primary-nav { order: 3; justify-content: space-between; width: 100%; gap: 22px; margin-inline: 0; }
  .primary-nav a { min-height: 45px; font-size: 12px; }
  .contact-link { font-size: 12px; }
  .section { padding-block: 70px; }
  .hero { grid-template-columns: 1fr; gap: 41px; padding-top: 53px; padding-bottom: 44px; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { max-width: none; margin-bottom: 24px; font-size: 10px; letter-spacing: .07em; }
  .hero h1 { max-width: 530px; margin-bottom: 25px; font-size: clamp(46px, 9.8vw, 64px); line-height: 1.06; }
  .hero-intro { max-width: 480px; margin-bottom: 13px; font-size: 21px; }
  .hero-description { max-width: 500px; font-size: 16px; line-height: 1.75; }
  .hero-actions { gap: 24px; margin-top: 25px; }
  .hero-portrait { width: min(100%, 370px); max-width: 370px; justify-self: center; }
  .hero-portrait picture { border-radius: 20px; }
  .hero-portrait figcaption { margin-top: 12px; font-size: 10px; }
  .expertise-strip { grid-template-columns: 1fr; padding-block: 6px; }
  .expertise-strip > div, .expertise-strip > div + div { grid-template-columns: 29px 1fr; gap: 12px; padding: 20px 0; border-left: 0; }
  .expertise-strip > div + div { border-top: 1px solid var(--line); }
  .expertise-strip .index { padding-top: 2px; font-size: 10px; }
  .expertise-strip p { font-size: 14px; }
  .expertise-strip strong { margin-bottom: 3px; font-size: 15px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .about-layout h2 { font-size: 38px; line-height: 1.14; }
  .eyebrow { margin-bottom: 20px; font-size: 11px; }
  .section-intro { margin-top: 20px; font-size: 16px; }
  .experience-layout { gap: 24px; }
  .experience-aside p { font-size: 12px; }
  .experience-item summary { grid-template-columns: minmax(0, 1fr) 28px; gap: 0 15px; padding-block: 25px; }
  .experience-period { grid-column: 1; margin-bottom: 13px; padding: 0; font-size: 11px; }
  .experience-item summary > div { grid-column: 1; }
  .experience-item .expand-icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .experience-item h3 { margin-bottom: 8px; font-size: 23px; }
  .role-kicker { margin-bottom: 5px; font-size: 10px; }
  .summary-text { font-size: 16px; line-height: 1.7; }
  .experience-body { padding: 0 25px 28px 0; font-size: 16px; line-height: 1.8; }
  .tag-list span { font-size: 11px; }
  .work { padding-block: 70px; }
  .featured-project { gap: 30px; padding: 30px 23px; border-radius: 17px; }
  .project-copy h3 { margin-bottom: 18px; font-size: 33px; }
  .project-copy > p:not(.eyebrow) { font-size: 16px; }
  .project-copy .text-link { margin-top: 19px; font-size: 14px; }
  .workflow-demo { padding: 18px 14px; border-radius: 10px; }
  .demo-topline { margin-bottom: 25px; }
  .demo-topline > span { font-size: 9px; }
  .workflow-canvas { gap: 7px; }
  .workflow-node { min-height: 112px; padding: 11px 8px; }
  .workflow-node strong { font-size: 10px; }
  .workflow-node small { font-size: 9px; }
  .flow-connector { flex-basis: 10px; }
  .demo-result { margin-top: 20px; }
  .demo-result p { font-size: 10px; }
  .project-list { margin-top: 18px; }
  .project-row { grid-template-columns: 23px minmax(0, 1fr) 44px; gap: 13px; padding-block: 27px; }
  .project-row h3 { font-size: 21px; }
  .project-row p:not(.eyebrow) { font-size: 16px; }
  .project-row .eyebrow { font-size: 9px; }
  .project-open { align-self: start; margin-top: 16px; }
  .about-layout { grid-template-columns: 1fr; gap: 38px; }
  .about-layout h2 { max-width: 420px; margin-bottom: 22px; }
  .about-copy { max-width: 500px; font-size: 16px; }
  .interest-panel { min-height: 295px; }
  .interest-tabs { gap: 24px; }
  .interest-tabs [role="tab"] { min-height: 58px; font-size: 13px; }
  .interest-content { padding-block: 25px 29px; }
  .interest-content p { font-size: 16px; }
  .interest-content h3 { font-size: 23px; }
  .now { grid-template-columns: 1fr; gap: 31px; padding-block: 47px; }
  .now-heading h2 { font-size: 35px; }
  .now-list p { grid-template-columns: 80px 1fr; gap: 18px; padding-block: 18px; }
  .now-list p > span { padding-top: 3px; font-size: 12px; }
  .now-list strong { font-size: 16px; }
  .connect { padding-top: 78px; padding-bottom: 75px; }
  .connect h2 { font-size: 43px; }
  .connect > p:not(.eyebrow) { font-size: 16px; }
  .site-footer { flex-wrap: wrap; gap: 5px 16px; min-height: 100px; font-size: 10px; }
  .site-footer > :first-child { flex: 1 0 60%; }
  .dialog-content { padding: 55px 25px 31px; }
  .dialog-content h2 { font-size: 33px; }
  .dialog-content > p, .dialog-content ul { font-size: 16px; }
  .dialog-content dl { grid-template-columns: 82px 1fr; gap: 14px 16px; font-size: 13px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 45px; }
  .hero .eyebrow { font-size: 9px; }
  .hero-actions { gap: 17px; }
  .button { padding-inline: 19px; }
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: 11px; }
  .featured-project { padding-inline: 18px; }
  .workflow-demo { padding-inline: 11px; }
  .workflow-canvas { gap: 5px; }
  .flow-connector { flex-basis: 6px; }
  .workflow-node { padding-inline: 6px; }
  .project-row { grid-template-columns: 18px minmax(0, 1fr) 44px; gap: 10px; }
  .interest-tabs { gap: 14px; }
  .interest-tabs [role="tab"] { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
  .button-primary:hover, .text-link:hover svg, .project-open:hover, .workflow-node.is-active, .workflow-node[data-state="active"] { transform: none; }
}

@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --paper: #fff; --surface: #fff; --ink: #111; --muted: #444; --faint: #666; --line: #ccc; --blue: #111; --soft: #fff; }
  @page { margin: 16mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 10pt; }
  .wrap { width: 100%; }
  .site-header, .skip-link, .hero-actions, .theme-toggle, .project-open, .demo-toggle, .expand-icon, .connect .button, .project-copy .text-link, .site-footer a, .print-button, dialog, .interest-tabs { display: none !important; }
  .print-heading { display: block; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .print-heading strong { display: block; font-size: 27pt; font-weight: 600; letter-spacing: -.035em; }
  .print-heading p { margin-top: 4px; color: var(--muted); font-size: 10pt; }
  .hero h1, .hero .eyebrow, .hero-portrait, .expertise-strip, .about, .now, .connect, .site-footer { display: none !important; }
  .hero { display: block !important; }
  .hero-copy { padding-top: 18px; }
  .hero-intro, .hero-description { max-width: none; }
  .experience .section-heading { margin-bottom: 12px; }
  .experience .section-heading h2, .experience .section-intro { display: none; }
  .experience .section-heading .eyebrow { margin-bottom: 0; }
  .section { padding-block: 28px; }
  .js-ready .reveal { opacity: 1; transform: none; }
  .hero { grid-template-columns: 1fr 140px; gap: 30px; padding-top: 0; padding-bottom: 25px; }
  .hero h1 { margin-bottom: 15px; font-size: 34pt; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-intro { font-size: 13pt; }
  .hero-description, .about-copy, .summary-text, .experience-body, .project-row p:not(.eyebrow), .now-list strong { font-size: 10pt; }
  .hero-portrait { width: 140px; }
  .hero-portrait picture { border-radius: 10px; }
  .hero-portrait figcaption { display: none; }
  .expertise-strip { grid-template-columns: repeat(3, 1fr); padding-block: 18px; }
  .expertise-strip > div, .expertise-strip > div + div { padding-block: 0; border-top: 0; }
  .expertise-strip > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
  .expertise-strip p { font-size: 8pt; }
  .expertise-strip strong { font-size: 9pt; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2, .about-layout h2, .now-heading h2, .connect h2 { font-size: 24pt; }
  .section-intro { margin-top: 12px; font-size: 10pt; }
  .experience-layout { display: block; }
  .experience-aside { display: none; }
  .experience-item { break-inside: avoid; }
  .experience-item summary { grid-template-columns: 85px 1fr; gap: 15px; padding-block: 18px; }
  .experience-item summary > div { grid-column: 2; }
  .experience-period { grid-column: 1; margin: 0; }
  .experience-item h3 { font-size: 15pt; }
  .experience-body { padding: 0 0 18px 100px; }
  .experience-body ul { margin-block: 10px; }
  .tag-list { margin-top: 12px; }
  .tag-list span { font-size: 7pt; }
  .featured-project { grid-template-columns: 1fr; gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: #111; }
  .project-copy .eyebrow, .project-copy > p:not(.eyebrow) { max-width: none; color: #444; font-size: 10pt; }
  .project-copy h3 { max-width: none; font-size: 20pt; }
  .workflow-demo { display: none; }
  .project-list { margin-top: 8px; }
  .project-row { grid-template-columns: 25px 1fr; padding-block: 17px; break-inside: avoid; }
  .project-row h3 { font-size: 15pt; }
  .about-layout { grid-template-columns: 1fr 1fr; gap: 35px; }
  .about-layout h2 { margin-bottom: 15px; }
  .interest-panel { min-height: 0; padding-top: 15px; }
  .interest-content { padding: 0 0 15px; }
  .interest-content p { font-size: 10pt; }
  .interest-content h3 { font-size: 14pt; }
  .interest-icon { width: 20px; height: 20px; margin-bottom: 10px; }
  .now { grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 25px; }
  .now-list p { grid-template-columns: 60px 1fr; gap: 12px; padding-block: 10px; }
  .now-list p > span { font-size: 8pt; }
  .connect { padding-block: 30px; }
  .connect h2 { margin-bottom: 12px; }
  .connect > p:not(.eyebrow) { max-width: none; margin-bottom: 0; font-size: 10pt; }
  .site-footer { min-height: 50px; padding-block: 15px; font-size: 8pt; }
  a[href^="https://www.linkedin.com"]::after { content: " linkedin.com/in/jacob-a-875214197/"; font-size: 8pt; }
  .section { padding-block: 16px; }
  .hero { padding-bottom: 12px; }
  .hero-intro { font-size: 11pt; }
  .hero-description { font-size: 9.5pt; }
  .experience-item summary { padding-block: 12px; }
  .experience-item h3 { margin-bottom: 4px; font-size: 12pt; }
  .summary-text { font-size: 9pt; line-height: 1.5; }
  .experience-body { padding-bottom: 12px; font-size: 9pt; line-height: 1.5; }
  .experience-body > p { margin-bottom: 8px; }
  .experience-body ul { margin-block: 8px; }
  .experience-body li { margin-block: 3px; }
  .experience-body .tag-list { margin-top: 8px; }
  .experience-body .tag-list span { padding-block: 2px; }
  .work .section-intro { display: none; }
  .work .section-heading h2 { font-size: 20pt; }
  .featured-project { break-inside: avoid; }
}
