/* Sharad — sections rendered outside the Framer export (.sx).
   Matches the surrounding design: Geist, light theme, #DC2626 accent. */

.sx {
  --ink: #0b0b0b;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #dc2626;
  --card: #ffffff;
  --page: #fafafa;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 96px;
  box-sizing: border-box;
  font-family: Geist, "Geist Placeholder", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
}

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

.sx .sx-eyebrow {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 500;
}

.sx .sx-h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.sx .sx-lede {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 52ch;
}

.sx section {
  margin: 0 0 96px;
  scroll-margin-top: 90px;
}

/* ------------------------------------------------------------ bento grid */

.sx .sx-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 132px;
  gap: 12px;
}

.sx .sx-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
  min-height: 0;
}

.sx .sx-tile:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* bento rhythm: one large, two medium, one wide-ish */
.sx .sx-tile:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.sx .sx-tile:nth-child(2) {
  grid-column: span 2;
}
.sx .sx-tile:nth-child(3) {
  grid-column: span 1;
}
.sx .sx-tile:nth-child(4) {
  grid-column: span 1;
}

.sx .sx-tile-id {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.sx .sx-tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.sx .sx-tile-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.sx .sx-tile-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* empty state — deliberately blank, no placeholder lorem */
.sx .sx-tile-empty {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  align-self: flex-start;
}

.sx .sx-tile[data-filled="true"] .sx-tile-empty {
  display: none;
}

/* ------------------------------------------------------------- header nav ---
   Framer's own header is not reused. On wide viewports it contains nothing but
   the logo -- its Contact link collapses to a zero-width box -- and anything
   written into that subtree is wiped when React re-renders. So this is a
   sibling element that mirrors the header's geometry exactly: 40px of side
   padding, then a 760px row centred, which is what Framer computes at every
   width. The links themselves are a filtered copy of MENU_LINKS, and Home is
   dropped because the logo already covers it. */
/* Framer keeps its own Contact link, and it would sit next to ours. Hiding it
   needs !important: the rule that beats a plain `header a[href]` is
   `.framer-kKJRD.framer-1djwkkv` at (0,2,0), and those hashes are rewritten on
   every Framer export, so out-specifying them by class is not a stable plan. */
header a[href="./contact"] {
  display: none !important;
}

.sx .sx-headnav {
  display: none;
}

@media (min-width: 810px) {
  .sx .sx-headnav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 11;
    /* the bar spans the full width but must never swallow a click meant for
       the Framer logo underneath it */
    pointer-events: none;
  }

  .sx .sx-headnav-inner {
    width: 100%;
    max-width: 760px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    pointer-events: none;
  }

  .sx .sx-headnav-link {
    pointer-events: auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.2px;
    text-decoration: none;
    /* Framer ships `a { color: ... !important }`, so without matching it here
       these links render in their link-red whatever we ask for. */
    color: var(--ink) !important;
    transition: color 0.15s ease;
  }

  .sx .sx-headnav-link:hover,
  .sx .sx-headnav-link:focus-visible {
    color: var(--accent) !important;
  }
}

/* ------------------------------------------------------------------ quote */
.sx .sx-quote {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  text-align: center;
}

/* Centred, so the measure is capped -- a 760px-wide line of centred text reads
   badly and balance alone will not save it. */
.sx .sx-quote-text {
  margin: 0 auto 14px;
  max-width: 34ch;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.3px;
  text-wrap: balance;
}

.sx .sx-quote-by {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  /* letter-spacing adds a trailing gap, which pushes centred mono text left */
  text-indent: 0.08em;
}

/* the placeholder should not draw a second rule right above the footer's */
/* the label is centred too, so the whole section reads as one composition
   rather than a left-aligned heading floating over centred text */
.sx #quote .sx-eyebrow {
  text-align: center;
}

.sx #sx-quote .sx-empty {
  text-align: center;
  border-top: 0;
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------------------------------------------------------------- menubar ---
   The header belongs to Framer's React tree, which re-renders and resets any
   attribute or class we add to its nodes. So the state lives on <html>, which
   React never touches, and the toggle is a real <button> we create ourselves.
   Framer's own dead hamburger is hidden on mobile; its desktop Contact link is
   left alone because it works. */
html.sx-nav-ready .framer-15ktadd {
  display: none;
}

.sx .sx-burger {
  display: none;
  position: fixed;
  top: 7px;
  right: 20px;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 11;
  -webkit-tap-highlight-color: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sx .sx-burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.sx .sx-burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html.sx-menu-open .sx .sx-burger-bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

html.sx-menu-open .sx .sx-burger-bar:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.sx .sx-menu {
  position: fixed;
  top: 52px;            /* the measured height of the Framer header */
  left: 0;
  right: 0;
  z-index: 9;           /* just under the header's z-index of 10 */
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.sx .sx-menu[hidden] {
  display: none;
}

.sx .sx-menu-list {
  list-style: none;
  margin: 0;
  padding: 8px 24px 14px;
  max-width: 760px;
}

.sx .sx-menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sx .sx-menu-list li:last-child .sx-menu-link {
  border-bottom: 0;
}

/* Framer's export ships `a { color: var(--color-secondary) !important }`, and
   an !important declaration beats any non-important one whatever its
   specificity, so a plain :hover colour here would never apply. Matching the
   !important is the only way to get hover feedback on these links. */
.sx .sx-menu-link:hover,
.sx .sx-menu-link:focus-visible {
  color: var(--accent) !important;
  background: rgba(0, 0, 0, 0.025);
}

/* stop the page scrolling behind an open menu */
html.sx-menu-open {
  overflow: hidden;
}

@media (max-width: 809px) {
  .sx .sx-burger {
    display: flex;
  }
}

/* -------------------------------------------------------------------- stack */
.sx .sx-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* 128px keeps all five cards on one row at the 760px content width:
     5 x 128 + 4 x 12 gap = 688, which fits. At 148 it dropped to 4 + 1. */
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}

.sx .sx-stack-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.sx .sx-stack-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.sx .sx-stack-ico {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 0 12px;
  color: var(--ink);
}

.sx .sx-stack-ico svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.sx .sx-stack-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.sx .sx-stack-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Each icon gets its own signature so the row does not pulse as one block:
   the Claude mark turns, the terminal blinks, the note bobs to a beat, GitHub
   pings, and the steam lifts off the cup. The artwork itself is the real logo
   (see assets/logos/SOURCES.md); only the motion is ours. Because the SVGs are
   inlined rather than loaded through <img>, these child selectors can reach
   them, and currentColor lets the marks follow the page. */
.sx .sx-stack-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sx .sx-stack-ico svg > *,
.sx .sx-stack-ico svg g {
  transform-box: fill-box;
  transform-origin: center;
}

/* -- Claude Code: the mark turns, and the card breathes ------------------- */
@keyframes sx-claude-turn {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50%      { transform: rotate(5deg) scale(1.06); }
}

@keyframes sx-claude-halo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.13); }
}

.sx .sx-stack-card--claude .sx-mark {
  animation: sx-claude-turn 3.4s ease-in-out infinite;
}

/* the brand's own coral, so the mark is the colour it was designed in */
.sx .sx-stack-card--claude .sx-stack-ico { color: #d97757; }

.sx .sx-stack-card--claude {
  animation: sx-claude-halo 3.4s ease-in-out infinite;
}

/* -- Terminal: a prompt that blinks and nudges --------------------------- */
@keyframes sx-blink {
  0%, 46%   { opacity: 1; }
  47%, 100% { opacity: 0.1; }
}

@keyframes sx-nudge {
  0%, 72%, 100% { transform: translateX(0); }
  78%           { transform: translateX(1.3px); }
  86%           { transform: translateX(0); }
  91%           { transform: translateX(0.6px); }
}

.sx .sx-stack-card--terminal .sx-term-caret {
  animation: sx-blink 1.15s steps(1, end) infinite;
  stroke: var(--accent);
}

.sx .sx-stack-card--terminal .sx-term-chev {
  animation: sx-nudge 2.6s ease-in-out infinite;
}

/* -- SkyeMusic: a note bobbing to a beat --------------------------------- */
@keyframes sx-bob {
  0%, 100% { transform: rotate(-7deg) translateY(0.3px); }
  50%      { transform: rotate(7deg) translateY(-0.6px); }
}

.sx .sx-stack-card--skye .sx-note {
  animation: sx-bob 1.45s ease-in-out infinite;
}

/* -- GitHub: the mark pulses like a refreshed feed ----------------------- */
@keyframes sx-ping {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.09); }
}

.sx .sx-stack-card--github .sx-gh-mark {
  animation: sx-ping 2.4s ease-in-out infinite;
}

/* -- Brain and Coffee: steam lifting off the cup ------------------------- */
@keyframes sx-steam {
  0%   { transform: translateY(1.4px) scaleY(0.85); opacity: 0; }
  35%  { opacity: 0.85; }
  100% { transform: translateY(-2.4px) scaleY(1.15); opacity: 0; }
}

.sx .sx-stack-card--coffee .sx-steam-a {
  animation: sx-steam 2.9s ease-out infinite;
}

.sx .sx-stack-card--coffee .sx-steam-b {
  animation: sx-steam 2.9s ease-out infinite;
  animation-delay: 0.72s;
}

.sx .sx-stack-card--coffee .sx-steam-c {
  animation: sx-steam 2.9s ease-out infinite;
  animation-delay: 1.44s;
}

/* --------------------------------------------------------------- writing */

.sx .sx-posts {
  border-top: 1px solid var(--line);
}

.sx .sx-post {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.sx .sx-post:hover {
  background: rgba(0, 0, 0, 0.02);
}

.sx .sx-post:hover .sx-post-title {
  color: var(--accent);
}

.sx .sx-post-date {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}

.sx .sx-post-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.sx .sx-post-excerpt {
  grid-column: 2 / -1;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: -4px 0 0;
}

.sx .sx-post-meta {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.sx .sx-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------- contact */

.sx .sx-rows {
  border-top: 1px solid var(--line);
}

.sx .sx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

.sx .sx-row:hover {
  color: var(--accent);
}

.sx .sx-row-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}

.sx .sx-row:hover .sx-row-label {
  color: var(--accent);
}

.sx .sx-row-value {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sx .sx-row:hover .sx-row-value {
  color: var(--accent);
}

.sx .sx-ico {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------- counter + footer */

.sx .sx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  align-items: baseline;
  padding-top: 4px;
}

.sx .sx-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.sx .sx-stat-n {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}

.sx .sx-stat-l {
  font-size: 13px;
  color: var(--muted);
}

/* Three items on one row: identity left, credit centred, copyright right.
   A grid was needed because `width:100%` on the copyright was pushing it onto
   a second row. Every child gets an explicit line-height so mixed font sizes
   share a baseline instead of each sitting at its own height inside its box. */
.sx .sx-foot {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
  row-gap: 10px;
}

.sx .sx-foot-me {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  /* the identity now sits where the "Built by" credit used to be: centred */
  grid-column: 2;
  justify-self: center;
  min-width: 0;
}

.sx .sx-foot-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex: none;
}

.sx .sx-copyright {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.38);
  grid-column: 3;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.sx a:focus-visible,
.sx button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 809px) {
  .sx {
    padding: 0 20px 72px;
  }
  .sx section {
    margin-bottom: 72px;
  }
  .sx .sx-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 112px;
  }
  /* five cards do not divide by two, so let the last one span the row rather
     than sit alone. `1 / -1` rather than `span 2` so it cannot invent an
     implicit column when the grid has already collapsed to one. */
  .sx .sx-stack-card:last-child {
    grid-column: 1 / -1;
  }
  /* wide / half / half / wide, so the last tile does not sit alone on a row */
  .sx .sx-tile:nth-child(1),
  .sx .sx-tile:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .sx .sx-tile:nth-child(2),
  .sx .sx-tile:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .sx .sx-post {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 20px 2px;
  }
  .sx .sx-post-date {
    grid-column: 1 / -1;
  }
  .sx .sx-post-excerpt {
    grid-column: 1 / -1;
  }
  .sx .sx-row {
    padding: 18px 2px;
  }
  /* three columns get cramped: identity and credit share the first row,
     the copyright drops below and returns to the left edge */
  .sx .sx-foot {
    grid-template-columns: 1fr;
    column-gap: 14px;
    row-gap: 8px;
    padding-top: 20px;
  }
  .sx .sx-foot-me {
    grid-column: 1;
    justify-self: center;
  }
  .sx .sx-copyright {
    grid-column: 1;
    justify-self: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx .sx-tile,
  .sx .sx-post,
  .sx .sx-row,
  .sx .sx-stack-card {
    transition: none;
  }
  .sx .sx-tile:hover,
  .sx .sx-stack-card:hover {
    transform: none;
  }
  /* These have to out-specify the per-icon rules, which sit at (0,3,0) via
     `.sx .sx-stack-card--x .sx-part`. Spelling the full path gives (0,4,2) and
     actually wins -- a bare `.sx-stack-card *` is (0,2,0) and silently loses,
     which is how 11 of the 12 animations kept running. */
  .sx .sx-stack .sx-stack-card,
  .sx .sx-stack .sx-stack-card .sx-stack-ico svg > *,
  .sx .sx-stack .sx-stack-card .sx-stack-ico svg g {
    animation: none;
  }
}
