@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f2f3f5;
  --surface: #fff;
  --line: #e3e5e9;
  --line-strong: #d2d5db;
  --text: #17181a;
  --muted: #62656c;
  --faint: #7b7e85;
  --dark: #141517;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 12px; }

/* Nav */

.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(16px, 3vw, 32px);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav > .brand { justify-self: start; }
.nav > .nav-end { grid-column: 3; justify-self: end; }

.pill {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 52px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 245, 247, .75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.pill a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 15px;
  white-space: nowrap;
}
.pill a:hover { background: rgba(20, 21, 23, .05); }
.pill a[aria-current="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pill a.dark { background: var(--dark); color: #fff; }
.pill a.dark:hover { background: #000; }
a.pill.brand { padding: 0 20px; font-size: 15px; font-weight: 500; }

/* Shared */

main { padding: 0 16px; }
.col { width: 100%; max-width: 720px; margin: 0 auto; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: 400 12px/1 var(--mono);
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .45);
  font-size: 15px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--surface); transform: translateY(-1px); }
.btn.dark { border-color: var(--dark); background: var(--dark); color: #fff; }
.btn.dark:hover { background: #000; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.fine { margin-top: 32px; color: var(--faint); font-size: 14px; text-align: center; text-wrap: balance; }

/* Hero */

.hero {
  display: grid;
  place-items: center;
  min-height: 78vh;
  min-height: 78svh;
  padding: 120px 0 24px;
  text-align: center;
}
.hero h1 { margin-bottom: 18px; font-size: clamp(40px, 7vw, 64px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Sections */

section.col { padding-top: 96px; }
.hero + section.col { padding-top: 24px; }

h2 { margin: 0 0 14px 4px; font-size: 18px; font-weight: 500; }
h2.next { margin-top: 48px; }

.list {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.list { padding: 0 22px; }

.row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row h3 { font-size: 16px; font-weight: 500; }
.row h3 span { margin-left: 6px; color: var(--muted); font-weight: 400; }
.row p { margin-top: 4px; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.meta { flex-shrink: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.arr { display: inline-block; transition: transform .2s; }
.link:hover .arr { transform: translate(2px, -2px); }
.links { display: flex; gap: 16px; }

/* Tools marquee: static row without JS, endless scroll with it */

.marquee { padding: 12px 0; overflow: hidden; }
.track { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 0; }
.track li { flex: none; margin: 0 28px; line-height: 0; }
.marquee.run .track li { margin: 0 72px 0 0; }
.track img { width: 32px; height: 32px; opacity: .75; transition: opacity .2s, transform .2s; }
.track img:hover { opacity: 1; transform: scale(1.08); }
.track img[src$="mysql.svg"] { width: 44px; height: 44px; margin: -6px 0; } /* mostly lettering, so it reads small */

.marquee.run {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee.run .track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  animation: marquee 40s linear infinite;
}
.marquee.run:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.contact { text-align: center; }
.contact h2 { margin-left: 0; }
.contact .actions { margin-top: 16px; }

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 120px;
  padding: 22px 16px 32px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
@media (min-width: 753px) { .footer { padding-left: 4px; padding-right: 4px; } }

/* 404 */

.nf { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 120px 16px 72px; text-align: center; }
.nf p { margin-top: 10px; color: var(--muted); }

/* Motion: the hero rises in on load; sections fade up as they scroll into view.
   Pure CSS, so nothing is ever left hidden if a script fails. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }

@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise, [data-reveal] { animation: none !important; }
  .btn:hover, .track img:hover, .link:hover .arr { transform: none; }
  html { scroll-behavior: auto; }
  .marquee.run .track { animation: none; }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-centre { display: none; }
  .nav > .nav-end { grid-column: 2; }
  .pill { height: 48px; border-radius: 16px; }
  .pill a { padding: 0 14px; border-radius: 11px; }
  a.pill.brand { padding: 0 16px; }
}

@media (max-width: 560px) {
  .list { padding: 0 18px; }
  .row { flex-direction: column; gap: 6px; }
  .row h3 span { display: block; margin: 2px 0 0; }
  .track li { margin: 0 20px; }
  .marquee.run .track li { margin: 0 44px 0 0; }
  .track img { width: 28px; height: 28px; }
}

@media (max-width: 400px) {
  .hide-xs { display: none !important; }
}
