/* All three faces are the Google Fonts originals under the OFL, cut down to
   the characters this page sets (scripts/subset-fonts.py). They are the studio
   site's own faces, so the two domains read as the same hand.
   Block, not swap: the files are a few KB and preloaded, and the wordmark is
   sized from a measurement of the real face, so a fallback would paint the
   page at one width and then move it. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: block;
  src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2");
}

/* The studio's own wordmark: the same family at weight 700 and at the text
   optical size, which is the cut it renders at 15px. The display face above
   is a different point in the same design space and would set the name
   heavier and tighter than the studio sets it. Eleven letters and a space. */
@font-face {
  font-family: "NeonFuji Wordmark";
  font-weight: 700;
  font-display: block;
  src: url("/fonts/bricolage-grotesque-700-logo.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: block;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

:root {
  /* The studio site's ground, ink and mono labels, so the two domains read as
     one hand. Nothing else is shared: this is a sibling page, not a page of
     that site. */
  --bg: #07070c;
  --word: #f4f3ef;
  --read: rgba(226, 227, 238, 0.62);
  --hint: rgba(226, 227, 238, 0.52);
  /* The credit hangs off the wordmark's ink, not its box. --mark-rest is the
     size the page's resting word sets at; suite.js writes the measured value,
     and until it runs the stylesheet's own estimate stands in.
     --credit-gap is the clear space from the wordmark's baseline (the foot of
     the N) to the top of the capitals in NEONFUJI LABS: a twentieth of the
     word's size, so it stays in proportion from a phone to a wide screen, and
     never under 6px. --credit-h is the height the credit adds to the band:
     that gap, plus the 13.9px from the cap top to the foot of the 18px row
     (the row's baseline is 14px down and the caps are 9.9px tall, so the cap
     top is 4.1px into it). */
  --mark-rest: var(--mark-size);
  --credit-gap: max(6px, calc(var(--mark-rest) * 0.05));
  --credit-h: calc(var(--credit-gap) + 13.9px);
  --ember: rgba(242, 144, 59, 0.92);
  --ring: #f2b572;

  /* The studio footer's ramp (#f8e2c7, #f4f3ef, #e2e9f6 at 46%) with the ends
     saturated. Same three stops and same midpoint, so it is recognisably the
     same gradient, but readable as the only colour on this screen. */
  --dawn: linear-gradient(90deg, #f2b572 0%, #f6f4f0 46%, #a9c6f2 100%);

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --gutter: 1rem;
  --app-size: clamp(26px, 4.4vw, 66px);
  /* Sine-shaped in-out, lifted from the studio site's own motion token. */
  --drift: cubic-bezier(0.37, 0, 0.63, 1);

  /* How wide the two governing words render in the subset face, in em, with
     the -0.035em tracking folded in. Measured in the browser, not read off
     the font file. The wordmark is sized to fill the measure, so these turn
     the measure into a font size before suite.js has run, and the runtime fit
     then corrects to the pixel. The narrowest word a page's band can show
     needs the largest size, so it sets the reserved height.
     Re-measure if the fonts are ever re-cut, and re-measure --mark-em if the
     wordmark's text changes: it is the width of that exact string, so a
     rename leaves it describing a word the page no longer sets, and the band
     paints at the old size until the script corrects it. */
  --mark-em: 6.8241;
  --mark-em-tallest: 6.8241;
  --measure: calc(100vw - 2 * var(--gutter));
  /* The names sit in from the gutter, and the wordmark starts on the same
     pixel they do, so the three names and the word under them share one left
     edge. It ends the same distance from the right edge as it starts from the
     left, so the word sits in the page rather than against one side of it,
     and it sets smaller than the full measure by both of those insets. One
     token moves all of it. */
  --indent: calc(var(--measure) * 0.025);
  --span: calc(var(--measure) - 2 * var(--indent));
  --mark-size: calc(var(--span) / var(--mark-em));
  --band-h: calc(var(--span) / var(--mark-em-tallest) * 0.74);
}

/* Each page rests on its own word and has its own narrowest word, so each
   carries its own pair. /tools, the default above, shows only NEONFUJI
   TOOLS. On /apps MYRESUME is the narrowest; on the home page the resting
   NEONFUJI.COM is narrower than either door's word. */
:root[data-page="apps"] {
  --mark-em: 6.416;
  --mark-em-tallest: 4.859;
}

/* The two doors are the whole of the home page, so they set larger than the
   names on /apps: at that size two short words look like a leftover list. */
:root[data-page="home"] {
  --mark-em: 6.168;
  --mark-em-tallest: 6.168;
  --app-size: clamp(40px, 7.4vw, 112px);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  /* svh, not vh: the band sits on the bottom edge and a mobile URL bar would
     push it off the screen of a page that cannot scroll. */
  height: 100svh;
  background: var(--bg);
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

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

/* The top row holds the way home and nothing else. The N stands exactly where
   it does in NeonFuji Workspace (owner, 2026-10-25): 40px in and 10px down on
   wide screens, 16px and 8px on phones, so the home page and the app share one
   mark in one place. */
.top {
  display: flex;
  padding: 10px 40px 0;
}

/* The favicon's N, drawn 30px in a 42 by 44 target, the same as the app's N
   key: no frame, a quiet fill on hover. The N is the wordmark's ramp, the
   only colour on the page, so the button and the word at the foot are
   visibly the same name. */
.home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 44px;
  border-radius: 10px;
  transition: background-color 0.25s ease;
}

.home svg {
  display: block;
  width: 30px;
  height: 30px;
}

@media (hover: hover) {
  .home:hover {
    background: rgba(226, 227, 238, 0.07);
  }
}

.home:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Under the wordmark, on its left edge, close enough to read as its
   signature. The row is a fixed 18px so the band can reserve it exactly
   (--credit-h) and nothing above it moves. The link is
   padded out to a 44px target and the padding taken back in margin, so the
   target grows without the row doing so. */
.credit {
  display: block;
  height: 18px;
  /* The top margin puts the cap top --credit-gap under the baseline: back
     the 4.1px the caps sit into the row and the 13px of target padding. */
  margin: calc(var(--credit-gap) - 17.1px) 0 -13px;
  /* Starts where the N's ink starts, not where its box does. The N has
     0.04em of side bearing in the display face, and the B of "Built by" has
     0.088em in the mono at 0.7rem, so the row moves right by the one less
     the other. Measured from the font files, not by eye. */
  padding: 13px 0 13px calc(var(--mark-rest) * 0.04 - 0.7rem * 0.088);
  font-size: 0.7rem;
  line-height: 18px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  /* Both halves in full ink, stepped back as a whole the way a name steps
     back when another is active, and brought forward when it is the one
     being pointed at. 0.65 rather than the names' 0.4: the names are large
     type, this is 11 to 15px on the band's light, and at 0.4 it falls to
     2.8:1. At 0.65 the worst case (palest ramp, light raised) is 4.73:1. */
  color: var(--word);
  opacity: 0.65;
  text-decoration: none;
  box-sizing: content-box;
  transition: opacity 0.16s ease;
}

@media (hover: hover) {
  .credit:hover { opacity: 1; }
}

.credit:focus-visible {
  opacity: 1;
  outline: 2px solid var(--ring);
  outline-offset: 0;
}

/* The studio's name, set the way the studio sets it: weight 700 at 15px with
   1.2px of tracking. Read off its own header rather than matched
   by eye, so the two sites say the name in one voice. "Built by" stays in the
   mono the rest of this page uses, which is what keeps the name a name rather
   than a sentence. */
.credit .logo {
  font-family: "NeonFuji Wordmark", var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The one arrow on the page, and the only link that leaves the domain. */
.credit .arrow {
  display: inline-block;
  margin-left: 0.3em;
}

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--indent);
}

.app,
.mark {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  /* Bricolage's optical size axis would otherwise follow the font size, and
     the wordmark's size is computed from a measurement taken at a different
     one. Pinning the axis keeps the advance widths linear in the size, which
     is what makes one measurement enough, and it is the cut the studio site
     loads. */
  font-optical-sizing: none;
}

.app {
  display: block;
  width: max-content;
  cursor: default;
  color: var(--word);
  font-size: var(--app-size);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-decoration: none;
  opacity: 0.85;
  /* Short, because this is the page's own navigation: crossing the list
     should feel like moving a cursor, not like waiting for a fade. */
  transition: opacity 0.16s ease;
}

/* Hover only where there is a pointer that can hover. On a touchscreen this
   rule would stick on after a tap and leave two names looking active. */
@media (hover: hover) {
  .app:hover { opacity: 1; }
}

a.app {
  cursor: pointer;
}

.app:focus-visible {
  opacity: 1;
  /* Opacity alone is not a focus indicator: it is also what the hover state
     does, and it says nothing to a user who cannot see the difference. */
  outline: 2px solid var(--ring);
  outline-offset: 6px;
}

.app .name {
  display: inline-block;
}

/* What is behind each name, written under it and always shown. It does not
   dim with its name when another is active: at 0.4 of the reading ink it
   would fall to about 2:1, and the name stepping back already says which
   one is active. The gap between items is larger than the gap inside one, so each name keeps
   its own line rather than reading as the line above the next name. */
.list li + li {
  margin-top: clamp(1.4rem, 4vh, 2.6rem);
}

.line {
  margin: 0.6rem 0 0;
  max-width: 52ch;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--read);
}

/* Ember means "this is the address it opens". */
.line .where {
  display: block;
  color: var(--ember);
}

/* Said next to the name, because a name that goes nowhere yet has to say so
   before it is tapped. The owner asked for it in a solid box, set well clear
   of the name so it reads as a label on the name rather than part of it.
   A plain rectangle: no border, glow or pill, so it states a fact rather
   than selling one. Ink at 0.72 on the #1e1e25 fill measures 7.33:1. */
.app .status {
  display: inline-block;
  margin-left: 1.6rem;
  padding: 0.4em 0.7em 0.35em;
  border-radius: 4px;
  background: #1e1e25;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 227, 238, 0.72);
  vertical-align: middle;
}

/* /tools before it has anything in it: said in the lines' voice, where
   the names would be, so the page does not look broken while it is empty. */
.empty {
  margin: 0;
  padding-left: var(--indent);
  max-width: 44ch;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--read);
}

/* Held at the height of the tallest word the band can ever show. The
   wordmark's size changes during a morph, and a band free to resize would
   shrink the centred stage above it and slide the names up under the pointer,
   onto whichever name is next. */
.band {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: calc(var(--band-h) + 4.2vh + var(--credit-h));
  padding: 1.8vh calc(var(--gutter) + var(--indent)) 2.4vh;
}

/* The studio site's close, in this page's colours: the wordmark's own dawn
   ramp, masked to fade upward from the bottom edge, so the word lies across
   the light it is painted in. The mask is the studio's, stop for stop. It
   rises a little past the band into the stage, as the studio's rises out of
   its stack band, and nothing there can be clicked through it.
   0.18 at rest, 0.26 while a name is active, against the studio's 0.2 and
   0.3: these colours are paler than its spectrum, and the word in front is
   the same colours. Measured on the lit ground, the wordmark's dimmest stop
   holds 4.96:1 at rest and 5.9:1 active. */
.band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100% + 12vh);
  z-index: -1;
  background: var(--dawn);
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 12%, rgba(0, 0, 0, 0.38) 34%, transparent 88%);
  mask-image: linear-gradient(to top, #000 0%, #000 12%, rgba(0, 0, 0, 0.38) 34%, transparent 88%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Reaching for a name raises the light behind the word it turns into. */
.band:has(.mark[data-live="true"])::before {
  opacity: 0.26;
}

.mark {
  display: block;
  width: max-content;
  line-height: 0.82;
  /* The letters stand 0.08em above the foot of a 0.82em box (ascent 0.93,
     descent 0.27, so the half-leading puts the baseline 0.74em down). Pulling
     the box's foot up to the baseline makes the bottom of the box the bottom
     of the ink, which is what the credit below is set from. */
  margin-bottom: -0.08em;
  letter-spacing: -0.035em;
  font-size: var(--mark-size);
  opacity: 0.72;
  /* 0 and 1 are a third of an em apart in this face. Without tabular figures
     the binary string jitters on every tick. */
  font-variant-numeric: tabular-nums;
  /* background-clip: text paints the ramp only inside this element's own box,
     and the box is built from advance widths. Some letters' ink reaches past
     their advance: the S of TOOLS by 0.018em, the K of SPACEWORK by 0.023em,
     the worst of the words this band shows. Without room for it the last
     letter is painted as far as the box edge and then stops dead, which reads
     as a letter sliced down one side rather than as a colour that ran out.
     Padding widens the paint area only. The glyphs do not move, the gradient
     still spans the box, and the measure the band is fitted to is unchanged,
     because the element this is measured on is the ghost below.
     0.05em against a measured worst case of 0.023em: too little shows as a
     clipped letter, too much shifts the ramp's end by half a percent, so the
     margin is deliberately on the generous side. */
  padding-right: 0.05em;
  /* The gradient goes on the element whose opacity changes. On a parent it
     paints across every descendant and a child's opacity cannot touch it. */
  background-image: var(--dawn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The size is not transitioned. It is set on every tick of a morph, from
   whatever the band is showing at that moment, so it is already moving as the
   letters do. A transition on top of that would leave the size behind the
   text it belongs to, and a row of binary would reach past the gutter while it
   caught up. It is also what would otherwise animate the wordmark up from the
   stylesheet's estimate on the first paint. */
.mark {
  transition: opacity 0.3s ease;
}

.mark[data-live="true"] { opacity: 0.92; }

/* Carries .mark for identical metrics, which also means it would inherit the
   font-size transition and be measured at a size it has not reached yet. */
.ghost {
  position: absolute;
  top: -9999px;
  left: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  transition: none;
  /* This one is measured, not seen, and it is measured a character at a time
     to build the advance table. Carrying the ink allowance here would add it
     once per character instead of once per word. */
  padding-right: 0;
}

@media (max-width: 760px) {
  /* The indent is 9px at this width, which reads as a misalignment against
     the home button rather than as an indent. Dropping it here takes the
     names, the wordmark's left edge and the size that follows from it with
     one value: everything lines up on the gutter instead. */
  :root {
    --indent: 0px;
  }

  .stage {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
  }

  /* The names are the only tap targets on the page and at this size the type
     alone is 25px tall. The padding takes each one past 44px and keeps the
     three of them from sharing an edge. It is vertical only, so the first
     letters stay flush. */
  .app {
    padding: 0.6rem 0;
  }

  /* Phones: the app's phone position, top left. */
  .top {
    padding: 8px 16px 0;
  }

  /* The name's own padding already sets it off from its line. */
  .line {
    margin-top: 0;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app,
  .mark,
  .band::before,
  .home,
  .credit {
    transition: none;
  }
}
