/* Cluster — the name is a scheduled swarm of pods; the career is a scheduler view. */
/* Bricolage Grotesque, self-hosted (SIL OFL 1.1, see fonts/OFL.txt). Variable: weight 300–800, width 75–100%. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Dark is the default theme. Light is opt-in via [data-theme="light"]. */
  --mist: #0a0a0b;          /* page background */
  --paper: #151517;         /* raised surfaces */
  --cobalt: #4355ff;        /* accent fill (white text on top) */
  --cobalt-deep: #3446f0;
  --accent: #8e99ff;        /* accent as text on the background */
  --lilac: #6f79e0;
  --deep: #f2f2f3;          /* body text */
  --muted: #a3a3ab;
  --mint: #2fd38a;
  --line: #2a2a2e;
  --solid: #f2f2f3; --on-solid: #0a0a0b;
  --chip-on: #202024;
  --nav-hover: rgb(255 255 255 / 0.08);
  --bar-bg: rgb(21 21 23 / 0.8); --bar-border: rgb(255 255 255 / 0.08);
  --shadow: rgb(0 0 0 / 0.5);
  --hero-glow: #141418;
  --pod-sub: #e3e6ff;
  --contact-bg: #151517; --contact-muted: #c4c4cc; --contact-line: #2e2e33; --contact-hover: #b7beff;
  --swarm-text: #7f8cff; --swarm-ok: #2fd38a; --swarm-bg: rgba(255, 255, 255, 0.14);
  color-scheme: dark;

  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.25rem, 1.3rem + 4vw, 4.75rem);
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

:root[data-theme="light"] {
  --mist: #eef0ff; --paper: #ffffff; --cobalt: #2b3ff6; --cobalt-deep: #1d2bc4; --accent: #2b3ff6;
  --lilac: #9aa3ff; --deep: #121640; --muted: #4a4f7a; --mint: #12b76a; --line: #d3d7f5;
  --solid: #121640; --on-solid: #ffffff; --chip-on: #eef0ff; --nav-hover: #eef0ff;
  --bar-bg: rgb(255 255 255 / 0.78); --bar-border: rgb(255 255 255 / 0.9); --shadow: rgb(18 22 64 / 0.08);
  --hero-glow: #dfe3ff; --pod-sub: #e3e6ff;
  --contact-bg: #121640; --contact-muted: #c9ccf0; --contact-line: #343a7a; --contact-hover: #b7beff;
  --swarm-text: #2b3ff6; --swarm-ok: #12b76a; --swarm-bg: rgba(43, 63, 246, 0.16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-block-start: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--mist); color: var(--deep); font-family: var(--font); font-size: var(--step-0); line-height: 1.55; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: from-font; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; inset-inline-start: -999px; top: 1rem; z-index: 30; background: var(--solid); color: var(--on-solid); padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { inset-inline-start: 1rem; }

/* Floating bar */
.bar {
  position: fixed; top: 0.75rem; inset-inline: var(--gutter); z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.4rem 0.4rem 0.4rem 0.5rem;
  background: var(--bar-bg);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--bar-border);
  border-radius: 999px;
  box-shadow: 0 1px 2px var(--shadow), 0 8px 24px var(--shadow);
}
.mark {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--solid); color: var(--on-solid); font-weight: 800; font-size: 0.95rem; text-decoration: none; letter-spacing: -0.02em;
}
.bar ul { display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.bar nav a {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 0.9rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 600; text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
@media (hover: hover) { .bar nav a:hover { background: var(--nav-hover); } }
.bar .nav-cta { background: var(--cobalt); color: #fff; }
@media (hover: hover) { .bar .nav-cta:hover { background: var(--cobalt-deep); } }
@media (max-width: 30rem) {
  .bar { justify-content: center; padding: 0.3rem; }
  .mark { display: none; } /* "Back to top" stays in the footer */
  .bar nav a { padding: 0 0.6rem; font-size: 0.8125rem; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; align-items: end;
  padding: 7rem var(--gutter) clamp(2.5rem, 6vh, 4rem);
  background:
    radial-gradient(50rem 30rem at 85% 10%, var(--hero-glow), transparent 70%),
    var(--mist);
  touch-action: pan-y;
}
@media (max-width: 40rem) { .hero { align-items: center; } }
.swarm { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { width: 100%; max-width: 90rem; margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: var(--step--1); padding: 0.45rem 0.9rem 0.45rem 0.7rem; border-radius: 999px;
  background: var(--paper); box-shadow: 0 1px 2px var(--shadow);
}
.kicker::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgb(18 183 106 / 0.2); }
.name {
  margin-block: 1rem 2rem;
  font-size: clamp(4.25rem, 24vw, 19rem);
  line-height: 0.84;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.name span { display: block; width: fit-content; }
.name .n2 { margin-inline-start: auto; margin-inline-end: 4%; }
.swarm-on .name { color: transparent; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; }
.lede { max-width: 34rem; font-size: var(--step-1); line-height: 1.45; }
.btn {
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 1.6rem; border-radius: 999px;
  background: var(--solid); color: var(--on-solid); font-weight: 650; text-decoration: none;
  transition-property: scale, background-color; transition-duration: 150ms; transition-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { scale: 0.96; }
@media (hover: hover) { .btn:hover { background: var(--cobalt); color: #fff; } }

/* Blocks: vertical section label on the left */
.block { display: grid; gap: 1.5rem; padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); max-width: 90rem; margin-inline: auto; }
.block h2 { font-size: var(--step-3); font-weight: 800; font-stretch: 85%; line-height: 1; letter-spacing: -0.03em; }
@media (min-width: 64rem) {
  .block { grid-template-columns: 7rem 1fr; gap: 3rem; }
  .block h2 {
    writing-mode: vertical-rl; transform: rotate(180deg);
    align-self: start; position: sticky; top: 6rem; color: var(--accent);
  }
}
.block-body { min-width: 0; }

.statement { font-size: var(--step-2); line-height: 1.25; font-weight: 600; max-width: 26ch; letter-spacing: -0.01em; }
.about-cols { display: grid; gap: 1.25rem 3rem; margin-top: 2rem; }
.about-cols p { max-width: 62ch; color: var(--muted); }
@media (min-width: 52rem) { .about-cols { grid-template-columns: 1fr 1fr; } }
.pods { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.pods li { padding: 1.25rem; background: var(--paper); border-radius: 20px; }
.pods li:first-child { background: var(--cobalt); color: #fff; }
.pods li:first-child span { color: var(--pod-sub); }
.pods b { display: block; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); line-height: 1; font-weight: 800; font-stretch: 85%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pods span { display: block; margin-top: 0.5rem; font-size: var(--step--1); color: var(--muted); }

/* Timeline (scheduler view) */
.timeline { background: transparent; }
.intro { max-width: 60ch; color: var(--muted); }
.ruler { position: relative; height: 1.5rem; margin: 2.5rem 0 0.5rem; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ruler span { position: absolute; left: calc(var(--at) * 1%); translate: -0% 0; }
.jobs { margin: 0; padding: 0; list-style: none; }
.job { display: grid; gap: 0.6rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.job-label h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 700; }
.job-label p { color: var(--muted); font-size: var(--step--1); }
.job-label .dates { color: var(--deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.track {
  position: relative; height: 1.25rem; border-radius: 999px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(11.111% - 1px), var(--line) calc(11.111% - 1px) 11.111%);
}
.bar-fill {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--s) * 1%); width: calc((var(--e) - var(--s)) * 1%);
  border-radius: 999px; background: var(--cobalt); transform-origin: left;
}
.bar-fill.is-dev { background: var(--lilac); }
.bar-fill.is-current { background: linear-gradient(90deg, var(--cobalt) 80%, var(--mint)); }
.job-detail { margin: 0; padding-inline-start: 1.1rem; color: var(--muted); max-width: 66ch; }
.job-detail li { margin-bottom: 0.3rem; }
.job-detail li::marker { color: var(--accent); }
@media (min-width: 52rem) {
  .job { grid-template-columns: minmax(15rem, 22rem) 1fr; align-items: start; }
  .ruler { margin-inline-start: calc(min(22rem, 100%) + 2rem); }
  .track { margin-top: 0.25rem; }
  .job-detail { grid-column: 2; }
}
@media (max-width: 51.99rem) { .ruler { display: none; } }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); }
.key { display: inline-block; width: 1.5rem; height: 0.6rem; border-radius: 999px; margin-inline-end: -0.4rem; }
.key-ops { background: var(--cobalt); }
.key-dev { background: var(--lilac); }

/* Capabilities */
.ns-grid { display: grid; gap: 1rem; }
@media (min-width: 56rem) { .ns-grid { grid-template-columns: 1fr 1fr; } }
.ns { padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border-radius: 28px; }
.ns h3 { font-size: var(--step-2); font-weight: 750; font-stretch: 90%; letter-spacing: -0.015em; }
.ns-note { color: var(--muted); font-size: var(--step--1); margin-top: 0.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.85rem; border-radius: 10px; font-size: var(--step--1); font-weight: 600;
  border: 1.5px solid var(--line); white-space: nowrap;
}
.chips li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 2px; border: 1.5px solid var(--lilac); }
.chips-on li { background: var(--chip-on); border-color: transparent; }
.chips-on li::before { background: var(--cobalt); border-color: var(--cobalt); }
.creds { display: grid; gap: 0; margin: 2.5rem 0 0; }
@media (min-width: 56rem) { .creds { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.creds div { padding: 1rem 0; border-top: 1px solid var(--line); }
.creds dt { font-weight: 700; }
.creds dd { margin: 0.2rem 0 0; color: var(--muted); }

/* Contact */
.contact {
  margin: 0 var(--gutter) var(--gutter); padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--contact-bg); color: #fff; border-radius: clamp(24px, 3vw, 40px);
}
.contact h2 { font-size: var(--step-3); font-weight: 800; font-stretch: 85%; letter-spacing: -0.03em; line-height: 1; max-width: 18ch; }
.contact > p { margin-top: 1.25rem; color: var(--contact-muted); }
.contact-links { display: grid; gap: 0; margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--contact-line); }
.big-link {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--contact-line);
  font-size: var(--step-2); font-weight: 650; text-decoration: none; overflow-wrap: anywhere;
  transition: color 150ms ease-out;
}
.big-link::after { content: ""; flex: none; width: 0.7em; height: 0.7em; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; rotate: 45deg; }
@media (hover: hover) { .big-link:hover { color: var(--contact-hover); } }
.contact :focus-visible { outline-color: var(--contact-hover); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 0 var(--gutter) 2rem; color: var(--muted); font-size: var(--step--1); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] { animation: rise 300ms ease-out both; }
  .js .kicker { animation-delay: 1100ms; }
  .js .hero-foot { animation-delay: 1250ms; }
  .js .bar-fill { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
  .js .job:nth-child(2) .bar-fill { transition-delay: 80ms; }
  .js .job:nth-child(3) .bar-fill { transition-delay: 160ms; }
  .js .job:nth-child(4) .bar-fill { transition-delay: 240ms; }
  .js .job:nth-child(5) .bar-fill { transition-delay: 320ms; }
  .js .jobs.is-in .bar-fill { transform: scaleX(1); }
}
@keyframes rise { from { opacity: 0; translate: 0 12px; filter: blur(4px); } }

/* AWS cert is mentioned, not featured: it expired in March 2026. */
.cred-note { margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }

/* Theme toggle (dark is the default) */
.theme-toggle {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-inline-start: 0.15rem;
  border: 0; border-radius: 50%; background: var(--nav-hover); color: var(--deep); cursor: pointer;
  transition-property: scale, background-color; transition-duration: 150ms; transition-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:active { scale: 0.96; }
@media (hover: hover) { .theme-toggle:hover { background: var(--line); } }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (max-width: 30rem) { .theme-toggle { width: 2.3rem; height: 2.3rem; } .bar nav a { padding: 0 0.5rem; } }
@media (max-width: 22rem) { .bar nav a { padding: 0 0.4rem; font-size: 0.78rem; } }
