:root {
  color-scheme: dark;
  --bg: #0c0d0d;
  --surface: #121313;
  --raised: #171818;
  --hover: #1b1c1c;
  --line: #282a2a;
  --text: #ededed;
  --muted: #b0b2b2;
  --quiet: #909494;
  --teal: #92c8d2;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "Instrument Sans", system-ui, sans-serif;
  --radius: 16px;
  --header-height: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
}

h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection { background: var(--teal); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.wrap {
  width: min(1008px, 100% - 64px);
  margin-inline: auto;
}

.top {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.top .wrap {
  display: flex;
  min-height: calc(var(--header-height) - 1px);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.name {
  border-radius: 4px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.nav {
  position: relative;
  display: flex;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  border-radius: 9px;
  color: var(--quiet);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .15s linear, background-color .15s linear;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[data-hover] { color: var(--text); }
.nav a[aria-current] { background: rgba(255, 255, 255, .07); color: var(--text); }
.nav a:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

.nav .pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  opacity: 0;
  pointer-events: none;
  transition: transform .16s cubic-bezier(.2, 0, 0, 1), width .16s cubic-bezier(.2, 0, 0, 1), height .16s cubic-bezier(.2, 0, 0, 1), opacity .16s cubic-bezier(.2, 0, 0, 1);
}
.nav .pill[data-visible] { opacity: 1; }
.nav .pill[data-instant] { transition: opacity .16s; }

.hero { padding: 112px 0 64px; }

main { padding-bottom: 128px; }

.hero h1 {
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(44px, 7.4vw, 76px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.section + .section { margin-top: 96px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  margin-bottom: 20px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.heartbeat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
  font: 400 13px/1.5 var(--mono); font-variant-numeric: tabular-nums;
}

.signal,
.service-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--quiet);
}

.signal { position: relative; }

.heartbeat[data-fresh] .signal {
  background: var(--teal);
  color: var(--teal);
}

.heartbeat[data-fresh] .signal::after {
  position: absolute;
  inset: -1px;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
  animation: heartbeat 2.8s ease-out infinite;
}

@keyframes heartbeat {
  0% { opacity: .8; transform: scale(1); }
  65%, 100% { opacity: 0; transform: scale(2.8); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
}

.tile,
.services,
.work,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 24px;
}

.tile dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.tile dd {
  font: 500 32px/1.1 "Satoshi", system-ui, sans-serif;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.tile dd small {
  margin-left: 6px;
  color: var(--quiet);
  font-size: 13px;
  letter-spacing: 0;
}

.tile-lead {
  grid-column: span 2;
  border-color: #303232;
  background: var(--raised);
}

.tile-lead dt { font-size: 15px; }

.tile-lead dd {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}

.service {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
}

.service + .service { border-left: 1px solid var(--line); }

.service dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.service dd {
  color: var(--quiet);
  font: 400 13px/1.5 var(--mono); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.service-dot[data-state="online"] { color: #4cc38a; background: currentColor; }
.service-dot[data-state="offline"], .service-dot[data-state="down"] { color: #e5484d; background: currentColor; }

.work { padding: 0; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name arrow" "desc arrow";
  align-items: start;
  gap: 20px 32px;
  padding: 32px;
  transition: background-color .16s;
}

.project + .project { border-top: 1px solid var(--line); }
.project:first-child { border-radius: 15px 15px 0 0; }
.project:last-child { border-radius: 0 0 15px 15px; }

.project:hover,
.project:focus-visible {
  background: var(--hover);
}

.project:focus-visible { outline-offset: -2px; }

.project h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.project-name { grid-area: name; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.project p { grid-area: desc; }
.project .external { grid-area: arrow; align-self: center; }

.domain {
  display: inline;
  color: var(--quiet);
  font: 400 13px/1.5 var(--mono); font-variant-numeric: tabular-nums;
}

.project p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
}



.external {
  margin-top: 2px;
  color: var(--quiet);
  transition: color .16s, transform .16s;
}

.project:hover .external,
.project:focus-visible .external {
  color: var(--teal);
  transform: translate(2px, -2px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 32px;
  padding: 32px;
}

.contact-note p {
  color: var(--text);
  font-size: 20px;
  line-height: 1.4;
}

.contact-note > span {
  display: block;
  margin-top: 4px;
  color: var(--quiet);
  font-size: 14px;
}

.handles {
  display: grid;
  justify-items: end;
  gap: 4px;
  margin-right: -12px;
}

.handle {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  padding-inline: 12px;
  border-radius: 8px;
  color: var(--text);
  font: 500 18px/1.3 "Satoshi", system-ui, sans-serif;
  text-align: right;
  transition: background-color .16s;
}

.handle:hover,
.handle:focus-visible { background: var(--hover); }

.handle > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.copy-action {
  display: grid;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--quiet);
  transition: color .16s;
}

.copy-action svg { grid-area: 1 / 1; transition: opacity .16s; }
.copy-action .ic-done { opacity: 0; }
.handle:hover .copy-action { color: var(--text); }
.handle[data-copied] .copy-action { color: #4cc38a; }
.handle[data-copied] .ic-copy { opacity: 0; }
.handle[data-copied] .ic-done { opacity: 1; }

footer {
  margin-top: 96px;
  padding: 20px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
}

footer a {
  border-radius: 2px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: #555959;
  text-underline-offset: 3px;
}

footer a:hover { color: var(--text); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero { padding: 80px 0 64px; }
  .section + .section { margin-top: 56px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(odd) { border-left: 0; }
  .service:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .project { gap: 8px 16px; }
}

@media (max-width: 560px) {
  :root { --header-height: 56px; }

  .wrap { width: calc(100% - 40px); }
  .nav a { padding-inline: 11px; }
  .hero { padding: 68px 0 56px; }
  .section-head { gap: 4px 12px; margin-bottom: 16px; }
  .section-head h2 { font-size: 24px; }
  .heartbeat { gap: 6px; font-size: 11px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 16px; }
  .tile dd { font-size: 23px; }
  .tile-lead { grid-column: 1 / -1; }
  .tile-lead dd { font-size: 23px; }
  .service { padding: 12px; }
  .service dt { gap: 6px; }
  .service dd { font-size: 11px; }
  .project { padding: 24px 20px; }

  .contact { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 20px; }
  .handles { justify-items: start; margin: 0 0 0 -12px; }
  .handle { font-size: 16px; }
  footer { margin-top: 64px; padding-bottom: 40px; }
}

@media (max-width: 420px) {
  #live .section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .service { gap: 4px; padding-inline: 8px; }
  .handle { gap: 8px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heartbeat[data-fresh] .signal::after { animation: none; opacity: 0; }
  .nav a, .nav .pill, .project, .external, .handle { transition: none; }
  .project:hover .external, .project:focus-visible .external { transform: none; }
}

/* icons: one set, one size, the muted text color */
.ic { width: 16px; height: 16px; flex: none; fill: currentColor; }
.tile dt { display: flex; align-items: center; gap: 8px; }
.tile dt .ic { color: var(--quiet); }

.project { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon name arrow" "icon desc arrow"; column-gap: 20px; }
.project-icon { grid-area: icon; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--teal); }
.project-icon .ic { width: 18px; height: 18px; }


@media (max-width: 560px) {
  .project { column-gap: 16px; }
  .project-icon { width: 40px; height: 40px; border-radius: 10px; }
}

.hero { position: relative; }
.smoketext,
.smokebaseline { display: inline-block; }
.heat {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero.smokeactive .smoketext { color: transparent; }
  .hero.smokeactive .heat { visibility: visible; }
}

.sig {
  display: block;
  width: 108px;
  height: auto;
  margin-top: 20px;
  overflow: visible;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sig path { vector-effect: non-scaling-stroke; }
.sig-wait path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sig-draw .sig-main { animation: sigdraw .9s cubic-bezier(.5, .05, .7, .9) forwards; }
.sig-draw .sig-flick { animation: sigdraw .42s cubic-bezier(.25, .7, .35, 1) .8s forwards; }
.sig-draw .sig-dot { animation: sigdraw .06s linear 1.12s forwards; }
@keyframes sigdraw { to { stroke-dashoffset: 0; } }

@media (max-width: 560px) {
  main { padding-bottom: 88px; }
}
