:root {
  --bg: #000;
  --ink: #f2ede4;
  --gold: #e8a33a;
  --gold-hi: #ffc867;
  --dim: #8a8378;
  --line: #24211d;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #000; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 4vw, 48px); position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand svg { width: 32px; height: 32px; color: var(--gold); }
.top nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: 15px; }
.top nav a { text-decoration: none; color: var(--dim); transition: color .2s; }
.top nav a:hover { color: var(--ink); }

/* hero: page split down the middle like the mark */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: calc(100svh - 80px); padding: 0 clamp(16px, 4vw, 48px) 48px; }
.hero::after { content: ''; position: absolute; inset: 0 0 0 50%; z-index: -1;
  background-image: radial-gradient(circle, #2a2620 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.eyebrow { font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin: 0 0 24px; }
.word { font-size: clamp(56px, 10.5vw, 168px); font-weight: 800; line-height: .86; letter-spacing: -.045em; margin: 0; }
.w-solid { color: var(--ink); }
.w-wire { color: var(--bg); paint-order: stroke fill; letter-spacing: -.012em; margin-left: .02em; -webkit-text-stroke: max(2px, .024em) var(--gold); }
/* the fill sits over the stroke, hiding the variable font's overlapping inner contours */
.tagline { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; margin: 28px 0 8px; color: var(--gold); letter-spacing: -.01em; }
.lede { color: var(--dim); max-width: 34ch; margin: 0 0 32px; }
.cta { display: inline-flex; gap: .5em; align-items: center; text-decoration: none; font-weight: 600; color: #000; background: var(--gold);
  padding: 14px 22px; border-radius: 999px; transition: background .2s, transform .2s; }
.cta:hover { background: var(--gold-hi); transform: translateY(-1px); }
.cta span { transition: transform .2s; }
.cta:hover span { transform: translateX(3px); }

.hero-mark { position: relative; color: var(--gold); justify-self: center; width: min(100%, 520px); touch-action: pan-y; cursor: ew-resize; }
.hero-mark svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 0 40px rgba(232, 163, 58, .12)); }
.hero-mark .hb-traces { transition: opacity .4s; }
.hero-mark .hb-trace { stroke-dasharray: .18 .82; animation: signal 2.8s linear infinite; }
.hero-mark .hb-trace:nth-child(2n) { animation-duration: 3.6s; animation-delay: -1.2s; }
.hero-mark .hb-trace:nth-child(3n) { animation-duration: 4.4s; animation-delay: -2.1s; }
.hero-mark.live .hb-traces { opacity: .9; }
.hint { font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--dim); text-align: center; margin: 20px 0 0; opacity: .7; transition: opacity .6s; }
.hero-mark.touched .hint { opacity: 0; }
@keyframes signal { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* sections */
section h2 { font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin: 0 0 32px;
  display: flex; align-items: center; gap: 16px; }
section h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.work, .contact { padding: clamp(64px, 10vw, 128px) clamp(16px, 4vw, 48px) 0; }

/* tiles: dark and still until you look at them */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.tile { text-decoration: none; display: block; }
.tile-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #0b0a09; position: relative; outline: 1px solid var(--line); outline-offset: -1px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) brightness(.55) contrast(1.1);
  transform: scale(1.01); transition: filter .5s, transform .8s cubic-bezier(.2,.7,.2,1); }
.tile-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--gold); opacity: 0; transition: opacity .3s;
  clip-path: inset(0 0 0 50%); }
.tile:hover .tile-img img, .tile:focus-visible .tile-img img { filter: none; transform: scale(1.04); }
.tile:hover .tile-img::after, .tile:focus-visible .tile-img::after { opacity: 1; }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px 0; }
.tile-name { font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.tile-kind { color: var(--dim); font-size: 14px; text-align: right; }

/* contact */
.contact-line { font-size: clamp(28px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 20px; max-width: 18ch; }
.mail { font: clamp(16px, 2vw, 22px)/1.4 var(--mono); color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor; }
.mail:hover { color: var(--gold-hi); }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: clamp(80px, 12vw, 160px) clamp(16px, 4vw, 48px) 40px;
  font-size: 13px; color: var(--dim); }
.foot .hb-badge { color: var(--gold); }
.foot-build { font: 11px/1 var(--mono); letter-spacing: .06em; opacity: .55; }

/* /work/<site>/ */
.wp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: clamp(24px, 6vw, 72px) clamp(16px, 4vw, 48px) 0; }
.wp-mark { color: var(--gold); width: min(100%, 420px); justify-self: center; }
.wp-mark svg { width: 100%; height: auto; display: block; }
.wp-mark .hb-wire .hb-edge, .wp-mark .hb-wire .hb-trace { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.3,.6,.2,1) .35s forwards; }
.wp-mark .hb-wire .hb-trace { animation-delay: 1.1s; }
.wp-mark .hb-node { opacity: 0; animation: pop .4s ease-out 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
.wp h1 { font-size: clamp(44px, 6.5vw, 96px); font-weight: 800; letter-spacing: -.04em; line-height: .92; margin: 0 0 20px; }
.facts { display: grid; gap: 0; margin: 0 0 32px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.facts dd { margin: 0; }
.facts a { color: var(--gold); text-decoration: none; }
.mono { font-family: var(--mono); font-size: 14px; }
.wp-shot { grid-column: 1 / -1; margin: clamp(32px, 6vw, 72px) 0 0; }
.wp-shot img { border-radius: 8px; outline: 1px solid var(--line); outline-offset: -1px; width: 100%; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero::after { inset: 45% 0 0 0; }
  .hero-mark { width: min(78vw, 400px); }
  .wp { grid-template-columns: 1fr; }
  .wp-mark { width: min(64vw, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .wp-mark .hb-edge, .wp-mark .hb-trace { stroke-dashoffset: 0 !important; }
  .wp-mark .hb-node { opacity: 1 !important; }
  .hero-mark .hb-trace { stroke-dasharray: none; }
}

/* badge (from badge/css.mjs) */
.hb-badge{display:inline-flex;align-items:center;gap:.5em;color:inherit;font:inherit;font-weight:600;letter-spacing:.01em;text-decoration:none;line-height:1.2}
.hb-badge:hover,.hb-badge:focus-visible{text-decoration:underline;text-underline-offset:.2em}
.hb-badge .hb-mark{width:20px;height:20px;flex:none;display:block}
.hb-badge .hb-wire{opacity:.55;transition:opacity .25s}
.hb-badge:hover .hb-wire,.hb-badge:focus-visible .hb-wire{opacity:1}
.hb-badge:hover .hb-edge,.hb-badge:focus-visible .hb-edge{stroke-dasharray:1 1;animation:hb-draw .7s cubic-bezier(.2,.7,.2,1)}
@keyframes hb-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.hb-badge,.hb-badge *{transition:none!important;animation:none!important}}
