@font-face { font-family: "Inter"; src: url(fonts/inter-var-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; }
:root {
  --bg: #fff;
  --alt: #f5f5f7;
  --tile: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --link: #0066cc;
  --accent: #0071e3;
  --accent-hover: #0062c4;
  --nav: rgba(255, 255, 255, .72);
  --cable-lan: #3f74a8;
  --cable-tunnel: #96741f;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --alt: #161617; --tile: #1d1d1f; --text: #f5f5f7; --muted: #86868b;
    --rule: #424245; --link: #2997ff; --nav: rgba(22, 22, 23, .8);
    --cable-lan: #5b8fc4; --cable-tunnel: #c8a64b;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
main [id] { scroll-margin-top: 64px; }
@media (max-width: 720px) { main [id] { scroll-margin-top: 100px; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.022em; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }

a { color: var(--link); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.more::after { content: "\00a0\203A"; }
.when, .certs span { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 40px, 980px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Nav: thin, translucent, sticky */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 4px 24px; min-height: 48px; flex-wrap: wrap; }
.name { font-weight: 600; font-size: 15px; color: var(--text); margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; }
.name:hover { text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 13px; letter-spacing: -.003em; }
.top nav a { color: var(--text); opacity: .8; min-height: 44px; display: inline-flex; align-items: center; transition: opacity .2s var(--ease); }
.top nav a:hover { opacity: 1; text-decoration: none; }
.top nav a[aria-current] { opacity: 1; font-weight: 600; }
@media (max-width: 720px) {
  /* Phone: the language link sits beside the name, the first link (the section right below) goes, the rest fit one row */
  .top .wrap { padding: 4px 0 0; row-gap: 0; position: relative; }
  .top nav { width: 100%; gap: 0 18px; }
  .top nav a:first-child { display: none; }
  .top nav a[hreflang] { position: absolute; right: 0; top: 4px; }
}

footer { background: var(--alt); color: var(--muted); font-size: 14px; letter-spacing: 0; padding: 40px 0 16px; border-top: 1px solid var(--rule); }
.foot-main { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 40px; padding-bottom: 28px; }
.foot-main p { margin: 0; }
footer .name { font-size: 17px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
footer nav a { color: var(--text); opacity: .8; transition: opacity .2s var(--ease); }
footer nav a:hover { opacity: 1; text-decoration: none; }
.foot-base { margin: 0; border-top: 1px solid var(--rule); padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 0 24px; min-height: 44px; font-size: 12px; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }

/* Home */
.intro { display: grid; padding: clamp(32px, 6vh, 64px) 0 clamp(40px, 6vh, 64px); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -.01em; margin-bottom: 10px; }
.intro h1 { font-size: clamp(40px, 6.4vw + 12px, 88px); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.intro .role { font-size: clamp(20px, 1vw + 14px, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -.017em; margin-top: 14px; max-width: 22em; }
.intro .pitch { color: var(--muted); line-height: 1.55; max-width: 34em; margin-top: 14px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
@media (min-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; grid-template-areas: "eyebrow eyebrow" "name name" "role pitch" "role ctas"; }
  .intro .eyebrow { grid-area: eyebrow; }
  .intro h1 { grid-area: name; }
  .intro .role { grid-area: role; margin-top: 24px; }
  .intro .pitch { grid-area: pitch; margin-top: 24px; }
  .intro .ctas { grid-area: ctas; }
}
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 980px; background: var(--accent); color: #fff; font: 500 16px/1 var(--font); letter-spacing: -.01em;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pill:hover { background: var(--accent-hover); text-decoration: none; }
.pill.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.pill.ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--text); }

section { padding: clamp(64px, 9vw, 104px) 0; }
.head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 40rem; }
.head h2 { font-size: clamp(34px, 2.6vw + 22px, 56px); letter-spacing: -.028em; }
.head p { color: var(--muted); font-size: clamp(18px, .4vw + 16px, 21px); line-height: 1.4; letter-spacing: -.015em; margin-top: 12px; max-width: 34em; }
.lab .head, .contact .head { text-align: center; margin-inline: auto; }
.lab .head p, .contact .head p { margin-inline: auto; }
.alt { background: var(--alt); }

/* The homelab: a black band in both themes */
.lab {
  --text: #f5f5f7; --muted: #86868b; --rule: #424245; --link: #2997ff; --tile: #1d1d1f;
  background: #000; color: var(--text); padding: clamp(48px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
}
.lab .head { margin-bottom: 20px; }
@media (prefers-color-scheme: dark) { .lab { border-block: 1px solid #1d1d1f; } }
.stage {
  position: relative; height: min(50vw, 600px, 72svh); min-height: 340px; cursor: grab;
  /* poster while the model loads, and when WebGL2 is missing */
  background: #000 url(homelab.webp) center / contain no-repeat;
  background-image: image-set(url(homelab.webp) 1x, url(homelab@2x.webp) 2x);
}
.stage:active { cursor: grabbing; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .fallback { position: absolute; inset: 0; display: grid; place-items: end center; padding: 24px; text-align: center; color: var(--muted); }
.stage.ready .fallback, .stage.loading .fallback { display: none; }
.reset {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font: inherit; font-size: 14px; color: #f5f5f7; background: rgba(66, 66, 69, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 0; border-radius: 980px; padding: 9px 18px; min-height: 44px; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.reset:hover { background: rgba(86, 86, 89, .8); }
@media (max-width: 640px) { .stage { height: max(240px, 64vw); min-height: 0; } .reset { bottom: 10px; } }
.pause {
  display: block; margin: 12px auto 0; font: inherit; font-size: 13px; color: var(--muted); background: none;
  border: 1px solid var(--rule); border-radius: 980px; padding: 0 16px; min-height: 44px; cursor: pointer;
}
.pause:hover { color: var(--text); border-color: var(--muted); }
.hint { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 0; margin-top: 10px; }

.tag {
  font: 500 12px/1 var(--font); letter-spacing: -.01em; color: #f5f5f7; white-space: nowrap;
  padding: 6px 10px; border-radius: 980px; background: rgba(50, 50, 52, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 0; cursor: pointer; pointer-events: auto; transition: background-color .2s;
}
.tag:hover, .tag.on { background: #f5f5f7; color: #1d1d1f; }
.tag.site { background: none; backdrop-filter: none; color: #86868b; font-weight: 400; pointer-events: none; }
.tag.vm { font-weight: 400; font-size: 11px; color: #a1a1a6; background: none; backdrop-filter: none; pointer-events: none; }
@media (max-width: 640px) { .tag:not(.on):not(.site) { display: none; } }

.devices { display: grid; gap: 0 40px; margin-top: 32px; }
@media (min-width: 760px) { .devices { grid-template-columns: repeat(3, 1fr); } }
.devices details { border-top: 1px solid var(--rule); }
.devices summary { min-height: 48px; align-items: center; padding: 12px 0; font-size: 15px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.devices summary::-webkit-details-marker { display: none; }
.devices summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .2s; }
.devices details[open] summary::after { transform: rotate(45deg); }
.devices .dev-body { padding: 0 0 16px; color: var(--muted); font-size: 15px; }
.devices .dev-body p + p { margin-top: 6px; }

/* Project tiles */
.tiles { display: grid; gap: 20px; }
@media (min-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--tile); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.tile h3 { font-size: clamp(24px, 1.4vw + 16px, 30px); letter-spacing: -.024em; }
.tile > p { color: var(--muted); }
.tile .specs { margin-top: 4px; }
.tile .specs tr:last-child > * { border-bottom: 1px solid var(--rule); }
.tile .links { margin-top: auto; padding-top: 4px; }
.tile .links a { min-height: 44px; display: inline-flex; align-items: center; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; margin-top: 12px; }
.specs th, .specs td { vertical-align: top; padding: 10px 0; border-top: 1px solid var(--rule); }
.specs th { font-weight: 400; color: var(--muted); width: 7.5rem; padding-right: 16px; }
@media (max-width: 480px) { .tile .specs th { width: 6.5rem; } }

/* Experience: timeline */
.when { color: var(--muted); font-size: 15px; }
.timeline > li { position: relative; display: grid; gap: 4px 32px; padding: 0 0 36px 32px; }
.timeline > li:last-child { padding-bottom: 0; }
@media (min-width: 700px) { .timeline > li { grid-template-columns: 11rem minmax(0, 1fr); } }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--muted); background: var(--bg); }
.timeline > li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 17px; bottom: -6px; width: 1px; background: var(--rule); }
.timeline .when { padding-top: 2px; }
.timeline h3 { font-size: 19px; letter-spacing: -.017em; }
.timeline p { color: var(--muted); margin-top: 4px; max-width: 42em; }

/* Education: cards */
.edu { display: grid; gap: 20px; }
@media (min-width: 760px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu > li { background: var(--tile); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 32px); display: grid; gap: 8px; align-content: start; }
.edu .when { font-size: 14px; }
.edu h3 { font-size: 21px; letter-spacing: -.02em; }
.edu p { color: var(--muted); margin-top: 6px; }

/* Cisco courses: grid */
.certs-h { font-size: 19px; letter-spacing: -.017em; margin: 48px 0 16px; }
.certs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.certs li { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 14px; background: var(--tile); font-size: 15px; font-weight: 600; line-height: 1.35; }
.certs span { color: var(--muted); font-size: 14px; font-weight: 400; }
.also { max-width: 46em; margin-top: 20px; color: var(--muted); font-size: 15px; }
.tiles + .also { margin-top: 32px; }

.contact { text-align: center; }
.contact .mail { display: inline-block; font-size: clamp(26px, 3vw + 14px, 44px); font-weight: 600; letter-spacing: -.024em; margin-top: 4px; overflow-wrap: anywhere; }
.contact .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Project and document pages */
.page-head { text-align: center; padding: 80px 0 48px; }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -.02em; }
.page-head .lede { color: var(--muted); font-size: 21px; line-height: 1.38; max-width: 34em; margin: 16px auto 0; letter-spacing: -.01em; }
.page { display: grid; gap: 56px; padding-bottom: 100px; }
@media (min-width: 1000px) { .page { grid-template-columns: minmax(0, 1fr) 18rem; gap: 72px; } .page aside { grid-column: 2; grid-row: 1; } }
.page aside .specs { margin-top: 0; }
.page aside p { margin-top: 20px; font-size: 15px; color: var(--muted); }
.prose a:not(.back), .page aside a { text-decoration: underline; }
.prose { max-width: 692px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose img { border-radius: 12px; margin-inline: auto; background: #fff; }
.prose pre { background: var(--alt); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 14px; }
.prose code { font: .88em var(--mono); }
.prose :not(pre) > code { background: var(--alt); padding: .1em .35em; border-radius: 5px; }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 3px solid var(--rule); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border-top: 1px solid var(--rule); padding: 8px 12px 8px 0; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--rule); }
.back { display: inline-block; margin-top: 48px; }
.back::before { content: "\2039\00a0"; }

/* Diagrams */
.diagram { background: var(--alt); border-radius: var(--radius); padding: 24px; margin-bottom: 64px; }
.diagram svg { width: 100%; height: auto; font: 13px var(--font); letter-spacing: 0; }
.diagram .tall { display: none; }
@media (max-width: 640px) { .diagram { padding: 12px; } }
@media (max-width: 860px) { .diagram .wide { display: none; } .diagram .tall { display: block; max-width: 380px; margin-inline: auto; } }
.diagram figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.diagram text { fill: var(--muted); }
.diagram .tb { fill: var(--text); font-weight: 600; }
.diagram .lbl { fill: var(--muted); font-size: 12px; }
.diagram .zone { fill: none; stroke: var(--muted); stroke-dasharray: 4 4; }
.diagram .host { fill: none; stroke: var(--muted); }
.diagram .box, .diagram .vm { fill: var(--bg); stroke: var(--muted); }
.diagram .fw { fill: var(--bg); stroke: var(--text); }
.diagram .link { fill: none; stroke: var(--cable-lan); stroke-width: 1.5; }
.diagram .air { stroke-dasharray: 3 4; }
.diagram .flow { stroke: var(--cable-tunnel); stroke-width: 2; stroke-dasharray: 7 5; }
.diagram rect { rx: 8px; }
.diagram .zone, .diagram .host { rx: 14px; }

/* Documentation directory */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filters button {
  font: inherit; font-size: 14px; color: var(--text); background: var(--alt); border: 0; border-radius: 980px;
  padding: 0 18px; min-height: 44px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.doc-list { display: grid; gap: 20px; padding-bottom: 100px; }
@media (min-width: 700px) { .doc-list { grid-template-columns: repeat(auto-fit, minmax(260px, 300px)); justify-content: center; } }
.doc-card { display: grid; grid-template-rows: auto 1fr; background: var(--alt); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: translate .3s var(--ease); }
.doc-card:hover { text-decoration: none; translate: 0 -3px; }
.doc-card .thumb { aspect-ratio: 16 / 10; object-fit: contain; width: 100%; background: #fff; }
.doc-card .body { padding: 20px 22px 24px; display: grid; gap: 6px; align-content: start; }
.doc-card .kicker { font-size: 12px; color: var(--muted); letter-spacing: -.01em; }
.doc-card h2 { font-size: 21px; letter-spacing: -.01em; }
.doc-card p { color: var(--muted); font-size: 15px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0 120px; }
.doc-meta { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; }
.doc-view { padding-bottom: 100px; }
.doc-view .prose { margin-inline: auto; }
.doc-view .pdf { width: 100%; height: 82vh; border: 0; border-radius: 12px; background: var(--alt); }
.doc-view .solo { border-radius: var(--radius); margin-inline: auto; }
.doc-view .back { display: block; text-align: center; }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; } .doc-card:hover { translate: none; } }
.center { text-align: center; }
.doc-card .kicker, .doc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.doc-meta { justify-content: center; }
.doc-view .pdf + p { margin-top: 16px; }

/* Motion. Everything is visible without it: with no JS or with reduced motion the reveals are just skipped. */
.more::after { display: inline-block; transition: transform .2s var(--ease); }
.more:hover::after { transform: translateX(3px); }
.pill { transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease); }
.pill:active { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  /* Hero: one staggered entrance on load */
  .intro > *, .page-head > * { animation: rise .7s var(--ease) backwards; }
  .intro > :nth-child(2), .page-head > :nth-child(2) { animation-delay: .07s; }
  .intro > :nth-child(3) { animation-delay: .14s; }
  .intro > :nth-child(4) { animation-delay: .21s; }
  .intro > :nth-child(5) { animation-delay: .28s; }
  /* Sections fade in the first time they scroll into view: reveal.js swaps .pre for .in */
  .in { animation: rise .7s var(--ease) backwards; }
  @media screen { .pre { opacity: 0; } }
}

/* Phone. Everything below only applies at 720px and narrower, so the desktop layout is untouched. */
@media (max-width: 720px) {
  /* Header: the name row scrolls away and only the link row stays stuck, so it takes 48px instead of 110px */
  .top { top: -48px; }
  .top nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { flex: none; }
  .top nav a:focus-visible { outline-offset: -2px; } /* the scrolling row would clip an outside ring */
  main [id] { scroll-margin-top: 60px; }

  /* Less empty space above and below page content */
  .page-head { padding: 48px 0 32px; }
  .page-head .lede { font-size: 18px; line-height: 1.45; }
  .page, .doc-list, .doc-view { padding-bottom: 64px; }
  .page { gap: 40px; }
  .diagram { margin-bottom: 40px; }
  .filters { margin-bottom: 28px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 19px; }
  .back { margin-top: 32px; min-height: 44px; }

  /* Wide tables in documents scroll sideways instead of squeezing every word onto its own line */
  .prose table { display: block; overflow-x: auto; font-size: 14px; -webkit-overflow-scrolling: touch; }
  .prose th, .prose td { min-width: 5.5em; }
  .prose th:last-child, .prose td:last-child { padding-right: 0; }
  .prose pre { font-size: 13px; padding: 14px; }

  /* The 3D model gets more height */
  .stage { height: min(max(280px, 78vw), 80svh); }
}
@media (max-width: 480px) {
  /* Buttons share the row evenly instead of sitting ragged */
  .ctas .pill { flex: 1 1 auto; }
  .contact .links { display: grid; grid-template-columns: 1fr 1fr; }
  .contact .links .pill { padding: 0 12px; }
  .contact .head p { text-align: left; }
  footer { padding-top: 32px; }
  .foot-main { padding-bottom: 20px; }
  footer nav { gap: 0 20px; }
}
@media (max-width: 360px) {
  /* Smallest phones: all four header links still fit without scrolling */
  .top nav { gap: 0 13px; font-size: 12.5px; }
}
