/* Meet Fooji (/meet). The fooji.life colours and logo (cream, charcoal, a little terracotta) on textured paper.
   Fooji speaks in Instrument Serif; labels, buttons and status lines are DM Mono; the notebook body is Inter.
   The conversation is a thread you can scroll: the middle of the screen is in full ink, the rest fades. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --cream: #f4f1ea;
  --p2: #f8f5ef;
  --ink: #1c1b19;
  --mute: #69675f;
  --warm: #6f6454;
  --ln: #d8d2c8;
  --ln2: #b8afa2;
  --accent: #B5552B;
  --rule: rgba(28, 27, 25, .16);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* the paper: fibre and grain, tinted warm so they sit in the cream */
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.013' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.44 0 0 0 0 0.37 0 0 0 0 0.27 0.42 0 0 0 -0.13'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.38 0 0 0 0 0.31 0 0 0 0 0.22 0.8 0 0 0 -0.33'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --nb: 348px;
  --pad: clamp(20px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background-color: var(--cream); background-image: var(--grain), var(--fibre); background-attachment: fixed;
  color: var(--ink); font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
[hidden] { display: none !important; }

/* the flow ribbons: one quiet band across the top of the page, dissolving into the paper before the words begin */
#entity { position: fixed; top: 0; left: 0; width: 100%; height: 40vh; height: 40dvh; min-height: 220px; max-height: 400px; display: block; pointer-events: none; z-index: 0; }
.grain { position: fixed; inset: 0; background-image: var(--grain); mix-blend-mode: multiply; opacity: .3; pointer-events: none; z-index: 30; }

/* ---------- top bar */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 20px; padding: max(18px, env(safe-area-inset-top)) var(--pad) 0; }
.mark { display: inline-flex; align-items: center; gap: 12px; font: 600 26px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.mark svg { width: 44px; height: 34px; display: block; }
.status { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--warm); }
.status i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.explore, .nb-toggle { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.explore { margin-left: auto; text-decoration: none; white-space: nowrap; color: var(--ink); padding: 8px 13px 7px; border: 1px solid var(--ink); border-radius: 999px; background: rgba(244, 241, 234, .72); transition: color .2s, background-color .2s, border-color .2s; } /* [home-link] an obvious way back to the website */
.explore:hover, .explore:focus-visible { color: #fff; background: var(--ink); border-color: var(--ink); }
.nb-toggle { margin-left: auto; background: none; border: 0; padding: 0 0 3px; border-bottom: 1px solid var(--rule); cursor: pointer; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the thread. The page itself scrolls; the space above and below lets any line reach the middle. */
.stage { position: relative; z-index: 10; width: 100%; max-width: 860px; margin: 0 auto; padding: 44vh var(--pad) 46vh; padding-top: 44dvh; padding-bottom: 46dvh; }
.msg { margin: 0 0 clamp(38px, 7vh, 76px); transition: opacity .28s linear; }
.msg:last-child { margin-bottom: 0; }
.tag { margin: 0 0 12px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.tag b { font-weight: 500; color: var(--ink); }
.line { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
.line.xl { font-size: clamp(44px, 7.2vw, 96px); line-height: .98; letter-spacing: -.028em; }
.line.lg { font-size: clamp(31px, 4.5vw, 58px); line-height: 1.06; }
.line.md { font-size: clamp(23px, 2.9vw, 36px); line-height: 1.18; letter-spacing: -.012em; }
.sub { margin: 12px 0 0; max-width: 56ch; font: 400 17px/1.55 var(--sans); color: var(--mute); animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
/* what the visitor said, kept in the thread */
.msg.me { animation: rise .5s cubic-bezier(.2, .7, .2, 1); padding-left: 16px; border-left: 1px solid var(--accent); }
.msg.me .tag { margin-bottom: 6px; color: var(--accent); }
.msg.me .said { margin: 0; font: 400 clamp(17px, 1.7vw, 20px)/1.45 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.w { display: inline-block; opacity: 0; will-change: opacity, filter; padding: .08em .04em .24em; margin: -.08em -.04em -.24em; } /* [glyph-room] blurred words are painted in their own box: give descenders (g, y) and italic overhang room, without moving the layout */
.w.em { font-style: italic; letter-spacing: -.03em; padding-right: .12em; margin-right: -.08em; color: var(--accent); }
/* wet ink: each word lands soft, then dries sharp */
.w.on { animation: ink .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ink {
  0% { opacity: 0; filter: blur(8px); text-shadow: 0 0 18px rgba(28, 27, 25, .55); }
  35% { opacity: .92; filter: blur(2.2px); text-shadow: 0 0 10px rgba(28, 27, 25, .4); }
  100% { opacity: 1; filter: blur(0); text-shadow: 0 0 0 rgba(28, 27, 25, 0); }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- thinking: three threads of ink drawing themselves where the next line will land, one of them terracotta */
.thinking { margin-top: clamp(26px, 5vh, 52px); height: 30px; animation: fadein .5s ease both; }
.thinking svg { display: block; width: 150px; height: 30px; overflow: visible; }
.thinking path { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 46 150; animation: thread 1.9s linear infinite; opacity: .75; }
.thinking path:nth-child(2) { stroke: var(--accent); stroke-width: 1.5; animation-duration: 1.5s; animation-delay: -.5s; opacity: .9; }
.thinking path:nth-child(3) { stroke-width: .9; animation-duration: 2.4s; animation-delay: -1.1s; opacity: .45; }
@keyframes thread { from { stroke-dashoffset: 196; } to { stroke-dashoffset: 0; } }
.rm .thinking path { animation: none; stroke-dasharray: none; }

/* ---------- replying: hairline buttons that fill with ink, and a single ruled line to write on */
.reply { margin-top: clamp(26px, 5vh, 52px); animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chips:empty { display: none; }
.chip, #go {
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: transparent; border: 1px solid rgba(28, 27, 25, .38); border-radius: 0;
  padding: 13px 15px; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; -webkit-tap-highlight-color: transparent;
}
.chip:hover, .chip:focus-visible, #go:hover, #go:focus-visible { background: var(--ink); color: var(--cream); border-color: var(--ink); outline: none; }
.chip:active { transform: translateY(1px); }
.chip.picked { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip.quiet { border-style: dashed; color: var(--mute); }
.chip:disabled { opacity: .35; cursor: default; pointer-events: none; }
/* the one loud colour, for the step we would like them to take */
.chip.cta { border-color: var(--accent); color: var(--accent); }
.chip.cta:hover, .chip.cta:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.ask { display: flex; align-items: flex-end; gap: 12px; max-width: 520px; }
.ask.off { display: none; }
#in {
  flex: 1; min-width: 0; font: 400 20px/1.3 var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0 9px; outline: none; caret-color: var(--accent); -webkit-appearance: none; appearance: none;
}
#in::placeholder { font: 400 11px/2.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); opacity: .9; }
#in:focus { box-shadow: 0 1px 0 var(--ink); }
#go { opacity: 0; pointer-events: none; transform: translateX(-6px); transition: opacity .2s, transform .2s, background-color .18s, color .18s; }
.ask.has #go { opacity: 1; pointer-events: auto; transform: none; }
.hint { min-height: 1.4em; margin: 12px 0 0; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* ---------- notebook */
.notebook {
  position: fixed; z-index: 15; top: 0; right: 0; bottom: 0; width: var(--nb); overflow-y: auto; overscroll-behavior: contain;
  padding: 84px 24px 28px; background-color: var(--p2); background-image: var(--grain); border-left: 1px solid var(--ln);
  box-shadow: -28px 0 44px -36px rgba(28, 27, 25, .4);
  font: 400 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
  transform: translateX(102%); transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.notebook.open { transform: none; }
.nb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); color: var(--ink); font-weight: 500; letter-spacing: .14em; }
.nb-close { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--mute); background: none; border: 0; padding: 0; cursor: pointer; }
.nb-close:hover { color: var(--ink); }
.nb-meta { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 20px; font-variant-numeric: tabular-nums; }
.nb-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-steps { list-style: none; margin: 0; padding: 0; }
.nb-steps > li { display: grid; grid-template-columns: 26px 1fr auto; column-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--rule); opacity: .45; transition: opacity .4s; }
.nb-steps > li.run, .nb-steps > li.done { opacity: 1; }
.nb-steps .lab { color: var(--ink); font-weight: 500; }
.nb-steps > li.run .st { color: var(--accent); }
.nb-steps > li.run .st::after { content: ""; display: inline-block; width: 7px; height: 11px; margin-left: 6px; vertical-align: -1px; background: var(--accent); animation: blink .9s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.nb-steps .notes { grid-column: 2 / -1; list-style: none; margin: 0; padding: 0; }
.nb-steps .notes li { padding: 3px 0 0; letter-spacing: .08em; overflow-wrap: anywhere; animation: fadein .5s ease both; }
.nb-steps .notes li::before { content: "\2014\00a0"; opacity: .5; }
.nb-find { margin-top: 26px; animation: fadein .9s ease both; }
.nb-find h2 { margin: 22px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: inherit; font-weight: 500; letter-spacing: .14em; color: var(--ink); }
.nb-find .areas { list-style: none; margin: 0 0 4px; padding: 0; }
.nb-find .areas li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; letter-spacing: .06em; }
.nb-find .areas li span { color: var(--ink); }
.nb-find .areas b { font-weight: 500; white-space: nowrap; }
.nb-find .areas .sM b { color: var(--accent); }
.nb-find .areas .sR b { color: var(--ink); }
.nb-find .areas .sU b { opacity: .6; }
.nb-find p { margin: 0 0 12px; font: 400 13.5px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--mute); display: grid; grid-template-columns: 26px 1fr; }
.nb-find p > span:first-child:not(.idea):not(.how) { font: 400 11px/1.9 var(--mono); letter-spacing: .1em; color: var(--warm); }
.nb-find p .body b { font-weight: 500; color: var(--ink); }
.nb-find p.wide { display: block; }
.nb-find .idea { display: block; font: 400 24px/1.1 var(--display); letter-spacing: -.01em; color: var(--ink); margin-bottom: 8px; }
.nb-find .how { display: block; }

.foot { position: fixed; z-index: 12; left: var(--pad); bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; font: 400 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); opacity: .85; }
.foot span { opacity: .5; margin: 0 6px; }
/* a very quiet reset in the corner: forgets this conversation and starts again */
#wipe { position: fixed; z-index: 40; right: 6px; bottom: 6px; width: 16px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .28; transition: opacity .2s; }
#wipe::before { content: ""; display: block; width: 4px; height: 4px; margin: 6px; border-radius: 50%; background: var(--ink); }
#wipe:hover, #wipe:focus-visible { opacity: .9; }
.foot a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#in:focus-visible { outline: none; }

/* notebook beside the conversation on wide screens */
@media (min-width: 1000px) {
  body.nb .stage { max-width: calc(860px + var(--nb)); padding-right: calc(var(--nb) + var(--pad)); }
  body.nb .top { right: var(--nb); }
  .nb-toggle { display: none !important; }
  .nb-close { display: none; }
}
/* and as a sheet from the bottom on small ones */
@media (max-width: 999px) {
  .notebook { top: auto; left: 0; width: auto; max-height: 56vh; max-height: 56dvh; padding: 18px var(--pad) max(22px, env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--ink); box-shadow: 0 -24px 40px -30px rgba(28, 27, 25, .5); transform: translateY(104%); }
  .status { display: none; }
  .nb-toggle:not([hidden]) + .explore { margin-left: 0; }
  .stage { padding-top: 40vh; padding-top: 40dvh; }
}
@media (max-width: 560px) {
  .mark { font-size: 21px; gap: 9px; }
  .mark svg { width: 36px; height: 28px; }
  .chip { padding: 12px 12px; letter-spacing: .1em; }
  .foot { display: none; }
  .top { gap: 12px; }
  .explore { font-size: 10px; padding: 7px 10px 6px; }
}

/* reduced motion (the script sets html.rm from the visitor's system setting): whole lines fade in, nothing moves */
.rm .w, .rm .w.on { opacity: 1; animation: none; }
.rm .msg.f .line { animation: fadein .5s ease both; }
.rm .reply, .rm .sub, .rm .msg.me, .rm .nb-find, .rm .nb-steps .notes li { animation: none; }
.rm .notebook { transition: none; }
.rm .status i, .rm .nb-steps > li.run .st::after { animation: none; }

/* ---------- the start: one tap begins the journey, with Fooji's voice */
.gate { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 42vh var(--pad) 0; padding-top: 42dvh; transition: opacity .45s ease; }
.gate.out { opacity: 0; pointer-events: none; }
.gate-go { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 0; padding: 18px 26px; cursor: pointer; transition: background-color .18s ease, color .18s ease; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.gate-go:hover, .gate-go:focus-visible { background: var(--accent); color: #fff; outline: none; }
.gate-quiet { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 0 0 3px; cursor: pointer; animation: rise .7s .15s cubic-bezier(.2, .7, .2, 1) both; }
.gate-quiet:hover, .gate-quiet:focus-visible { color: var(--ink); border-color: var(--ink); outline: none; }
.gate-note { margin: 6px 0 0; font: 400 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); opacity: .75; animation: fadein .9s .3s ease both; }
.rm .gate-go, .rm .gate-quiet, .rm .gate-note { animation: none; }
/* Talk: hands-free listening, beside Sound. A small dot breathes while the mic is on, and fills while you are talking */
/* [dock 13 Nov 2026] Talk and Sound: two round buttons floating at the bottom once the chat starts.
   Off: paper with an ink ring and a slash. On: filled accent. While you are talking, a soft ring breathes out of Talk. */
.dock { position: fixed; z-index: 14; left: 50%; bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); display: flex; gap: 14px; transform: translate(-50%, 16px); opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.dock.in { opacity: 1; transform: translate(-50%, 0); }
.orb { position: relative; width: 52px; height: 52px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background-color: var(--p2); background-image: var(--grain); border: 1px solid var(--ln2); box-shadow: 0 10px 24px -14px rgba(28, 27, 25, .55), 0 1px 0 rgba(255, 255, 255, .6) inset;
  transition: background-color .25s, border-color .25s, color .25s, transform .15s; -webkit-tap-highlight-color: transparent; }
.orb:hover { border-color: var(--ink); transform: translateY(-1px); }
.orb:active { transform: scale(.94); }
.orb:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.orb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.orb .x { stroke-width: 1.8; transition: opacity .2s; }
.orb .w { opacity: 0; transition: opacity .2s; }
.orb[aria-pressed="true"] { background-color: var(--accent); background-image: none; border-color: var(--accent); color: #fff; }
.orb[aria-pressed="true"] .x { opacity: 0; }
.orb[aria-pressed="true"] .w { opacity: 1; }
.talk[aria-pressed="true"]::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: orbpulse 2.6s ease-out infinite; pointer-events: none; }
.talk.live::after { animation-duration: .9s; border-width: 2px; }
@keyframes orbpulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
@media (min-width: 1000px) { body.nb .dock { left: calc((100% - var(--nb)) / 2); } }
@media (max-width: 999px) { .notebook.open ~ .dock { opacity: 0; pointer-events: none; } }
.rm .dock, .rm .orb { transition: none; }
.rm .talk::after { animation: none !important; }

/* cookie banner: below the header, not over Talk or the reply box; cream and charcoal, not the old green */
.fc-consent {
  left: 16px;
  bottom: auto;
  top: 72px;
  max-width: 360px;
  background: #1c1b19;
  color: #f4f1ea;
  border: 1px solid rgba(244, 241, 234, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: inherit;
}
.fc-consent a { color: #B5552B; }
.fc-consent button {
  border-color: #f4f1ea;
  color: #f4f1ea;
  background: transparent;
  font-family: inherit;
}
.fc-consent button:hover,
.fc-consent button:focus-visible {
  background: #B5552B;
  border-color: #B5552B;
  color: #f4f1ea;
}
.foot .cookie-settings { margin-left: 10px; color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 600px) {
  .fc-consent { left: 10px; right: 10px; bottom: auto; top: 60px; max-width: none; }
}
