/* Fuller supplemental layer. Tokens live in theme.json; this is only
   what presets can't express. Kept deliberately small. */

:root { --fuller-accent: #E9B44C; --fuller-border: #242B35; }

/* --- Domain-as-monogram: a terminal cursor after the wordmark --- */
.fuller-monogram {
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  letter-spacing: -0.01em;
  font-weight: 500;
  white-space: nowrap;
}
.fuller-monogram .dot-ac { color: var(--fuller-accent); }
.fuller-monogram::after {
  content: "";
  display: inline-block;
  width: 0.56em; height: 1.05em;
  margin-left: 0.14em;
  vertical-align: -0.16em;
  background: var(--fuller-accent);
  animation: fuller-blink 1.15s steps(1) infinite;
}
@keyframes fuller-blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fuller-monogram::after { animation: none; opacity: 0.9; }
}

/* --- Card group style: surface panel with hairline border --- */
.wp-block-group.is-style-card {
  background: #14181F;
  border: 1px solid var(--fuller-border);
  border-radius: 10px;
  padding: clamp(1.35rem, 3vw, 2rem);
  transition: border-color .18s ease, transform .18s ease;
}
a.wp-block-group.is-style-card:hover,
.wp-block-group.is-style-card:hover {
  border-color: #3a4757;
}

/* Venture cards that are whole-card links */
.fuller-venture { display: block; text-decoration: none; color: inherit; }
.fuller-venture:hover { transform: translateY(-2px); }
.fuller-venture .venture-go { color: var(--fuller-accent); font-weight: 600; }
.fuller-venture:hover .venture-go { text-decoration: underline; }

/* --- Hairline top rule on a group (section divider) --- */
.wp-block-group.is-style-hairline { border-top: 1px solid var(--fuller-border); }

/* --- Accent-edged highlight card (the platform-bridging differentiator) --- */
.wp-block-group.fuller-accent-edge { border-left: 3px solid var(--fuller-accent); }

/* --- Ambient circuit background (front page). Vertical top-to-bottom flow --- */
.fuller-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* the gradient ground: a faint cool glow up top settling into deep base */
  background:
    radial-gradient(140% 70% at 50% -12%, rgba(127, 178, 229, 0.09), transparent 62%),
    linear-gradient(180deg, #10131b 0%, #0B0E12 42%, #08090d 100%);
}
.fuller-bg svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.7;
  /* keep the circuit strong at the left/right margins, quiet behind the
     centered text column so legibility never suffers */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 20%, rgba(0,0,0,0.28) 50%, #000 80%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 20%, rgba(0,0,0,0.28) 50%, #000 80%, #000 100%);
  will-change: transform;
}
/* Keep all site content above the background */
.wp-site-blocks { position: relative; z-index: 1; }

/* Scroll-driven parallax: the circuit drifts down slightly as you scroll the
   page. Progressive enhancement only; static (still animated) fallback if the
   browser has no scroll-timeline support. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .fuller-bg svg {
      animation: fuller-drift linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes fuller-drift {
      from { transform: translateY(-2.5%); }
      to   { transform: translateY(5%); }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  /* stop the motion: hide travelling pulses, freeze nodes to a calm base */
  .fuller-bg .pulses { display: none; }
  .fuller-bg .switch-nodes circle,
  .fuller-bg .nodes circle { opacity: 0.24 !important; }
  .fuller-bg .switch-nodes animate,
  .fuller-bg .nodes animate { display: none; }
  .fuller-bg svg { opacity: 0.5; }
}

/* --- Interactive "bridge" diagram (Work page). CSS-only, radio-driven. --- */
.bridge { margin-top: 1.5rem; }
.bridge-r { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
.bridge-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5rem; }
.bnode { flex: 1 1 150px; min-width: 150px; display: flex; flex-direction: column; gap: 0.15rem; cursor: pointer; background: #14181F; border: 1px solid var(--fuller-border); border-radius: 10px; padding: 0.85rem 1rem; transition: border-color .18s ease, transform .18s ease; }
.bnode:hover { transform: translateY(-2px); }
.bnode .l { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9AA3AF; }
.bnode .t { font-weight: 600; font-size: 0.98rem; color: #ECEEF1; }
.bnode .s { font-size: 0.8rem; color: #9AA3AF; }
.bnode.is-hub { border-color: rgba(233,180,76,0.45); background: #181a15; }
.barrow { align-self: center; color: #3a4757; font-family: ui-monospace, monospace; font-size: 1.1rem; }
.bridge-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.bridge-chips-label { font-family: ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9AA3AF; margin-right: 0.25rem; }
.bchip { cursor: pointer; font-family: ui-monospace, monospace; font-size: 0.78rem; color: #ECEEF1; border: 1px solid var(--fuller-border); border-radius: 999px; padding: 0.35rem 0.85rem; transition: border-color .18s ease, color .18s ease; }
.bchip:hover { border-color: #3a4757; }
.bridge-detail { margin-top: 1.1rem; background: #14181F; border: 1px solid var(--fuller-border); border-radius: 10px; padding: 1.15rem 1.35rem; }
.bpanel { display: none; margin: 0; font-size: 0.98rem; line-height: 1.6; color: #9AA3AF; }
.bpanel b { color: #ECEEF1; font-weight: 600; }
#bn-legacy:checked ~ .bridge-detail .bpanel[data-k="legacy"],
#bn-bridge:checked ~ .bridge-detail .bpanel[data-k="bridge"],
#bn-app:checked ~ .bridge-detail .bpanel[data-k="app"],
#bn-customers:checked ~ .bridge-detail .bpanel[data-k="customers"],
#bn-api:checked ~ .bridge-detail .bpanel[data-k="api"],
#bn-triggers:checked ~ .bridge-detail .bpanel[data-k="triggers"],
#bn-timers:checked ~ .bridge-detail .bpanel[data-k="timers"] { display: block; }
#bn-legacy:checked ~ .bridge-flow .bnode[data-k="legacy"],
#bn-bridge:checked ~ .bridge-flow .bnode[data-k="bridge"],
#bn-app:checked ~ .bridge-flow .bnode[data-k="app"],
#bn-customers:checked ~ .bridge-flow .bnode[data-k="customers"] { border-color: var(--fuller-accent); }
#bn-api:checked ~ .bridge-chips .bchip[data-k="api"],
#bn-triggers:checked ~ .bridge-chips .bchip[data-k="triggers"],
#bn-timers:checked ~ .bridge-chips .bchip[data-k="timers"] { border-color: var(--fuller-accent); color: var(--fuller-accent); }
#bn-legacy:focus-visible ~ .bridge-flow .bnode[data-k="legacy"],
#bn-bridge:focus-visible ~ .bridge-flow .bnode[data-k="bridge"],
#bn-app:focus-visible ~ .bridge-flow .bnode[data-k="app"],
#bn-customers:focus-visible ~ .bridge-flow .bnode[data-k="customers"],
#bn-api:focus-visible ~ .bridge-chips .bchip[data-k="api"],
#bn-triggers:focus-visible ~ .bridge-chips .bchip[data-k="triggers"],
#bn-timers:focus-visible ~ .bridge-chips .bchip[data-k="timers"] { outline: 2px solid var(--fuller-accent); outline-offset: 2px; }
@media (max-width: 640px) { .barrow { display: none; } }

/* --- Interactive automation canvas (Work page). Enhanced with a little JS. --- */
.acv { margin-top: 1.5rem; border: 1px solid var(--fuller-border); border-radius: 14px; background: linear-gradient(180deg, #12151c, #0d1015); overflow: hidden; }
.acv-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--fuller-border); background: #0f1218; }
.acv-bar .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #2a3340; }
.acv-bar .name { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.75rem; color: #9AA3AF; margin-left: 0.4rem; }
.acv-bar .run { margin-left: auto; font-family: ui-monospace, monospace; font-size: 0.72rem; color: #0B0E12; background: var(--fuller-accent); border: 0; border-radius: 6px; padding: 0.35rem 0.75rem; cursor: pointer; font-weight: 700; }
.acv-bar .run:hover { filter: brightness(1.08); }
.acv-cols { display: grid; grid-template-columns: 0.9fr 1.4fr 1fr; gap: 1rem; padding: 1.25rem; }
@media (max-width: 820px) { .acv-cols { grid-template-columns: 1fr; gap: 0.85rem; } }
.acv-coltitle { font-family: ui-monospace, monospace; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9AA3AF; margin-bottom: 0.6rem; }
.acv-col { min-width: 0; }
.acv-trigger { width: 100%; text-align: left; display: block; cursor: pointer; background: #14181F; border: 1px solid var(--fuller-border); border-radius: 10px; padding: 0.65rem 0.8rem; margin-bottom: 0.5rem; transition: border-color .18s, transform .18s; color: inherit; }
.acv-trigger:hover { transform: translateY(-1px); }
.acv-trigger .tt { display: block; font-weight: 600; font-size: 0.95rem; color: #ECEEF1; }
.acv-trigger .ts { display: block; font-family: ui-monospace, monospace; font-size: 0.72rem; color: #9AA3AF; }
.acv-trigger.is-active { border-color: var(--fuller-accent); background: #181a15; }
.acv-trigger.is-active .tt { color: var(--fuller-accent); }
.acv-code { margin: 0; background: #0c0f14; border: 1px solid var(--fuller-border); border-radius: 10px; padding: 0.9rem 1rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.7; overflow-x: auto; white-space: pre; color: #c7ccd4; }
.acv-code .k { color: #7FB2E5; } .acv-code .s { color: #6FCF97; } .acv-code .n { color: #E9B44C; } .acv-code .c { color: #5b6675; } .acv-code .fn { color: #E9B44C; }
.acv-payload { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0; }
.acv-chip { font-family: ui-monospace, monospace; font-size: 0.72rem; color: #9AA3AF; border: 1px solid var(--fuller-border); border-radius: 6px; padding: 0.2rem 0.5rem; }
.acv-chip b { color: #ECEEF1; font-weight: 600; }
.acv-controls { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.acv-toggle { cursor: pointer; font-family: ui-monospace, monospace; font-size: 0.75rem; color: #ECEEF1; background: #14181F; border: 1px solid var(--fuller-border); border-radius: 999px; padding: 0.35rem 0.8rem; }
.acv-toggle:hover { border-color: #3a4757; }
.acv-result { font-family: ui-monospace, monospace; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 6px; }
.acv-result.t { color: #6FCF97; background: rgba(111,207,151,0.1); }
.acv-result.f { color: #E9857A; background: rgba(233,133,122,0.1); }
.acv-action { display: flex; align-items: center; gap: 0.6rem; background: #14181F; border: 1px solid var(--fuller-border); border-radius: 10px; padding: 0.6rem 0.7rem; margin-bottom: 0.5rem; opacity: 0.42; transition: opacity .25s, border-color .25s, transform .2s; cursor: pointer; }
.acv-action .m { font-family: ui-monospace, monospace; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; color: #9AA3AF; border: 1px solid var(--fuller-border); border-radius: 5px; padding: 0.12rem 0.35rem; }
.acv-action .ep { font-family: ui-monospace, monospace; font-size: 0.8rem; color: #c7ccd4; }
.acv-action.is-fired { opacity: 1; border-color: rgba(233,180,76,0.5); }
.acv-action.is-fired .m { color: #E9B44C; border-color: rgba(233,180,76,0.5); }
.acv-action.is-firing { animation: acvFire .55s ease; }
@keyframes acvFire { 0% { transform: translateX(-4px); box-shadow: 0 0 0 0 rgba(233,180,76,0.5); } 100% { transform: none; box-shadow: 0 0 0 9px rgba(233,180,76,0); } }
.acv-detail { padding: 0.85rem 1.15rem; border-top: 1px solid var(--fuller-border); font-size: 0.92rem; line-height: 1.55; color: #9AA3AF; }
.acv-detail b { color: #ECEEF1; font-weight: 600; }
.acv-log { border-top: 1px solid var(--fuller-border); background: #0c0f14; padding: 0.7rem 1.15rem; font-family: ui-monospace, monospace; font-size: 0.72rem; color: #7d8794; min-height: 2.4rem; max-height: 8rem; overflow: auto; }
.acv-log .ln { padding: 0.06rem 0; }
.acv-log .ok { color: #6FCF97; } .acv-log .t { color: #5b6675; }
@media (prefers-reduced-motion: reduce) { .acv-action.is-firing { animation: none; } }
/* Widen the canvas past the reading column so it fills the page on desktop */
@media (min-width: 821px) {
  .acv { width: min(1080px, 94vw); margin-left: 50%; transform: translateX(-50%); }
}

/* Screen-reader-only utility (used by the typewriter hero line) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Typewriter role line keeps the monogram cursor as its caret; reserve height so it never jumps */
.fuller-type { }

/* --- Kicker / eyebrow label (mono, muted, tracked) --- */
.fuller-kicker {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9AA3AF;
}
.fuller-kicker .tick { color: var(--fuller-accent); }

/* --- Tick list for the "what I build" bullets --- */
.wp-block-list.is-style-ticks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-ticks li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem;
}
.wp-block-list.is-style-ticks li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--fuller-accent);
}

/* --- Dotted separator --- */
.wp-block-separator.is-style-dotted {
  border: 0; border-top: 1px dotted var(--fuller-border);
  opacity: 1; max-width: 100%;
}

/* --- Long-form reading: comfortable measure + spacing on single posts --- */
.fuller-prose p { max-width: 68ch; }
.fuller-prose h2 { margin-top: 2.5rem; }
.fuller-prose h3 { margin-top: 1.75rem; }
.fuller-prose :where(pre) {
  background: #0f131a; border: 1px solid var(--fuller-border);
  border-radius: 8px; padding: 1rem 1.1rem; overflow-x: auto;
  font-size: 0.9rem;
}

/* --- Header nav: quiet until hover --- */
.fuller-nav a { color: #ECEEF1; }
.fuller-nav a:hover { color: var(--fuller-accent); text-decoration: none; }

/* --- Skip link (a11y) --- */
.skip-link:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  background: var(--fuller-accent); color: #0B0E12; padding: 0.5rem 0.9rem;
  border-radius: 6px; font-weight: 600;
}

/* Focus visibility across the board (a11y) */
:where(a, button, input, .wp-block-button__link):focus-visible {
  outline: 2px solid var(--fuller-accent); outline-offset: 2px; border-radius: 4px;
}
