/* Both sites' chrome: no header anywhere, one piece of glass at the foot of
   the window, and a home that is a single screen. styles.css still does the
   work inside the pages; this file replaces what surrounds them and sets the
   room they stand in. */

:root {
  /* cream on grey: the set the character was shot on, and the character's
     own colour for anything the eye should land on. No violet here. */
  --sc-bg: #221f28;
  --sc-ink: #f3efe8;
  --sc-cream: #ded2bf;
  --sc-mute: rgba(243, 239, 232, .66);
  --sc-faint: rgba(243, 239, 232, .44);
  --sc-glass: rgba(255, 255, 255, .07);
  --sc-glass-2: rgba(255, 255, 255, .12);
  --sc-line: rgba(255, 255, 255, .13);
  --sc-dock: 78px;
}

/* ── the window ─────────────────────────────────────────────────────────
   The room below is fixed to the viewport, so it ends where the viewport
   does. Pull a page past either of its ends and the browser shows what it
   keeps under every document instead — white paper, because nothing here
   ever gave the root a colour. The root carries the room's ground now, and
   the pull is off besides: there is no end of the page to get behind. */
html {
  background-color: var(--sc-bg);
  color-scheme: dark;
  overscroll-behavior-y: none;
}

/* ── the dock ───────────────────────────────────────────────────────────── */
.has-dock .skip { z-index: 60; }
.has-dock main { padding-bottom: calc(var(--sc-dock) + 26px); }
/* the header used to fill the top of an inner page; without one the page
   starts closer to the edge */
.has-dock .page-head { padding-top: clamp(30px, 4.5vw, 56px); }

.dock {
  position: fixed;
  left: 0; right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}
.dock-glass {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  padding: 7px;
  border-radius: 22px;
  background: rgba(36, 32, 42, .62);
  border: 1px solid var(--sc-line);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow-x: auto;
  scrollbar-width: none;
}
.dock-glass::-webkit-scrollbar { display: none; }
/* on a narrow window the dock runs past its own edge; the fade says so */
.dock-glass { mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
@media (min-width: 1100px) { .dock-glass { mask-image: none; -webkit-mask-image: none; } }

.dock-glass a {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 11px 7px;
  border-radius: 15px;
  color: var(--sc-mute);
  text-decoration: none;
  font: 500 10.5px/1.1 var(--body);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.dock-glass a svg { width: 20px; height: 20px; }
.dock-glass a:hover { background: var(--sc-glass-2); color: var(--sc-ink); }
.dock-glass a[aria-current="page"] { background: var(--sc-glass); color: var(--sc-ink); }
.dock-glass a[aria-current="page"] svg { color: var(--sc-cream); }

.dock-mark { padding: 8px 10px !important; }
.dock-sep { flex: none; width: 1px; height: 26px; margin-inline: 5px; background: var(--sc-line); }

.dock-cta {
  padding: 11px 16px !important;
  border-radius: 14px;
  background: var(--sc-cream);
  color: #23262f !important;
  font: 600 13px/1 var(--body) !important;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .9);
}
.dock-cta:hover { background: #ece2d2; }

@media (max-width: 760px) {
  .dock { bottom: max(8px, env(safe-area-inset-bottom)); padding-inline: 8px; }
  .dock-glass { border-radius: 19px; padding: 6px; }
  .dock-glass a { padding: 7px 9px 6px; font-size: 9.5px; }
  .dock-glass a svg { width: 18px; height: 18px; }
}

/* ── the home: the first screen ─────────────────────────────────────────
   The screen is the first viewport — the agent, the field, two ways on — and
   the page carries on underneath it: what the thing is, the work, where it
   runs, what it costs, the questions. The set the film was shot on therefore
   belongs to the screen, not to the window: it scrolls away with it, and the
   room the other pages wear takes over below. */
body.screen-shell {
  background: var(--sc-bg);
  color: var(--sc-ink);
}

.screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1.1vh, 14px);
  padding: 18px 20px calc(var(--sc-dock) + 30px);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* ── the room ────────────────────────────────────────────────────────────
   The film is not a picture on the page any more: it is the page's first
   screen, edge to edge, because the room around him is the thing worth
   looking at. Nothing is keyed, nothing is blended, nothing is dissolved —
   the only gradient is the one the words stand on, and it starts below him.
   The screen's own content sits at the foot of the room, on the floor. */
.screen-stage {
  position: absolute;
  /* It keeps the right of the screen and the words keep the left. Its width
     is held well under the window's: shown at about 760 CSS pixels a
     1600-wide film is still one video pixel per screen pixel on a retina
     display, which is the whole of what "sharp" means here. */
  top: 50%;
  right: clamp(0px, 3vw, 70px);
  left: auto;
  bottom: auto;
  translate: 0 -50%;
  width: min(860px, 58vw);
  aspect-ratio: 1600 / 902;
  height: auto;
  z-index: -2;
  margin: 0;
}
/* Every border of the film is dissolved over a long run — a sixth of the
   width, a tenth of the height — into nothing, and what shows through is the
   page, which is the colour the room ends in anyway. No edge of the video is
   visible at any size; the two masks are crossed so the hem is a rectangle's,
   not an ellipse's, and the lit walls at the sides survive it. */
.screen-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* he stands high in the frame so the floor he stands on carries the words */
  object-position: 50% 26%;
  mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 11%, #000 72%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 11%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
}

/* ── the pages the room is made of ──────────────────────────────────────
   He is an agent that lives on a website, so the room is built out of one:
   six pages drift around him on their own clocks, each fading in, rising a
   little and going again, so the room never reads as a loop. The named ones
   are the files the agent serves from inside a site. Decoration only — the
   layer is aria-hidden, and it moves nothing but transform and opacity. */
.room-web {
  position: absolute;
  inset: -6% -4%;
  z-index: 1;
  pointer-events: none;
  display: block;
}
.pg {
  --c: rgba(238, 212, 180, .3);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 78px;
  height: 56px;
  margin: -28px 0 0 -39px;
  border: 1px solid var(--c);
  border-radius: 7px;
  /* a bar across the head of the page, three lines of text under it */
  background-image:
    linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c));
  background-repeat: no-repeat;
  background-size: 100% 1px, 56% 2px, 72% 2px, 38% 2px;
  background-position: 0 13px, 9px 25px, 9px 34px, 9px 43px;
  box-shadow: 0 0 22px -6px rgba(238, 212, 180, .22);
  opacity: 0;
  scale: var(--s);
  animation: pg-drift var(--d) ease-in-out var(--t) infinite;
}
.pg[data-f]::after {
  content: attr(data-f);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  font: 500 9.5px/1 var(--mono);
  letter-spacing: .04em;
  color: rgba(238, 212, 180, .44);
  white-space: nowrap;
}
@keyframes pg-drift {
  0% { opacity: 0; translate: 0 18px; }
  14% { opacity: .85; }
  62% { opacity: .85; }
  100% { opacity: 0; translate: 0 -30px; }
}
@media (max-width: 899px) {
  /* a phone's window is narrower than the positions were laid out for, so the
     field they drift in is pulled off both edges rather than moved page by page */
  .room-web { inset: -2% 9%; }
  .pg { width: 58px; height: 42px; margin: -21px 0 0 -29px; background-position: 0 10px, 7px 19px, 7px 26px, 7px 33px; }
  .pg[data-f]::after { font-size: 8.5px; }
}

/* The room is only dimmed where the words are, and the words are kept off
   him: on a wide window they stand in the empty half of the room, on the
   left, and he keeps the middle. The foot of the screen goes to the page's
   own colour because the page carries on there. */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0, transparent 66%, rgba(34, 31, 40, .55) 86%, rgba(34, 31, 40, .92) 100%);
}
/* A phone sees none of the room's width through a full-bleed crop, so there
   the film goes back to being a band across the top — the whole width of the
   window, its foot dissolved into the page — and the words stand under it. */
@media (max-width: 899px) {
  .screen { justify-content: flex-start; padding-top: 0; }
  .screen-stage {
    position: relative;
    inset: auto;
    translate: none;
    width: 100vw;
    aspect-ratio: auto;
    z-index: 0;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    height: clamp(230px, 40vh, 400px);
    margin-bottom: clamp(2px, .8vh, 12px);
  }
  .screen-stage video {
    object-position: 50% 14%;
    mask-image: linear-gradient(to bottom, #000 64%, transparent 99%);
    -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 99%);
  }
  .screen::before { background: none; }
}
@media (min-width: 900px) {
  .screen { align-items: flex-start; justify-content: center; text-align: left; padding: 18px clamp(28px, 5vw, 80px) calc(var(--sc-dock) + 30px); }
  .screen h1 { justify-items: start; }
  .screen h1 span { max-width: 25ch; }
  .screen .screen-also { max-width: 36ch; }
  .screen .screen-ask { width: min(400px, 46%); margin-right: auto; }
  .screen h1 .fig { font-size: clamp(64px, 9.4vw, 124px); }
  .screen::before {
    background:
      linear-gradient(to bottom, transparent 0, transparent 74%, rgba(34, 31, 40, .5) 90%, rgba(34, 31, 40, .9) 100%),
      linear-gradient(96deg, rgba(26, 23, 31, .88) 0, rgba(26, 23, 31, .66) 26%, transparent 46%);
  }
}

.screen-state {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(34, 31, 40, .42);
  border: 1px solid var(--sc-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 500 12.5px/1 var(--body);
  letter-spacing: .04em;
  color: var(--sc-mute);
}
.screen-state i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sc-cream);
  box-shadow: 0 0 0 3px rgba(222, 210, 191, .18);
  animation: sc-pulse 2.8s ease-in-out infinite;
}
@keyframes sc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.screen h1 {
  margin: 0;
  font: 700 clamp(28px, 4.6vw, 52px)/1.04 var(--display);
  letter-spacing: -.035em;
  color: var(--sc-ink);
}

/* The figure is the loudest thing on the screen after the character: white
   where everything else is cream, and three times the size of the line that
   says what it counts. Where it was read is one chip away, not on the screen
   — a first screen that talks about a customer's data reads as a leak. */
.screen h1 { display: grid; justify-items: center; gap: clamp(2px, .5vh, 7px); }
.screen h1 .fig {
  font: 800 clamp(58px, 8.6vw, 108px)/.88 var(--display);
  letter-spacing: -.045em;
  color: #fff;
  /* the digits swap while it climbs; without this the line jumps */
  font-variant-numeric: tabular-nums;
  /* It comes out of the light he stands in, climbs to what it is (site.js),
     and then only breathes. The delay keeps the figure invisible until the
     script has set its first value, so nobody sees the end before the start. */
  animation: fig-in .8s cubic-bezier(.2, .7, .2, 1) .25s both, fig-glow 5.5s ease-in-out 1.2s infinite;
}
@keyframes fig-in {
  from { opacity: 0; transform: translateY(16px) scale(.94); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes fig-glow {
  0%, 100% { text-shadow: 0 0 58px rgba(255, 255, 255, .13); }
  50% { text-shadow: 0 0 94px rgba(255, 255, 255, .26); }
}
.screen h1 span {
  font: 700 clamp(18px, 2.2vw, 27px)/1.2 var(--display);
  letter-spacing: -.015em;
  color: var(--sc-cream);
  max-width: 30ch;
  animation: screen-rise .6s ease-out .8s both;
}
/* the other half of the work: Google is the figure, this is the engines */
.screen-also {
  margin: 0;
  max-width: 70ch;
  font: 400 clamp(13.5px, 1.3vw, 15px)/1.5 var(--body);
  color: var(--sc-mute);
  animation: screen-rise .6s ease-out .95s both;
}
@keyframes screen-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.screen-case {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(222, 210, 191, .28);
  background: rgba(34, 31, 40, .44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 500 13px/1 var(--body);
  color: var(--sc-cream);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.screen-case { animation: screen-rise .6s ease-out 1.1s both; }
.screen-case:hover { background: var(--sc-glass-2); border-color: rgba(222, 210, 191, .7); }

.screen-ask {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(560px, 100%);
  margin-top: clamp(6px, 1.2vh, 14px);
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: rgba(34, 31, 40, .44);
  border: 1px solid var(--sc-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 44px -28px rgba(0, 0, 0, .9);
  transition: border-color .2s ease, background .2s ease;
}
.screen-ask:focus-within { border-color: rgba(222, 210, 191, .6); background: rgba(255, 255, 255, .12); }
.screen-ask input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--sc-ink);
  font: 400 16px/1.2 var(--body);
}
.screen-ask input::placeholder { color: var(--sc-faint); }
.screen-ask input:focus { outline: none; }
/* the button is the agent himself: he watches the pointer and turns once when
   you send. The face is lit from inside the clip, so it sits on the screen's
   own dark ground with a cream ring rather than on a cream fill, where the
   helmet would melt into the button. */
.screen-ask button {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid rgba(222, 210, 191, .5);
  border-radius: 50%;
  background: #15171f;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.screen-ask button img {
  width: 116%;
  height: auto;
  display: block;
  transform: translate(var(--look-x, 0px), var(--look-y, 0px));
  transition: transform .5s cubic-bezier(.22, .9, .3, 1);
  will-change: transform;
}
.screen-ask button:hover { border-color: var(--sc-cream); box-shadow: 0 0 0 4px rgba(222, 210, 191, .1); }
.screen-ask button:active { transform: scale(.94); }
.screen-ask button.is-sent img {
  transform: rotate(360deg);
  transition: transform .8s cubic-bezier(.3, .8, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .screen-ask button img, .screen-ask button.is-sent img { transition: none; transform: none; }
}

.screen-note { margin: 0; font: 400 12.5px/1.5 var(--body); color: var(--sc-faint); }


@media (prefers-reduced-motion: reduce) { .screen-state i { animation: none; } }

/* ── the inner pages ─────────────────────────────────────────────────────
   The site is one world, so the pages behind the dock wear the screen's room
   rather than the white paper styles.css sets. Almost everything follows
   from the tokens; what is listed after them is the handful of surfaces
   styles.css paints white by hand. */
body.has-dock {
  --bg: #221f28; --bg-2: #2a2632;
  --glass: rgba(255, 255, 255, .045); --glass-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .17);
  --ink: #f3efe8; --ink-2: #cdc7bd; --mute: #a09a91; --faint: #716c64;
  --accent: #ded2bf; --accent-2: #ece2d2; --accent-soft: rgba(222, 210, 191, .09);
  --accent-ink: #ece2d2;
  --glow: 0 0 0 1px rgba(255, 255, 255, .05), 0 30px 80px -40px rgba(0, 0, 0, .9);
  --on: #9fcfae; --on-soft: rgba(159, 207, 174, .14);
  --yours: #d9b48a; --yours-soft: rgba(217, 180, 138, .14);
  --dark: #1a1821; --dark-2: #201d28; --dark-ink: #f3efe8; --dark-mute: #a09a91;
  --paper: var(--bg); --paper-2: var(--bg-2);
  color-scheme: dark;
  background: var(--bg);
}

/* surfaces styles.css paints white outright */
body.has-dock .lead,
body.has-dock .frame,
body.has-dock .plan,
body.has-dock .mock,
body.has-dock .oc,
body.has-dock .swap { background: var(--glass); }
body.has-dock .oc-arw { background: var(--accent); color: #23262f; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .9); }
body.has-dock .plan-card.rec { background: linear-gradient(180deg, rgba(222, 210, 191, .09), var(--glass)); }
body.has-dock .oc-do { background: linear-gradient(170deg, var(--accent-soft), rgba(255, 255, 255, .015)); }
body.has-dock .steps3 b { background: linear-gradient(180deg, #ece2d2, #a09a91); }
body.has-dock pre { background: #171520; }
body.has-dock code { color: var(--accent-2); }

/* a section that was "the dark band" on paper has to step the other way here */
body.has-dock .ink { background: #1a1821; }
body.has-dock .band { background: #2a2632; }
/* ── the foot of every page ──────────────────────────────────────────────
   He opened the site standing in his room; he closes it in the same room,
   waving you in, with his open hand pointing at the field you type into.
   The still is cut from the same set as the film, so the two ends of the
   page are one place. */
body.has-dock .cta-final {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* tall enough that the crop never cuts his feet: the still is scaled by
     the section's WIDTH, so the height that holds him follows the width */
  min-height: clamp(380px, 45vw, 700px);
  padding-block: clamp(40px, 5vw, 76px);
  /* no ground of its own: a flat patch here would draw the very edge the
     masked still is at pains to hide. The page's room shows through. */
  background: none;
}
body.has-dock .cta-room {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  pointer-events: none;
  mask-image:
    linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 13%, #000 80%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 13%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
}
/* the room is dimmed only where the words are, and at the two joins */
body.has-dock .cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 0, transparent 68%, rgba(34, 31, 40, .5) 90%, rgba(34, 31, 40, .78) 100%),
    linear-gradient(264deg, rgba(26, 23, 31, .92) 0, rgba(26, 23, 31, .78) 28%, transparent 64%);
}
body.has-dock .cta-final .wrap { position: relative; z-index: 2; }
/* the field stands on the bright floor, so it brings its own dark glass */
body.has-dock .cta-final .lead {
  background: rgba(24, 21, 29, .66);
  border-color: rgba(255, 255, 255, .17);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.has-dock .cta-final .lead input { background: transparent; }
body.has-dock .cta-final .lead-note { color: rgba(243, 239, 232, .66); }

@media (min-width: 900px) {
  body.has-dock .cta-final .cta-copy { width: min(500px, 43%); margin-left: auto; text-align: left; }
  body.has-dock .cta-final .cta-copy p { margin-inline: 0; }
  body.has-dock .cta-final .cta-copy .lead,
  body.has-dock .cta-final .cta-copy .lead-wrap { margin-inline: 0; }
  /* the column is narrower than the window, so the field stacks there the way
     it stacks on a phone — two lines and a button that spans them */
  body.has-dock .cta-final .cta-copy .lead { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 10px; gap: 4px; }
  body.has-dock .cta-final .cta-copy .lead-sep { width: auto; height: 1px; }
  body.has-dock .cta-final .cta-copy .lead .btn { width: 100%; justify-content: center; margin-top: 4px; }
}
/* a phone crops the room away, so there the still is a band above the words */
@media (max-width: 899px) {
  body.has-dock .cta-final { display: block; min-height: 0; padding-top: 0; }
  body.has-dock .cta-room {
    position: relative;
    inset: auto;
    translate: none;
    height: clamp(190px, 30vh, 300px);
    margin-bottom: clamp(18px, 3vw, 28px);
    object-position: 50% 14%;
    mask-image: linear-gradient(to bottom, #000 60%, transparent 99%);
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 99%);
  }
  body.has-dock .cta-final::after { background: none; }
}

/* The clover sits on every surface of both sites, at the size the place
   wants. The version in the URL is manual: /assets is cached immutable, so
   bump it when the file changes (styles.css holds the rule itself). */
.dock-mark .mark { width: 30px; height: 17px; }

/* ── the mascot ─────────────────────────────────────────────────────────
   He waves you in at the end of every page, and thinks beside the questions.
   build/cutout.py lifts him off his set, the studio's mirror image included,
   so the page owes him a ground: a step of floor under his soles and the
   shadow where he touches it. */
.stand { position: relative; display: inline-block; isolation: isolate; line-height: 0; }
.stand > img { display: block; width: auto; height: 100%; }
.stand-refl {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  z-index: -2;
  /* mirrored about his soles, so the copy starts exactly where he ends */
  transform: scaleY(-1);
  transform-origin: bottom;
  opacity: .32;
  filter: blur(1.5px);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 78%, rgba(0, 0, 0, .55) 92%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 78%, rgba(0, 0, 0, .55) 92%, #000 100%);
}
.stand::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 1px;
  translate: -50% 0;
  width: 62%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, .32) 54%, transparent 100%);
  filter: blur(3px);
}
body.has-dock .faq-sect { position: relative; }
body.has-dock .faq-agent { display: none; }
@media (min-width: 1040px) {
  body.has-dock .faq-sect .faq-list { max-width: calc(100% - 250px); }
  body.has-dock .faq-agent {
    display: block;
    position: absolute;
    right: 0;
    bottom: 34px;
    width: auto;
    height: 300px;
    pointer-events: none;
  }
}

/* the two places violet is written into styles.css rather than taken from a
   token: the gradient on an accented headline, and the primary button */
body.has-dock .ac,
body.has-dock .g {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--accent-2);
}
body.has-dock .btn {
  background: var(--accent);
  color: #23262f;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .9);
}
body.has-dock .btn:hover { background: var(--accent-2); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 1); }
body.has-dock .btn-s .arrow { background: rgba(35, 38, 47, .18); }
body.has-dock .btn-ghost { background: var(--glass); color: var(--ink); }
body.has-dock .btn-ghost:hover { background: var(--glass-2); }
body.has-dock .bento .oc-get { background: var(--glass-2); }

/* ── the room behind the pages ──────────────────────────────────────────
   The character stands in a lit room; a page painted flat in the same colour
   reads as a different, emptier place. Every page therefore wears the same
   wall: the light that falls from above him, the wall's seams on the same
   116px rhythm, the ground going dark toward the floor, and the film's grain
   over all of it. Everything is fixed, so a long page scrolls through the
   room instead of dragging it along. */
body.has-dock {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(118% 58% at 50% -14%, rgba(236, 222, 200, .11), transparent 72%),
    radial-gradient(90% 52% at 50% 108%, rgba(0, 0, 0, .55), transparent 70%),
    linear-gradient(180deg, #272330 0, var(--bg) 42%, #1b1922 100%);
  background-attachment: fixed;
}
/* the seams: brightest where the light lands, gone before the edges */
body.has-dock::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 116px),
    /* the light itself, breathing the way it does on the home */
    radial-gradient(42% 34% at 50% 8%, rgba(236, 222, 200, .07), transparent 70%);
  mask-image: radial-gradient(130% 92% at 50% -6%, #000 26%, rgba(0, 0, 0, .5) 60%, transparent 88%);
  -webkit-mask-image: radial-gradient(130% 92% at 50% -6%, #000 26%, rgba(0, 0, 0, .5) 60%, transparent 88%);
  animation: room-breathe 24s ease-in-out infinite;
}
@keyframes room-breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
/* the same grain the film is shot through */
body.has-dock::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the bands and the footer used to be opaque slabs; they now let the room
   through and only change how much light is on it */
body.has-dock .band { background: rgba(255, 255, 255, .035); }
body.has-dock .foot { background: rgba(0, 0, 0, .2); }

/* ── the case ───────────────────────────────────────────────────────────
   One customer's own Search Console, drawn rather than described: a day's
   impressions before the agent and after it, the two figures that moved,
   and the work that moved them. The bars are per DAY, because a month and
   eighteen days are not the same bar — and the honest line under them is
   part of the component, not an afterthought. */
.case-chart { margin: clamp(28px, 4vw, 44px) 0 0; }
.case-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 40px);
  align-items: end;
  height: 260px;
  padding: 0 clamp(4px, 2vw, 28px);
}
.case-bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; gap: 10px; }
.case-bar b { font: 700 clamp(20px, 2.4vw, 30px)/1 var(--display); letter-spacing: -.02em; color: var(--ink-2); }
.case-bar i {
  display: block;
  height: var(--h);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
  border-bottom: 0;
}
/* the bars grow as they come into view, where the browser can tie an
   animation to the scroll; where it cannot, they are simply there. Reduced
   motion switches every animation off site-wide, which lands here as the
   final height too. */
@keyframes case-grow { from { height: 0; } to { height: var(--h); } }
@supports (animation-timeline: view()) {
  .case-bar i { animation: case-grow linear both; animation-timeline: view(); animation-range: entry 15% cover 40%; }
}
.case-bar.is-after b { color: var(--accent-2); }
.case-bar.is-after i { background: linear-gradient(180deg, #ece2d2, rgba(222, 210, 191, .35)); border-color: transparent; box-shadow: 0 -18px 50px -24px rgba(236, 226, 210, .8); }
.case-bar span { display: block; padding-top: 12px; border-top: 1px solid var(--line); font: 500 13px/1.3 var(--body); color: var(--ink-2); }
.case-bar small { display: block; color: var(--mute); font-size: 12px; margin-top: 3px; }
.case-chart figcaption { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--mute); }

.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.case-stat { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.case-stat b { display: block; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.case-stat .from { display: block; font: 500 14px/1 var(--mono); color: var(--mute); margin-bottom: 8px; }
.case-stat small { display: block; margin-top: 8px; font-size: 14px; color: var(--mute); }

.case-did { margin-top: clamp(28px, 4vw, 44px); }
.case-did h3 { margin-bottom: 14px; }
.case-did ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.case-did li { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font-size: 14px; color: var(--ink-2); }
.case-note { margin-top: 22px; font-size: 14.5px; color: var(--mute); max-width: 72ch; }
@media (max-width: 720px) {
  .case-bars { height: 200px; gap: 10px; }
  .case-stats { grid-template-columns: 1fr; }
}

/* ── moving between pages ────────────────────────────────────────────────
   Cross-document view transitions: the browser takes a picture of the page
   you are leaving and of the one arriving, and crossfades between them, so
   a click reads as the room changing rather than the window blanking. It is
   opt-in on both documents — screen.css loads on every page of both sites.
   Browsers without it simply navigate, which is what they do today. */
@view-transition { navigation: auto; }

/* Both pages stand in the same room, so a plain crossfade reads as a flicker:
   the only thing that actually changes is the copy. The outgoing page is
   therefore pulled out quickly and blurred, and the new one is given enough
   travel and enough time to be seen arriving. */
::view-transition-old(root) {
  animation: vt-leave .2s cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-enter .58s cubic-bezier(.16, .84, .3, 1) both;
}
@keyframes vt-leave {
  to { opacity: 0; transform: translateY(-18px) scale(.985); filter: blur(7px); }
}
@keyframes vt-enter {
  from { opacity: 0; transform: translateY(30px) scale(.99); filter: blur(5px); }
  60% { opacity: 1; }
  to { filter: blur(0); }
}

/* The dock belongs to the window, not to the page. Naming it keeps it out of
   the page's own animation, but the browser still crossfades the two copies
   by default — and the dock is semi-transparent glass, so two of it stacked
   with `plus-lighter` flash brighter for a quarter of a second. Holding both
   halves still is what actually makes it sit there. */
.dock { view-transition-name: dock; }
::view-transition-group(dock) { animation: none; }
::view-transition-old(dock),
::view-transition-new(dock) { animation: none; mix-blend-mode: normal; }
::view-transition-old(dock) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
