/* ==========================================================================
   What every public page carries (templates/partials/site_controls.html):

   1. Sheets: panels raised from the bottom (the chapters' stories, the agent,
      "Start a project" and its two forms). One behaviour for all of them:
      static/js/sheets.js. Without a script they open as page targets (:target).
   2. The dock: TALK | BOOK, a small piece of glass in a corner of the screen.
   3. The agent's panel: a floating card on a large screen, a sheet on a phone.
   4. "Start a project" and its two ways: "Book a call", "Send my application".
   5. Buttons shared by the sections and the forms.
   6. The cookie panel.

   Loaded before the page's own styles, which may refine these.
   ========================================================================== */

:root {
  --ink-cool: #0e1114;            /* words on the white world */
  --muted-cool: #646a72;          /* second voice */
  --line-cool: rgb(14 17 20 / 0.09);   /* hairlines (also in sections.css: the sheets are on every public page) */
  --white: #fdfdfc;               /* the wall, and every sheet */
  --focus: #5a4fd8;               /* the keyboard's ring: the violet of the light */
  --sheet-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 0 0 1px rgb(255 255 255 / 0.45), inset 0 -1px 0 rgb(14 17 20 / 0.05);
}


/* 1. Sheets ---------------------------------------------------------------- */
/* While a sheet is open, the page behind rests: its light stops drifting. */
html.has-sheet .beam { animation-play-state: paused; }
.sheet {
  --gap: max(5.5svh, calc(env(safe-area-inset-top) + 1.4rem));   /* the page stays visible above */
  /* With a phone's keyboard open, the sheet keeps to the part of the screen that is still visible
     (sheets.js sets these two from window.visualViewport). */
  position: fixed; left: 0; right: 0; top: var(--viewport-top, 0px); height: var(--viewport-height, 100%);
  z-index: 100; visibility: hidden; pointer-events: none;
}
.sheet.is-open,
.no-js .sheet:target { visibility: visible; pointer-events: auto; }
.sheet.has-keyboard { --gap: max(0.5rem, env(safe-area-inset-top)); }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgb(14 17 20 / 0.2); opacity: 0;
  transition: opacity 0.55s ease; -webkit-tap-highlight-color: transparent;
}
.sheet.is-open .sheet__backdrop,
.no-js .sheet:target .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: var(--gap);
  border-radius: 26px 26px 0 0; background: var(--white); color: var(--ink-cool);
  box-shadow: 0 -1px 0 rgb(255 255 255 / 0.9) inset, 0 -24px 70px -10px rgb(14 17 20 / 0.18), 0 -2px 10px rgb(14 17 20 / 0.05);
  transform: translateY(calc(100% + 40px)); transition: transform 0.7s var(--sheet-ease);
  overflow: hidden; will-change: transform;
}
.sheet.is-open .sheet__panel,
.no-js .sheet:target .sheet__panel { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging .sheet__panel { transition: none; }
.sheet.is-closing .sheet__panel { transition: transform 0.5s cubic-bezier(0.55, 0, 0.75, 0.3); }
.sheet__handle {
  position: absolute; top: 0; left: 50%; z-index: 3; transform: translateX(-50%);
  display: grid; place-items: center; width: 7rem; height: 2.2rem; cursor: grab; touch-action: none;
}
.sheet__handle::before { content: ""; width: 2.6rem; height: 4px; border-radius: 2px; background: rgb(14 17 20 / 0.2); transition: background 0.3s, width 0.4s var(--ease-out); }
.sheet__handle:hover::before, .sheet__handle:focus-visible::before { background: rgb(14 17 20 / 0.42); width: 3.2rem; }
.sheet__handle:focus-visible { outline: none; }
.sheet__scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: clamp(4.5rem, 10svh, 7rem) var(--gutter) calc(8rem + env(safe-area-inset-bottom)); outline: none;
  scrollbar-width: thin; scrollbar-color: rgb(14 17 20 / 0.2) transparent;
}
.sheet__scroll > * { max-width: 1180px; margin-inline: auto; }

@media (max-width: 700px) {
  .sheet { --gap: max(7svh, calc(env(safe-area-inset-top) + 1.2rem)); }
  .sheet__panel { border-radius: 20px 20px 0 0; }
}


/* 2. The dock: TALK | BOOK --------------------------------------------------
   A small capsule of glass: the page shows through it, blurred, and its edge
   catches the light. Bottom right on a large screen (the agent's card rises
   from there), bottom centre on a phone, where it steps aside while the page
   is scrolled down (static/js/dock.js). */
.dock {
  position: fixed; right: max(1.5rem, env(safe-area-inset-right)); bottom: max(1.5rem, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; height: 3rem; padding: 0 0.3rem; border-radius: 99px;
  color: var(--ink-cool); background: rgb(253 253 252 / 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: var(--glass-edge), 0 0 0 1px rgb(14 17 20 / 0.07), 0 14px 34px -14px rgb(14 17 20 / 0.34), 0 3px 8px -2px rgb(14 17 20 / 0.07);
  transition: transform 0.8s var(--sheet-ease), opacity 0.6s ease, visibility 0s;
}
/* The edge splits the light a little: red on one side, blue on the other. */
.dock::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(100deg, rgb(224 112 124 / 0.5), rgb(255 255 255 / 0) 32%, rgb(255 255 255 / 0) 68%, rgb(90 130 230 / 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.dock.is-away {
  opacity: 0; visibility: hidden; transform: translateY(1.6rem);
  transition: transform 0.6s ease, opacity 0.4s ease, visibility 0s 0.6s;
}
/* Nothing floats over the ocean of the home page, an open sheet or the menu. */
.page-opening:not(.is-white) .dock,
html.has-sheet .dock,
html:has(.topbar[data-open="true"]) .dock { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
.dock__item {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem; height: 2.4rem; padding: 0 calc(1.1rem - 0.3em) 0 1.1rem;
  border-radius: 99px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  transition: background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.dock__item:hover { background: rgb(255 255 255 / 0.75); }
.dock__item:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.dock__rule { width: 1px; height: 1rem; background: rgb(14 17 20 / 0.16); }
.dock .robot { width: 22px; height: 22px; margin: -2px -0.1rem -2px -0.35rem; flex: none; }

@media (max-width: 700px) {
  .dock { right: auto; left: 50%; translate: -50% 0; bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.4rem)); }
}
/* Without a script there is no conversation: only BOOK stays (it opens as a page target). */
.no-js [data-agent-open], .no-js .dock__rule { display: none !important; }
/* The end of the page stays clear of the dock. */
.site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }


/* The Wizo robot (templates/partials/robot.html, static/js/robot.js) ---------------
   White ceramic, a black glass visor, eyes of light. It looks (--look-x, --look-y, --tilt),
   blinks (--open), smiles (.is-happy), listens, thinks and talks (--mouth). */
.robot-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.robot { display: block; overflow: visible; --look-x: 0px; --look-y: 0px; --tilt: 0deg; --open: 1; --mouth: 0.4; }
.robot__body { transform-box: view-box; transform-origin: 60px 64px; transform: rotate(var(--tilt)); transition: transform 0.6s var(--sheet-ease); }
.robot__antenna line { stroke: #c3c8cf; stroke-width: 3; stroke-linecap: round; }
.robot__halo { fill: url(#robot-halo); transform-box: fill-box; transform-origin: center; animation: robot-halo 3.4s ease-in-out infinite; }
.robot__bead { fill: url(#robot-bead); }
.robot__ear { fill: url(#robot-ear); }
.robot__head { fill: url(#robot-shell); stroke: rgb(14 17 20 / 0.08); stroke-width: 1; }
.robot__sheen { fill: url(#robot-sheen); opacity: 0.85; }
.robot__visor { fill: url(#robot-visor); }
.robot__glint { fill: rgb(255 255 255 / 0.15); }
.robot__eyes { transform: translate(var(--look-x), var(--look-y)); transition: transform 0.35s var(--sheet-ease); }
.robot__open { transition: opacity 0.15s ease; }
.robot__eye { fill: url(#robot-eye); filter: url(#robot-glow); transform-box: fill-box; transform-origin: center; transform: scaleY(var(--open)); transition: transform 0.09s ease; }
.robot__smile { opacity: 0; transition: opacity 0.15s ease; }
.robot__smile path { fill: none; stroke: #a794ff; stroke-width: 4; stroke-linecap: round; filter: url(#robot-glow); }
.robot__mouth { fill: #b3a2ff; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scaleX(var(--mouth)); transition: opacity 0.2s ease, transform 0.08s linear; }
.robot__cheek { fill: #f2a3ad; opacity: 0.3; }
.robot.is-happy .robot__smile { opacity: 1; }
.robot.is-happy .robot__open { opacity: 0; }
.robot.is-speaking .robot__mouth { opacity: 0.95; }
.robot.is-listening .robot__halo { animation-duration: 1.2s; }
.robot.is-thinking .robot__eyes { animation: robot-think 1.8s ease-in-out infinite; }
.robot.is-hop { animation: robot-hop 0.62s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes robot-halo { 50% { transform: scale(1.5); opacity: 0.35; } }
@keyframes robot-think { 0%, 100% { transform: translate(-3px, -2.5px); } 50% { transform: translate(3px, -2.5px); } }
@keyframes robot-hop { 0% { transform: none; } 35% { transform: translateY(-11%) scale(1.02); } 70% { transform: translateY(1.5%); } 100% { transform: none; } }


/* 3. The agent's panel -------------------------------------------------------
   A phone: a sheet like the others. A large screen: a floating card in the
   corner, above the dock; the page stays in view, only slightly dimmed. */
.talkpanel { position: absolute; inset: 0; display: flex; flex-direction: column; }
.talkpanel__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.6rem;
  padding: 2.1rem 1.1rem 1rem 1.3rem; border-bottom: 1px solid rgb(14 17 20 / 0.07);
}
.talkpanel__title { display: flex; align-items: center; gap: 0.55rem; min-width: 0; white-space: nowrap; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.talkpanel__title .robot { width: 30px; height: 30px; margin: -6px 0 -6px -4px; flex: none; }
.talkpanel__badge {
  padding: 0.26rem 0.42rem 0.26rem 0.55rem; border-radius: 99px; border: 1px solid rgb(90 79 216 / 0.35);
  font-size: 0.54rem; letter-spacing: 0.18em; color: #4a3fc0;
}
.talkpanel__modes { display: flex; padding: 3px; border-radius: 99px; background: rgb(14 17 20 / 0.05); }
.talkpanel__mode {
  min-height: 2rem; padding: 0 0.85rem 0 1rem; border-radius: 99px;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-cool);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.talkpanel__mode[aria-selected="true"] { background: var(--white); color: var(--ink-cool); box-shadow: 0 1px 3px rgb(14 17 20 / 0.12); }
.talkpanel__mode:focus-visible, .talkpanel__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.talkpanel__close { position: relative; width: 2.4rem; height: 2.4rem; border-radius: 50%; transition: background 0.3s ease; }
.talkpanel__close:hover { background: rgb(14 17 20 / 0.05); }
.talkpanel__close span::before, .talkpanel__close span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.95rem; height: 1.5px; margin: -0.75px 0 0 -0.475rem;
  background: currentColor; border-radius: 1px; transform: rotate(45deg);
}
.talkpanel__close span::after { transform: rotate(-45deg); }

/* The conversation */
.talkpanel__text { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.talkpanel__log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.4rem 1.6rem 1rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  scrollbar-width: thin; scrollbar-color: rgb(14 17 20 / 0.18) transparent;
}
.talkpanel__log:focus { outline: none; }
.talkpanel__log:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; border-radius: 8px; }
.talkpanel__log > :first-child { margin-top: auto; }   /* the conversation settles at the bottom, near the input */
.message { max-width: 86%; font-size: 0.97rem; line-height: 1.5; letter-spacing: -0.005em; text-wrap: pretty; animation: message-in 0.6s var(--sheet-ease) both; }
.message--agent { align-self: flex-start; }
.message--agent p { padding: 0.85rem 1.05rem; border-radius: 4px 18px 18px 18px; background: rgb(14 17 20 / 0.045); }
.message--user { align-self: flex-end; }
.message--user p { padding: 0.85rem 1.05rem; border-radius: 18px 4px 18px 18px; background: var(--ink-cool); color: var(--white); }
.message__actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.message__note { align-self: stretch; max-width: none; font-size: 0.72rem; line-height: 1.5; color: var(--muted-cool); text-align: center; padding-inline: 1rem; }
@keyframes message-in { from { opacity: 0; transform: translateY(0.6rem); } }
/* The agent is writing: three points of light. */
.message--typing p { display: flex; gap: 5px; padding: 1rem 1.1rem; }
.message--typing i { width: 6px; height: 6px; border-radius: 50%; background: #8c6bd8; animation: typing 1.2s ease-in-out infinite; }
.message--typing i:nth-child(2) { animation-delay: 0.15s; background: #7a76df; }
.message--typing i:nth-child(3) { animation-delay: 0.3s; background: #5a82e6; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.talkpanel__foot { padding: 0.4rem 1.2rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid rgb(14 17 20 / 0.06); }
.sheet.has-keyboard .talkpanel__foot { padding-bottom: 0.7rem; }
.talkpanel__suggestions {
  display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.6rem 0.4rem 0.5rem; margin-inline: -0.4rem; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent);   /* more to the right */
}
.talkpanel__suggestions::-webkit-scrollbar { display: none; }
.chip {
  flex: none; max-width: 17rem; padding: 0.55rem 0.9rem; border-radius: 99px; border: 1px solid rgb(14 17 20 / 0.12);
  font-size: 0.82rem; line-height: 1.3; text-align: left; white-space: normal; color: var(--ink-cool); background: var(--white);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.chip:hover { border-color: rgb(14 17 20 / 0.32); }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip--action { border-color: rgb(90 79 216 / 0.35); color: #3f35b0; }
.talkpanel__handoff { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; padding: 0.2rem 0.2rem 0.7rem; }
.talkpanel__link {
  display: inline-flex; align-items: center; min-height: 2rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-cool); text-decoration: underline; text-decoration-color: rgb(14 17 20 / 0.18); text-underline-offset: 0.5em;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.talkpanel__link:hover { color: var(--ink-cool); text-decoration-color: currentColor; }
.talkpanel__link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.talkpanel__restart { margin-left: auto; }
.talkpanel__form {
  display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  border-radius: 24px; border: 1px solid rgb(14 17 20 / 0.12); background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.talkpanel__form:focus-within { border-color: rgb(90 79 216 / 0.55); box-shadow: 0 0 0 3px rgb(90 79 216 / 0.12); }
.talkpanel .talkpanel__input:focus-visible { outline: none; }   /* the whole field shows the focus (above), whatever the page */
.talkpanel__input {
  flex: 1; min-height: 2.6rem; max-height: 8.5rem; padding: 0.62rem 0; border: 0; background: none; resize: none; outline: none;
  font-size: 1rem; line-height: 1.4; caret-color: #5a4fd8;   /* 1rem: phones do not zoom into the field */
}
.talkpanel__send {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none;
  background: var(--ink-cool); color: var(--white); font-size: 1.05rem; transition: opacity 0.3s ease, transform 0.3s ease;
}
.talkpanel__send:disabled { opacity: 0.25; cursor: default; }
.talkpanel__send:not(:disabled):hover { transform: translateY(-1px); }
.talkpanel__send:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* The voice */
.talkpanel__voice { flex: 1; display: grid; grid-template-rows: 1fr auto auto auto auto; justify-items: center; align-items: center; padding: 1rem 1.6rem calc(1.6rem + env(safe-area-inset-bottom)); text-align: center; }
.voice { position: relative; display: grid; place-items: center; width: min(100%, 22rem); aspect-ratio: 1.5; }
.voice__wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.voice__mic {
  position: relative; display: grid; place-items: center; width: 6.4rem; height: 6.4rem; border-radius: 50%;
  background: var(--white); box-shadow: var(--glass-edge), 0 0 0 1px rgb(14 17 20 / 0.1), 0 14px 30px -12px rgb(14 17 20 / 0.35);
  transition: transform 0.4s var(--sheet-ease), box-shadow 0.4s ease;
}
.voice__mic:hover { transform: scale(1.04); }
.voice__mic:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.voice__mic .robot { width: 76%; height: 76%; margin-top: -4%; }
.voice__mic[aria-pressed="true"] { box-shadow: var(--glass-edge), 0 0 0 1px rgb(90 79 216 / 0.4), 0 0 0 8px rgb(140 107 216 / 0.12), 0 14px 30px -12px rgb(14 17 20 / 0.35); }
.voice__state { margin-top: 0.4rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; }
.voice__said { min-height: 3em; max-width: 30ch; margin-top: 0.9rem; font-size: 1rem; line-height: 1.5; text-wrap: balance; }
.voice__said--heard { color: var(--muted-cool); }   /* the visitor's own words, while they speak */
.voice__note { max-width: 34ch; margin-top: 0.8rem; font-size: 0.74rem; line-height: 1.5; color: var(--muted-cool); }
.voice__end {
  margin-top: 1rem; min-height: 2.4rem; padding: 0 1.2rem 0 1.4rem; border-radius: 99px; border: 1px solid rgb(14 17 20 / 0.16);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.voice__end:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* On a phone the handle sits above the header; on a large screen the panel is a card. */
.sheet--agent .talkpanel__head { padding-top: 2.3rem; }
@media (min-width: 701px) {
  .sheet--agent .sheet__backdrop { background: rgb(14 17 20 / 0.08); }
  .sheet--agent .sheet__panel {
    left: auto; top: auto; right: max(1.5rem, env(safe-area-inset-right)); bottom: max(1.5rem, env(safe-area-inset-bottom));
    width: min(26.5rem, calc(100vw - 3rem)); height: min(44rem, calc(100% - 3rem));
    border-radius: 26px;
    box-shadow: var(--glass-edge), 0 0 0 1px rgb(14 17 20 / 0.08), 0 40px 90px -30px rgb(14 17 20 / 0.4), 0 10px 24px -10px rgb(14 17 20 / 0.12);
    transform: translateY(1.5rem) scale(0.97); transform-origin: 85% 100%; opacity: 0;
    transition: transform 0.6s var(--sheet-ease), opacity 0.35s ease;
  }
  .sheet--agent.is-open .sheet__panel,
  .no-js .sheet--agent:target .sheet__panel { transform: none; opacity: 1; }
  .sheet--agent.is-closing .sheet__panel { transition: transform 0.4s ease, opacity 0.3s ease; }
  .sheet--agent .sheet__handle { display: none; }
  .sheet--agent .talkpanel__head { padding-top: 1.2rem; }
}


/* 4. "Start a project" and its two ways ----------------------------------------- */
.sheet--form .sheet__scroll > * { max-width: 46rem; }
.request__head { display: grid; gap: 1rem; padding-bottom: clamp(2.2rem, 6svh, 3.6rem); }
.request__title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 400; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.request__intro { max-width: 40ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.5; color: var(--muted-cool); }
.request__form { display: grid; gap: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.request .field { align-content: start; }
.request .field + .field { margin-top: 0; }
.request .field__label {
  font-stretch: 100%; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; color: var(--muted-cool);
}
.request .field__input {
  width: 100%; padding: 0.55rem 0 0.7rem; border: 0; border-bottom: 1px solid rgb(14 17 20 / 0.22); border-radius: 0;
  background: transparent; color: var(--ink-cool); font-size: 1.06rem; letter-spacing: -0.005em; caret-color: #5a4fd8;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.request .field__input:focus { outline: none; border-bottom-color: var(--ink-cool); box-shadow: 0 1px 0 0 var(--ink-cool); }
.request .field__input:focus-visible { outline: none; }
.request select.field__input {
  appearance: none; -webkit-appearance: none; padding-right: 1.6rem; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230e1114' stroke-width='1.3'/%3E%3C/svg%3E") right 0.2rem center / 12px 8px no-repeat;
}
.request .field__input--area { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.request .field__input[aria-invalid="true"] { border-bottom-color: #b3343f; }
.field__error { font-size: 0.82rem; color: #b3343f; }
.request__trap { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
.request__error { padding: 0.9rem 1.1rem; border-radius: 12px; background: rgb(179 52 63 / 0.07); color: #8f2430; font-size: 0.95rem; }
.request__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 0.6rem; }
.request__privacy { font-size: 0.8rem; color: var(--muted-cool); }
.request__privacy a { color: var(--ink-cool); text-decoration: underline; text-decoration-color: rgb(14 17 20 / 0.25); text-underline-offset: 0.25em; }
/* "Only serious projects": said plainly, set apart by a hairline of the light's violet. */
.request__notice {
  max-width: 44ch; padding-left: 1rem; border-left: 2px solid #8f7cf0;
  font-size: 0.95rem; line-height: 1.5; color: var(--ink-cool);
}
/* The application's three groups of questions: you, your business, your project. */
.request__group { display: grid; gap: 1.6rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.request__group + .request__group { padding-top: 0.6rem; }
.request__legend {
  float: left; width: 100%; padding: 0 0 0.9rem; border-bottom: 1px solid var(--line-cool);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-cool);
}
.request__legend + * { clear: both; }
.request .field--check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.2rem 0.8rem; }
.request .field--check input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--ink-cool); cursor: pointer; }
.request .field--check .field__error { grid-column: 2; }
.field__check { font-size: 1rem; line-height: 1.45; cursor: pointer; }
/* At the foot of each form, the other way to begin. */
.request__other { font-size: 0.9rem; color: var(--muted-cool); }
.request__other a { color: var(--ink-cool); text-decoration: underline; text-decoration-color: rgb(14 17 20 / 0.25); text-underline-offset: 0.25em; }
.request__other a:hover { text-decoration-color: var(--ink-cool); }

/* The choice: two rows, a number, a name, a sentence, an arrow that moves on hover. */
.start__ways { display: grid; border-top: 1px solid var(--line-cool); }
.start__way {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: "number name arrow" ". text arrow";
  align-items: center; gap: 0.4rem 1rem; padding: clamp(1.5rem, 4svh, 2.2rem) 0.2rem;
  border-bottom: 1px solid var(--line-cool); color: var(--ink-cool); transition: background 0.4s ease;
}
.start__number { grid-area: number; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; color: var(--muted-cool); }
.start__name { grid-area: name; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.start__text { grid-area: text; max-width: 42ch; font-size: 0.98rem; line-height: 1.5; color: var(--muted-cool); }
.start__arrow { grid-area: arrow; font-size: 1.4rem; transition: transform 0.45s var(--sheet-ease); }
.start__way:hover .start__arrow, .start__way:focus-visible .start__arrow { transform: translateX(0.5rem); }
.start__way:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.request__done { display: grid; justify-items: start; gap: 1.1rem; padding-block: 1rem 2rem; outline: none; animation: message-in 0.8s var(--sheet-ease) both; }
.request__done-title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 400; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.request__done-text { max-width: 36ch; font-size: 1.1rem; line-height: 1.5; color: var(--muted-cool); }
.request__done .action { margin-top: 1rem; }

@media (max-width: 700px) {
  .field-row { grid-template-columns: 1fr; }
  .request__send .action { width: 100%; }
  .start__way { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
}


/* 5. Buttons ------------------------------------------------------------------------
   A capsule with small spaced capitals: ink for the main action, a hairline for the other. */
.action {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.8em;
  min-height: 3.4rem; padding: 0 calc(1.9rem - 0.26em) 0 1.9rem; border-radius: 99px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.5s var(--sheet-ease), box-shadow 0.5s ease;
  -webkit-tap-highlight-color: transparent;
}
.action:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.action--primary { background: var(--ink-cool); color: var(--white); box-shadow: 0 10px 24px -14px rgb(14 17 20 / 0.6); }
.action--primary:hover { background: #22262c; transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgb(14 17 20 / 0.55); }
.action--secondary { border: 1px solid rgb(14 17 20 / 0.24); color: var(--ink-cool); background: rgb(253 253 252 / 0.5); }
.action--secondary:hover { border-color: var(--ink-cool); transform: translateY(-1px); }
.action[disabled], .action[aria-busy="true"] { opacity: 0.5; pointer-events: none; }


/* 6. The cookie panel -----------------------------------------------------------------
   Small and quiet, in a corner; it only opens by itself when a measuring tool is set up. */
.consent {
  position: fixed; left: max(1.5rem, env(safe-area-inset-left)); bottom: max(1.5rem, env(safe-area-inset-bottom)); z-index: 95;
  width: min(24rem, calc(100vw - 3rem)); padding: 1.3rem 1.3rem 1.1rem; border-radius: 20px;
  background: rgb(253 253 252 / 0.92); color: var(--ink-cool);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: var(--glass-edge), 0 0 0 1px rgb(14 17 20 / 0.08), 0 30px 60px -24px rgb(14 17 20 / 0.35);
  animation: message-in 0.7s var(--sheet-ease) both;
}
.consent__title { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; }
.consent__text { margin-top: 0.6rem; font-size: 0.88rem; line-height: 1.5; color: #3b4047; }
.consent__choices { display: grid; gap: 0.2rem; margin-top: 0.9rem; border-top: 1px solid rgb(14 17 20 / 0.08); }
.consent__row { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; padding: 0.7rem 0; border-bottom: 1px solid rgb(14 17 20 / 0.08); font-size: 0.8rem; line-height: 1.45; color: var(--muted-cool); cursor: pointer; }
.consent__row b { display: block; font-weight: 600; color: var(--ink-cool); }
.consent__row input { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--ink-cool); }
.consent__row input:disabled + span { opacity: 0.6; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.consent__button {
  flex: 1 1 auto; min-height: 2.5rem; padding: 0 0.9rem; border-radius: 99px; border: 1px solid rgb(14 17 20 / 0.16);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.consent__button:hover { border-color: rgb(14 17 20 / 0.4); }
.consent__button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent__button--accept { background: var(--ink-cool); border-color: var(--ink-cool); color: var(--white); }
.consent__button--accept:hover { background: #22262c; }
/* While the panel is open on a phone, the dock gives it the room. */
@media (max-width: 700px) {
  .consent { left: 0.75rem; right: 0.75rem; width: auto; bottom: max(0.75rem, env(safe-area-inset-bottom)); }
  html:has(.consent:not([hidden])) .dock { opacity: 0; visibility: hidden; }
}


/* Reduced motion: nothing slides; sheets and panels simply appear. -------------------- */
@media (prefers-reduced-motion: reduce) {
  .robot__halo, .message--typing i, .robot.is-thinking .robot__eyes, .robot.is-hop { animation: none; }
}
