/* Experience v2.0 — scoped to .hx.
   Tokens below alias the sitewide system (defined in style.css) so this page
   is one system with the rest of the site, not a separately styled page. */

.hx {
  --hx-ink: var(--ink, #1c1917);
  --hx-mute: var(--muted-2, #6b6560);
  --hx-gold: var(--gold-2, #c4a35a);
  --hx-gold-2: var(--gold-3, #e4c98a);
  --hx-paper: var(--paper, #fffcf8);
  --hx-card: var(--card, #fff);
  --hx-line: rgba(28, 25, 23, .1);
  --hx-ease: var(--ease, cubic-bezier(.22, 1, .36, 1));
  color: var(--hx-ink);
  overflow: clip;
  scroll-behavior: smooth;
}

.hx-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
}
.hx-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a3852b, #e4c98a);
}

.hx-hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 18% -10%, rgba(196, 163, 90, .28), transparent 58%),
    radial-gradient(700px 420px at 110% 80%, rgba(196, 163, 90, .12), transparent 50%),
    #1c1917;
  color: #fff;
  padding: 108px 24px 72px;
  overflow: hidden;
}
.hx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  opacity: .07;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hx-hero .hx-inner {
  position: relative;
  width: min(1120px, calc(100% - 8px));
  margin: 0 auto;
}
.hx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 380px);
  align-items: center;
  gap: 40px 56px;
}
.hx-hero-photo {
  margin: 0;
  justify-self: end;
  width: min(360px, 100%);
  position: relative;
}
.hx-hero-photo::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(228, 201, 138, .45), transparent 62%);
  filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}
.hx-hero-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(228, 201, 138, .38),
    0 28px 70px rgba(0, 0, 0, .42);
}
.hx-kicker {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--hx-gold-2);
  margin: 0 0 18px;
}
.hx-hero h1 {
  font-size: clamp(40px, 7.2vw, 84px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .95;
  max-width: 16ch;
  margin: 0 0 22px;
}
.hx-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 0%, #e4c98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hx-lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  max-width: 36em;
  color: rgba(255,255,255,.82);
  margin: 0 0 36px;
}
.hx-lede a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--hx-gold-2) 75%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.hx-lede a:hover {
  color: var(--hx-gold-2);
}

.hx-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 0 0 36px;
}
.hx-stat {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 14px;
}
.hx-stat b {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1;
}
.hx-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}

.hx-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hx-blob {
  position: absolute;
  width: 42vw;
  height: 42vw;
  right: -8vw;
  bottom: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,163,90,.22), transparent 68%);
  filter: blur(8px);
  animation: hx-drift 14s var(--hx-ease) infinite alternate;
  pointer-events: none;
}
@keyframes hx-drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-6%, -8%, 0) scale(1.12); }
}

.hx-marquee {
  background: #111;
  color: var(--hx-gold-2);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
}
.hx-marquee-track {
  display: inline-flex;
  animation: hx-scroll 28s linear infinite;
}
.hx-marquee-track span { padding: 0 28px; }
.hx-marquee:hover .hx-marquee-track { animation-play-state: paused; }
@keyframes hx-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hx-map {
  position: sticky;
  top: 72px;
  z-index: 35;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  margin: 0;
  pointer-events: none;
  background: var(--hx-paper);
  box-shadow: 0 1px 0 var(--hx-line);
}
.hx-map-inner {
  pointer-events: auto;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,252,248,.92);
  border: 1px solid var(--hx-line);
  box-shadow: 0 12px 40px rgba(28,25,23,.12);
  backdrop-filter: blur(12px);
}
.hx-map a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--hx-mute);
  transition: background .25s var(--hx-ease), color .25s;
}
.hx-map a span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: rgba(28,25,23,.08);
  color: var(--hx-ink);
}
.hx-map a.is-active {
  background: var(--hx-ink);
  color: #fff;
}
.hx-map a.is-active span {
  background: var(--hx-gold);
  color: #1c1917;
}

#hx-me,
#hx-tools,
#hx-career,
#hx-company {
  scroll-margin-top: 148px;
}
#hx-tools.hx-section {
  padding-top: 48px;
}

.hx-section {
  padding: 88px 0 96px;
}
.hx-section .hx-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.hx-section h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.045em;
  max-width: 16ch;
  margin: 0 0 18px;
}
.hx-intro {
  color: var(--hx-mute);
  font-size: 18px;
  max-width: 40em;
  margin: 0 0 48px;
  line-height: 1.6;
}
.hx-intro a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--hx-gold) 70%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.hx-intro a:hover {
  color: #8a6f2a;
}

.hx-js .hx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--hx-ease), transform .8s var(--hx-ease);
}
.hx-js .hx-reveal.is-in {
  opacity: 1;
  transform: none;
}
.hx-hero .hx-kicker,
.hx-hero h1,
.hx-hero .hx-lede,
.hx-hero .hx-stats,
.hx-hero .hx-cta {
  opacity: 1;
  transform: none;
}
.hx-js .hx-hero .hx-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: hx-hero-in .85s var(--hx-ease) forwards;
}
.hx-js .hx-hero .hx-kicker { animation-delay: .05s; }
.hx-js .hx-hero h1 { animation-delay: .12s; }
.hx-js .hx-hero .hx-lede { animation-delay: .2s; }
.hx-js .hx-hero .hx-stats { animation-delay: .28s; }
.hx-js .hx-hero .hx-cta { animation-delay: .36s; }
@keyframes hx-hero-in {
  to { opacity: 1; transform: none; }
}

.hx-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}
.hx-card {
  position: relative;
  background: var(--hx-card);
  border: 1px solid var(--hx-line);
  border-radius: 22px;
  padding: 28px 26px 26px;
  box-shadow: 0 18px 40px rgba(28,25,23,.05);
  overflow: hidden;
  transition: opacity .7s var(--hx-ease), transform .7s var(--hx-ease), border-color .25s, box-shadow .35s;
  --mx: 50%;
  --my: 0%;
}
.hx-js .hx-card {
  opacity: 0;
  transform: translateY(28px);
}
.hx-js .hx-card.is-in {
  opacity: 1;
  transform: none;
}
.hx-card:nth-child(1) { transition-delay: .04s; }
.hx-card:nth-child(2) { transition-delay: .1s; }
.hx-card:nth-child(3) { transition-delay: .16s; }
.hx-card:nth-child(4) { transition-delay: .22s; }
.hx-card:nth-child(5) { transition-delay: .28s; }
.hx-card:nth-child(6) { transition-delay: .34s; }
.hx-card.hx-wide { grid-column: 1 / -1; }
a.hx-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.hx-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--hx-gold);
}
.hx-card {
  border-top: 3px solid transparent;
}
.hx-card[data-accent="gold"] { border-top-color: #a3852b; }
.hx-card[data-accent="ink"] { border-top-color: var(--hx-ink); }
.hx-card[data-accent="signal"] { border-top-color: #e4572e; }
.hx-card[data-accent="deep-gold"] { border-top-color: #8a6f2a; }
.hx-card[data-accent="mute"] { border-top-color: var(--hx-mute); }
.hx-card[data-accent="gold-2"] { border-top-color: var(--hx-gold); }

.hx-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  margin: 0 0 14px;
  transition: transform .3s var(--hx-ease);
}
.hx-icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.hx-card:hover .hx-icon { transform: scale(1.08) rotate(-2deg); }
.hx-card[data-accent="gold"] .hx-icon { background: rgba(163, 133, 43, .12); color: #a3852b; }
.hx-card[data-accent="ink"] .hx-icon { background: rgba(28, 25, 23, .06); color: var(--hx-ink); }
.hx-card[data-accent="signal"] .hx-icon { background: rgba(228, 87, 46, .12); color: #e4572e; }
.hx-card[data-accent="deep-gold"] .hx-icon { background: rgba(138, 111, 42, .13); color: #8a6f2a; }
.hx-card[data-accent="mute"] .hx-icon { background: rgba(107, 101, 96, .12); color: var(--hx-mute); }
.hx-card[data-accent="gold-2"] .hx-icon { background: rgba(196, 163, 90, .18); color: var(--hx-gold); }

/* Two cards get an extra textured wash so all six don't read as one repeated
   template — spreadsheets get graph-paper, the pipeline card gets a warm glow. */
.hx-card-grid {
  background-image:
    linear-gradient(rgba(138, 111, 42, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 111, 42, .08) 1px, transparent 1px);
  background-size: 15px 15px;
  background-position: -1px -1px;
}
.hx-card-glow {
  background: radial-gradient(140% 120% at 100% 100%, rgba(196, 163, 90, .18), var(--hx-card) 62%);
}

.hx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(196,163,90,.16), transparent 42%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.hx-card:hover::before { opacity: 1; }
.hx-card:hover {
  border-color: rgba(163, 133, 43, .45);
  box-shadow: 0 24px 50px rgba(28,25,23,.1);
}
.hx-card.is-in:hover { transform: translateY(-4px); }
.hx-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8a6f2a;
  margin: 0 0 12px;
}
.hx-state {
  display: inline-flex;
  align-items: center;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
}
.hx-state.is-live {
  background: rgba(163, 133, 43, .16);
  color: #8a6f2a;
}
.hx-state.is-build {
  background: rgba(28, 25, 23, .07);
  color: #57534e;
}
.hx-state.is-drop {
  background: rgba(28, 25, 23, .05);
  color: #6b6560;
}
.hx-why {
  margin-top: 14px;
  font-size: 14px;
  color: var(--hx-mute);
  font-style: italic;
}
.hx-card h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.hx-card p {
  margin: 0 0 10px;
  color: var(--hx-mute);
  line-height: 1.55;
}
.hx-card p:last-of-type { margin-bottom: 0; }
.hx-card strong { color: var(--hx-ink); font-weight: 600; }
.hx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 4px;
}
.hx-card .hx-go {
  display: inline-flex;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hx-ink);
  text-decoration: none;
  border-bottom: 1.5px solid #111;
  padding-bottom: 2px;
}
a.hx-card:hover .hx-go { color: #8a6f2a; border-color: #8a6f2a; }

.hx-lane-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 650;
  color: #8a6f2a;
  margin: 28px 0 14px;
}
.hx-company-head .hx-lane-label { margin: 0 0 8px; }
.hx-card.hx-is-company {
  margin: 0 0 36px;
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(196, 163, 90, .16), transparent 60%),
    #fff;
  border-color: rgba(163, 133, 43, .35);
}
.hx-path-job { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-company-own {
  padding: 28px 28px 8px;
  border-radius: 24px;
  background:
    radial-gradient(800px 320px at 8% 0%, rgba(196, 163, 90, .18), transparent 58%),
    var(--hx-paper);
  border: 1px solid rgba(163, 133, 43, .28);
}
#hx-tools .hx-company-own {
  margin: 0 0 40px;
}
#hx-tools .hx-intro {
  margin-bottom: 28px;
}
.hx-card-key {
  color: var(--hx-mute);
  font-size: 16px;
  max-width: 40em;
  margin: -4px 0 28px;
  line-height: 1.55;
}
.hx-card-key span {
  font-weight: 650;
  color: var(--hx-ink);
}
#hx-tools > .hx-inner > h2 {
  max-width: 18ch;
}
.hx-prose a.hx-go,
.hx-company-head a.hx-go {
  display: inline-flex;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hx-ink);
  text-decoration: none;
  border-bottom: 1.5px solid #111;
  padding-bottom: 2px;
}
.hx-company-head a.hx-go { margin-top: 10px; }
.hx-prose a.hx-go:hover,
.hx-company-head a.hx-go:hover { color: #8a6f2a; border-color: #8a6f2a; }
.hx-company-own .hx-prose {
  background: transparent;
  border: 0;
  padding: 0 0 22px;
}
#hx-company { scroll-margin-top: 108px; }

.hx-path {
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}
.hx-path li {
  position: relative;
  background: var(--hx-paper);
  border: 1px solid var(--hx-line);
  border-radius: 18px;
  padding: 18px 16px 16px;
  min-height: 118px;
}
.hx-path li b {
  display: block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6f2a;
  margin-bottom: 8px;
}
.hx-path li span,
.hx-path li a {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
}
.hx-path li a:hover {
  color: #8a6f2a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hx-path li.is-now a:hover { color: var(--hx-gold-2); }
.hx-path li small {
  display: block;
  margin-top: 6px;
  color: var(--hx-mute);
  font-size: 13px;
}
.hx-path li.is-now {
  background: var(--hx-ink);
  color: #fff;
  border-color: var(--hx-ink);
}
.hx-path li.is-now b { color: var(--hx-gold-2); }
.hx-path li.is-now small { color: rgba(255,255,255,.7); }
.hx-path li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -11px;
  top: 46%;
  z-index: 1;
  color: #c4a35a;
  font-size: 16px;
  font-weight: 600;
}

.hx-company { margin: 0 0 64px; }
.hx-company-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hx-line);
}
.hx-company-head h2 { margin: 0; max-width: none; font-size: clamp(28px, 3.4vw, 40px); }
.hx-meta { margin: 0; color: var(--hx-mute); font-size: 14px; }
.hx-meta-stack {
  text-align: right;
  line-height: 1.4;
}

.hx-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.hx-timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(#c4a35a, rgba(196,163,90,.08));
  transform-origin: top;
  transition: transform 1.1s var(--hx-ease);
}
.hx-js .hx-timeline::before { transform: scaleY(0); }
.hx-js .hx-timeline.is-in::before { transform: scaleY(1); }
.hx-timeline li {
  position: relative;
  padding: 0 0 22px 42px;
  transition: opacity .7s var(--hx-ease), transform .7s var(--hx-ease);
}
.hx-js .hx-timeline li {
  opacity: 0;
  transform: translateX(-16px);
}
.hx-js .hx-timeline.is-in li { opacity: 1; transform: none; }
.hx-timeline.is-in li:nth-child(1) { transition-delay: .05s; }
.hx-timeline.is-in li:nth-child(2) { transition-delay: .12s; }
.hx-timeline.is-in li:nth-child(3) { transition-delay: .18s; }
.hx-timeline.is-in li:nth-child(4) { transition-delay: .24s; }
.hx-timeline.is-in li:nth-child(5) { transition-delay: .3s; }
.hx-timeline.is-in li:nth-child(6) { transition-delay: .36s; }
.hx-timeline li:last-child { padding-bottom: 0; }
.hx-dot {
  position: absolute;
  left: 1px; top: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--hx-gold);
  box-shadow: 0 0 0 5px #fff;
}
.hx-role {
  background: var(--hx-paper);
  border: 1px solid var(--hx-line);
  border-radius: 18px;
  padding: 18px 20px;
  transition: transform .3s var(--hx-ease), border-color .25s;
}
.hx-role:hover { transform: translateX(6px); border-color: rgba(163,133,43,.4); }
.hx-role h3 { font-size: 18px; margin: 0 0 4px; }
.hx-role .hx-dates { margin: 0; color: var(--hx-mute); font-size: 14px; }
.hx-role-note {
  margin: 10px 0 0;
  color: var(--hx-mute);
  font-size: 15px;
  line-height: 1.5;
}
.hx-now { color: #8a6f2a; font-weight: 600; }

.hx-prose {
  background: var(--hx-paper);
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  padding: 24px 26px;
}
.hx-prose p:last-child { margin-bottom: 0; }

.hx-note {
  margin-top: 8px;
  color: var(--hx-mute);
  font-size: 14px;
}
.hx-note a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .hx-hero { padding: 72px 20px 48px; }
  .hx-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hx-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hx-hero-photo {
    justify-self: center;
    width: 168px;
    order: -1;
  }
  .hx-hero-copy { order: 1; }
  .hx-stats { grid-template-columns: 1fr; gap: 10px; }
  .hx-bento, .hx-card.hx-wide, .hx-split, .hx-path { grid-template-columns: 1fr; }
  .hx-path-job {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 36px;
  }
  .hx-path-job li {
    min-height: 0;
    padding: 12px 8px 10px;
  }
  .hx-path-job li span,
  .hx-path-job li a { font-size: 14px; }
  .hx-path-job li small { font-size: 11px; }
  .hx-company-own { padding: 22px 18px 4px; }
  #hx-me, #hx-tools, #hx-career, #hx-company { scroll-margin-top: 128px; }
  .hx-section { padding: 64px 0; }
  .hx-section .hx-inner { width: min(100%, calc(100% - 32px)); }
  .hx-map { top: 56px; padding: 10px 12px; }
  .hx-map a { padding: 8px 10px; }
  .hx-path { gap: 8px; }
  .hx-path li:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-blob, .hx-marquee-track,
  .hx-js .hx-hero .hx-reveal,
  .hx-js .hx-card, .hx-js .hx-timeline li, .hx-js .hx-reveal, .hx-js .hx-timeline::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
