/* ==========================================================================
   site.css — the two home pages, in the order the visitor meets them:
   hero, services, laboratory session, proof, contact, footer.

   The page alternates between paper and deep navy so that each chapter has its
   own weight. The sphere's seam, its warm impact colour and its threads are the
   one visual language: illustrations, the session display and the actions repeat
   them. Palette and gutters come from tokens.css.
   ========================================================================== */

:root {
  --paper: #f9fbfd;
  --paper-deep: #eef2f6;
  --navy: #0a1c2b;
  --navy-deep: #06131d;
  --navy-ink: #f2f6f9;
  --navy-muted: #aebfcc;
  --reading-ink: #122130;
  --reading-muted: #4d5f6e;
  --thread: linear-gradient(100deg, #168cff 0%, #745cff 55%, #ff9855 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--navy-deep); }

body {
  margin: 0;
  min-height: 100%;
  color: var(--reading-ink);
  background: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-synthesis: none; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

::selection { background: rgba(22, 140, 255, .24); color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #168cff;
  outline-offset: 4px;
  border-radius: 4px;
}

.page { position: relative; isolation: isolate; overflow: clip; }
main { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.5em;
  border: 0;
  border-radius: 999px;
  color: var(--button-ink);
  background: var(--button-bg);
  box-shadow: 0 10px 28px -10px rgba(255, 130, 60, .75);
  font: inherit;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.button:hover, .button:focus-visible {
  background: var(--button-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(255, 130, 60, .85);
}
.button svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.button:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Navigation bar: a floating object that stays with the reader. A dark mark slides
   to the section in view, the thread along its edge shows how far the page has been
   read, and the way to get in touch is always one press away.
   -------------------------------------------------------------------------- */

header {
  position: fixed;
  top: 14px;
  left: max(10px, calc(var(--gutter) - 18px));
  right: max(10px, calc(var(--gutter) - 18px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--bar-bg);
  box-shadow: 0 0 0 1px var(--bar-edge), var(--bar-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  animation: bar-in .9s var(--ease) both;
}
@keyframes bar-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.brand { display: flex; flex: none; align-items: center; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: clamp(128px, 11.5vw, 158px); height: auto; }

.section-nav {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 2px;
  margin-inline: auto;
  font-size: .93rem;
  font-weight: 560;
  letter-spacing: -.012em;
}
.section-nav::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--mark-width, 0);
  border-radius: 999px;
  background: var(--bar-active);
  opacity: var(--mark-opacity, 0);
  transform: translateX(var(--mark-left, 0));
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s;
}
.section-nav a {
  padding: .58em 1.05em;
  border-radius: 999px;
  color: var(--bar-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s, background-color .2s;
}
.section-nav a:not([aria-current]):hover { background: rgba(18, 33, 48, .07); }
.section-nav a[aria-current] { color: #fff; }

.head-right { display: flex; flex: none; align-items: center; gap: 10px; }
.language { display: flex; align-items: center; padding: 3px; border-radius: 999px; background: rgba(18, 33, 48, .07); font-size: .78rem; font-weight: 650; letter-spacing: .03em; line-height: 1; }
.language > span:not(.active) { display: none; }
.language a, .language .active { padding: .5em .68em; border-radius: 999px; }
.language a { color: #4a5e6d; text-decoration: none; }
.language a:hover, .language a:focus-visible { color: var(--bar-active); }
.language .active { color: var(--bar-active); background: #fff; box-shadow: 0 1px 3px rgba(6, 22, 36, .18); }
.nav-cta { padding: .72em 1.3em; box-shadow: none; font-size: .93rem; }
.nav-toggle { display: none; }

.reading-progress {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--thread);
  transform: scaleX(var(--journey-progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero: the seam runs through the sphere, so the object itself carries the change
   from paper to night. The copy holds the paper side; the field beside it is where
   the visitor throws a thought at the object.
   -------------------------------------------------------------------------- */

.immersive-hero {
  --seam: 63%;
  --seam-x: 63vw;
  --instrument: min(90svh, 56vw, 940px);
  position: relative;
  z-index: 3;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: max(100svh, 720px);
  padding: 112px var(--gutter) 64px;
  background: linear-gradient(90deg,
    var(--paper) 0 calc(var(--seam) - 3%),
    #eef2f5 calc(var(--seam) - 1%),
    #b9c8d4 var(--seam),
    #5c7a90 calc(var(--seam) + 1%),
    #1b3648 calc(var(--seam) + 3%),
    #0d2233 calc(var(--seam) + 6%),
    var(--navy) 100%);
}
/* The field is a turned surface around the object rather than a flat wash. */
.immersive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at var(--seam) 48%, rgba(120, 150, 175, .09) 0 1px, transparent 1px 9px),
    radial-gradient(circle at calc(var(--seam) - 15%) 62%, rgba(255, 170, 110, .22), transparent 26%),
    radial-gradient(circle at calc(var(--seam) + 12%) 34%, rgba(64, 151, 245, .24), transparent 34%),
    radial-gradient(circle at var(--seam) 82%, rgba(145, 112, 214, .16), transparent 30%);
  -webkit-mask-image: radial-gradient(circle calc(var(--instrument) * .85) at var(--seam) 48%, #000 30%, transparent 100%);
  mask-image: radial-gradient(circle calc(var(--instrument) * .85) at var(--seam) 48%, #000 30%, transparent 100%);
}

.immersive-hero .copy {
  position: relative;
  z-index: 4;
  width: min(calc(var(--seam-x) - var(--instrument) * .36 - var(--gutter)), 620px);
  min-width: 0;
}
.eyebrow { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; line-height: 1.5; }

/* What the business is comes first and never moves: it has to be understood at a
   glance, before the promise beneath it has had time to change. */
.immersive-hero h1 {
  margin: 0;
  padding-left: .8em;
  border-left: 5px solid;
  border-image: linear-gradient(180deg, #168cff, #745cff 55%, #ff9855) 1;
  color: var(--reading-ink);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.25rem, 1.75vw, 1.85rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* The promises share one grid cell, so the column keeps the height of the tallest
   and nothing below it moves when the phrase changes. */
.promises { display: grid; align-items: center; margin-top: 22px; }
.promise {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--reading-ink);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.5rem, 3.9vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.05em;
  text-wrap: balance;
  visibility: hidden;
}
.promise-long { font-size: clamp(2rem, 3.1vw, 3.4rem); line-height: 1.08; }
.promise.is-current, .promise.is-leaving { visibility: visible; }
.promise span {
  display: block;
  /* The gradient paints only inside the box, so the box must reach the descenders. */
  padding-bottom: .14em;
  margin-bottom: -.14em;
  color: transparent;
  background: linear-gradient(100deg, #1277d4 0%, #5d5cff 58%, #7e4fe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.promise.is-leaving { animation: promise-out .55s ease both; }
.promise.is-entering {
  -webkit-mask: linear-gradient(100deg, #000 40%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  mask: linear-gradient(100deg, #000 40%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  animation: promise-in 1.25s var(--ease) .25s both;
}
@keyframes promise-out { to { opacity: 0; transform: translateY(-.28em); filter: blur(7px); } }
@keyframes promise-in {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; transform: translateY(.14em); }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; transform: none; }
}
html[data-motion='paused'] .promise { animation: none; -webkit-mask: none; mask: none; }
html[data-motion='paused'] .promise.is-leaving { visibility: hidden; }
.immersive-hero .lead {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--reading-muted);
  font-size: clamp(1rem, 1.12vw, 1.13rem);
  line-height: 1.6;
}

.thought-form { margin-top: 26px; }
.thought-label { display: block; margin-bottom: 10px; color: var(--reading-ink); font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.thought-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 22px;
  border: 1px solid rgba(18, 33, 48, .16);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 22px 50px -24px rgba(16, 40, 62, .5), 0 2px 6px rgba(16, 40, 62, .06);
  transition: border-color .2s, box-shadow .3s var(--ease);
}
.thought-bar:focus-within {
  border-color: #168cff;
  box-shadow: 0 0 0 4px rgba(22, 140, 255, .16), 0 26px 60px -24px rgba(16, 40, 62, .55);
}
.thought-bar input {
  flex: 1;
  min-width: 0;
  padding: .6em 0;
  border: 0;
  outline: 0;
  color: var(--reading-ink);
  background: none;
  font: inherit;
  font-size: 1.02rem;
  letter-spacing: -.012em;
  caret-color: #ff7a2f;
}
.thought-bar input::placeholder { color: #71828f; opacity: 1; }
.thought-note { margin: 10px 0 0; color: #5f7180; font-size: .8rem; line-height: 1.5; }
.scroll-link { display: inline-block; margin-top: 18px; color: var(--reading-ink); font-size: .92rem; font-weight: 550; text-decoration: underline; text-decoration-color: rgba(18, 33, 48, .3); text-underline-offset: 5px; }
.scroll-link:hover { text-decoration-color: currentColor; }

.thought-result { margin-top: 26px; }
.thought-result-title { margin: 0 0 14px; color: var(--reading-ink); font-size: 1.2rem; font-weight: 650; letter-spacing: -.02em; outline: 0; }
.thought-questions { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: question; }
.thought-questions li {
  position: relative;
  padding: 12px 16px 12px 44px;
  border: 1px solid rgba(18, 33, 48, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px -22px rgba(16, 40, 62, .5);
  color: var(--reading-ink);
  font-size: .98rem;
  line-height: 1.42;
  counter-increment: question;
  animation: question-in .7s var(--ease) both;
  animation-delay: calc(var(--order) * 1.4s + .5s);
}
.thought-questions li::before {
  content: counter(question);
  position: absolute;
  left: 15px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--button-ink);
  background: var(--button-bg);
  font-size: .72rem;
  font-weight: 700;
}
@keyframes question-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.thought-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.thought-reset { padding: 0; border: 0; background: none; color: var(--reading-ink); font: inherit; font-size: .92rem; font-weight: 550; text-decoration: underline; text-decoration-color: rgba(18, 33, 48, .3); text-underline-offset: 5px; cursor: pointer; }

.hero-slogan {
  position: absolute;
  right: max(var(--gutter), 68px);
  bottom: 30px;
  z-index: 4;
  margin: 0;
  color: #a9bfce;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero-slogan strong { font-weight: inherit; }

/* The instrument. The camera sits slightly above the shell's centre, which lands at
   4/9 of the frame's height; the offset keeps the shell on the page's optical middle. */
.immersive-hero .hero-visual {
  position: absolute;
  left: calc(var(--seam) - var(--instrument) / 2);
  top: calc(48% - var(--instrument) * .444);
  z-index: 2;
  width: var(--instrument);
  aspect-ratio: 1;
}
.frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  cursor: grab;
  touch-action: pan-y;
}
.frame.is-dragging { cursor: grabbing; }
.hero-3d::before {
  content: '';
  position: absolute;
  inset: 7%;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 37% 40%, rgba(92, 174, 247, .16), transparent 45%),
    radial-gradient(ellipse at 57% 65%, rgba(165, 130, 232, .13), transparent 48%),
    radial-gradient(ellipse at 45% 50%, transparent 52%, rgba(255, 185, 112, .12) 74%, transparent 80%);
  filter: blur(16px);
}
.sphere-canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; }
.thought { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.node-control { cursor: pointer; outline: none; pointer-events: all; visibility: hidden; }
.node-hit { fill: transparent; stroke: transparent; pointer-events: all; }
.node { opacity: 0; }
.node-control:focus-visible .node-hit { stroke: rgba(22, 140, 255, .5); stroke-width: 1; }
.labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.label {
  position: absolute;
  width: max-content;
  max-width: 13rem;
  padding: .28em .72em .32em;
  border: 1px solid var(--label-accent, #58aef2);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 22, 34, .78);
  box-shadow: 0 8px 20px -10px rgba(3, 14, 24, .8);
  font-size: clamp(.84rem, 1vw, 1rem);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -.012em;
  visibility: hidden;
  transition: opacity .2s;
}
.label.is-active { opacity: 1; }
.label.is-muted { opacity: .82; }
.hero-3d:not([data-renderer='three']) .labels,
.hero-3d:not([data-renderer='three']) .thought,
.hero-3d:not([data-renderer='three']) .node-popover { opacity: 0; }
.node-popover {
  position: absolute;
  z-index: 5;
  width: min(25rem, 72%);
  padding: 13px 18px 15px;
  border: 1px solid rgba(197, 212, 228, .5);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 50px -18px rgba(5, 20, 34, .55);
  text-align: center;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity .3s;
}
.node-popover.is-visible { opacity: 1; }
.hero-3d[data-card='folding'] .node-popover,
.hero-3d[data-card='folded'] .node-popover { opacity: 0; transition-duration: .1s; }
.node-popover-title { display: block; margin-bottom: 6px; color: #15283a; font-size: .72rem; font-weight: 650; line-height: 1.25; letter-spacing: .13em; text-transform: uppercase; }
.node-popover-body { margin: 0; color: #3d5062; font-size: .92rem; line-height: 1.45; }

.immersive-hero.is-transferring { overflow: visible; }
.frame.is-transferring {
  position: fixed;
  inset: auto;
  height: auto;
  pointer-events: none;
  will-change: left, top, width, opacity;
}
.frame.is-transferring .thought,
.frame.is-transferring .labels,
.frame.is-transferring .node-popover { opacity: 0; visibility: hidden; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.site-content { position: relative; width: 100%; }
.content-section { position: relative; isolation: isolate; padding: clamp(84px, 9vw, 140px) var(--gutter); scroll-margin-top: 0; }
.content-section .eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; color: #566a79; }
.content-section .eyebrow::before { content: ''; flex: 0 0 34px; height: 2px; border-radius: 2px; background: var(--thread); }
.content-section h2 {
  max-width: 19ch;
  margin: 0;
  color: var(--reading-ink);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.25rem, 3.8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.section-intro > p:not(.eyebrow) { max-width: 56ch; margin: 28px 0 0; color: var(--reading-muted); font-size: clamp(1.06rem, 1.3vw, 1.28rem); line-height: 1.55; letter-spacing: -.012em; }

[data-reveal] { transition: opacity .9s var(--ease), translate .9s var(--ease); }
html[data-motion='running'] [data-reveal].is-pending { opacity: 0; translate: 0 34px; }

/* Services: one plate for the laboratory, four equal doors beneath it. */
.services { background: var(--paper); }
.services .section-intro { max-width: 58%; margin-bottom: clamp(44px, 5vw, 76px); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0 clamp(24px, 3vw, 40px) clamp(26px, 3vw, 38px);
  border: 1px solid rgba(40, 72, 100, .14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -48px rgba(16, 40, 62, .6);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, translate .9s var(--ease), opacity .9s var(--ease);
}
.service::before {
  content: '';
  display: block;
  flex: none;
  aspect-ratio: 2 / 1;
  margin: 0 calc(clamp(24px, 3vw, 40px) * -1) 20px;
  background-image: var(--service-art);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform .9s var(--ease);
}
.service:hover, .service:focus-within { border-color: rgba(40, 72, 100, .3); box-shadow: 0 44px 70px -44px rgba(16, 40, 62, .7); transform: translateY(-4px); }
.service:hover::before { transform: scale(1.04); }
.service h3 { margin: 0; color: #2b6cab; font-size: .78rem; font-weight: 650; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.service-pitch {
  margin: 12px 0 14px;
  color: var(--reading-ink);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 2.25vw, 2.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.service > p:not(.service-pitch), .service-details p { margin: 0; color: var(--reading-muted); font-size: 1rem; line-height: 1.55; }
.service .deliverable { margin-top: 14px; color: #65767f; font-size: .9rem; }
.service .deliverable::first-letter { text-transform: uppercase; }
.service-details { margin-top: 16px; border-top: 1px solid rgba(40, 72, 100, .14); }
.service-details summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 2px; color: var(--reading-ink); font-size: .92rem; font-weight: 600; list-style: none; cursor: pointer; }
.service-details summary::-webkit-details-marker { display: none; }
.service-details summary::after { content: '+'; color: #2b6cab; font-size: 1.3rem; font-weight: 400; line-height: 1; transition: transform .3s var(--ease); }
.service-details[open] summary::after { transform: rotate(45deg); }
.service-details .catalogue-specifications { margin: 12px 0 0; color: var(--reading-muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.service-details .deliverable { margin-top: 12px; }

#offering-website { --service-art: var(--spine-art-website); }
#offering-consulting { --service-art: var(--spine-art-consulting); }
#offering-support { --service-art: var(--spine-art-support); }
#offering-model-adaptation { --service-art: var(--spine-art-model-adaptation); }

#offering-laboratory {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: 36px;
  align-content: center;
  min-height: clamp(380px, 34vw, 500px);
  padding: clamp(32px, 4.4vw, 68px);
  border: 0;
  background:
    radial-gradient(ellipse at 76% 42%, rgba(88, 174, 242, .22), transparent 54%),
    radial-gradient(ellipse at 96% 96%, rgba(255, 152, 85, .16), transparent 46%),
    linear-gradient(125deg, #0d2433, var(--navy) 62%, #142c3d);
  box-shadow: 0 50px 90px -60px rgba(6, 22, 36, .95);
}
/* Each card ends with its own way to the contact form. */
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: auto 0 0; padding-top: 22px; }
.service-cta, .service-more { display: inline-flex; align-items: center; gap: .5em; font-size: 1rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(18, 33, 48, .3); text-underline-offset: 5px; }
.service-cta { color: #2b6cab; }
.service-cta::after, .service-more::after { content: '→'; transition: transform .3s var(--ease); }
.service-cta:hover, .service-more:hover { text-decoration-color: currentColor; }
.service-cta:hover::after, .service-more:hover::after { transform: translateX(4px); }
#offering-laboratory .service-actions { grid-column: 1; margin-top: 8px; }
#offering-laboratory .service-more { color: #c8d6e0; text-decoration-color: rgba(200, 214, 224, .4); }
#offering-laboratory::before { display: none; }
#offering-laboratory, #offering-laboratory:hover { transform: none; }
#offering-laboratory .service-art { grid-column: 2; grid-row: 1 / span 6; align-self: center; display: block; width: 100%; height: clamp(280px, 28vw, 400px); min-width: 0; object-fit: contain; pointer-events: none; }
#offering-laboratory h3 { grid-column: 1; align-self: end; color: #7cc4f8; }
#offering-laboratory .service-pitch { grid-column: 1; max-width: 15ch; margin: 14px 0 20px; color: var(--navy-ink); font-size: clamp(2.1rem, 3.4vw, 3.25rem); line-height: 1.07; }
#offering-laboratory > p:not(.service-pitch) { grid-column: 1; max-width: 44ch; color: #c8d6e0; font-size: 1.08rem; }
#offering-laboratory .deliverable { color: #94a9b8; font-size: .94rem; }

.services .catalogue-price-link { display: inline-flex; align-items: center; gap: .5em; margin-top: 30px; color: var(--reading-ink); font-size: 1rem; font-weight: 600; opacity: 1; text-decoration: underline; text-decoration-color: rgba(18, 33, 48, .3); text-underline-offset: 5px; }
.services .catalogue-price-link::after { content: '→'; transition: transform .3s var(--ease); }
.services .catalogue-price-link:hover { text-decoration-color: currentColor; }
.services .catalogue-price-link:hover::after { transform: translateX(4px); }

/* The session: the night side of the page, and the only place the display is shown. */
.method {
  color: var(--navy-ink);
  background:
    radial-gradient(60rem 40rem at 18% 40%, rgba(40, 110, 180, .24), transparent 62%),
    radial-gradient(40rem 30rem at 92% 92%, rgba(120, 90, 220, .16), transparent 60%),
    var(--navy);
}
.method .eyebrow { color: #9fb6c6; }
.method h2 { max-width: 17ch; color: var(--navy-ink); }
.method .section-intro > p:not(.eyebrow) { color: var(--navy-muted); }
.method .section-intro { margin-bottom: clamp(40px, 5vw, 72px); }
.method-flow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(36px, 6vw, 96px); align-items: start; }
.method-art { position: sticky; top: max(24px, calc((100svh - 500px) / 2)); margin: 0; }
.method-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.method-art figcaption { margin-top: 10px; color: #8ea3b2; font-size: .8rem; line-height: 1.45; text-align: center; }

.display-panel { fill: #1b3246; stroke: rgba(190, 220, 245, .42); }
.display-threads path {
  fill: none;
  stroke: url(#display-flow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease);
  transition-delay: calc(var(--i) * 80ms);
}
.display-centre circle { fill: #ff9855; transform-box: fill-box; transform-origin: center; }
.display-centre .display-pulse { fill: none; stroke: #ff9855; stroke-width: 1.4; animation: display-pulse 3.2s ease-out infinite; }
@keyframes display-pulse { from { opacity: .8; transform: scale(.5); } to { opacity: 0; transform: scale(2.4); } }
.display-node { opacity: 0; transition: opacity .6s ease; transition-delay: calc(var(--i) * 100ms + 200ms); }
.display-node circle { fill: #dcecf8; stroke: #58aef2; stroke-width: 2; }
.display-node text { fill: #e9f1f7; font-size: 17px; font-weight: 550; letter-spacing: -.01em; }
.display-resume { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .8s var(--ease); }
.display-resume rect { fill: rgba(255, 152, 85, .14); stroke: #ff9855; }
.display-resume text { fill: #ffd9bf; font-size: 15px; font-weight: 600; }
.display-map { transform-box: view-box; transform-origin: 360px 200px; transition: transform 1s var(--ease), opacity .6s ease; }

.method-flow:not([data-stage]) .display-node:first-of-type { opacity: 1; }
.method-flow[data-stage='0'] .display-node[style*='--i:0'] { opacity: 1; }
.method-flow[data-stage='1'] .display-threads path,
.method-flow[data-stage='2'] .display-threads path { stroke-dashoffset: 0; }
.method-flow[data-stage='1'] .display-node,
.method-flow[data-stage='2'] .display-node { opacity: 1; }
.method-flow[data-stage='2'] .display-map { transform: translateY(-22px) scale(.82); }
.method-flow[data-stage='2'] .display-resume { opacity: 1; transform: none; }

.steps { margin: 0; padding: 0; list-style: none; }
.steps li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(340px, 62svh, 560px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  opacity: .34;
  transition: opacity .7s var(--ease);
}
.steps li:first-child { border-top: 0; }
.steps li.is-current { opacity: 1; }
.step-number { margin-bottom: 14px; color: #ff9855; font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.steps h3 { margin: 0; color: var(--navy-ink); font-family: 'Manrope', sans-serif; font-size: clamp(1.7rem, 2.5vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.steps p { max-width: 46ch; margin: 18px 0 0; color: var(--navy-muted); font-size: 1.06rem; line-height: 1.6; letter-spacing: -.01em; }

/* Proof: who is on the other side of the table, and the facts that can be counted. */
.after-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding: clamp(84px, 9vw, 140px) var(--gutter);
  background:
    radial-gradient(44rem 28rem at 8% 20%, rgba(22, 140, 255, .08), transparent 60%),
    radial-gradient(40rem 26rem at 92% 90%, rgba(255, 152, 85, .1), transparent 60%),
    var(--paper);
}
.continuation-kicker { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; color: #566a79; font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.continuation-kicker::before { content: ''; flex: 0 0 34px; height: 2px; border-radius: 2px; background: var(--thread); }
.continuation-name {
  display: inline-flex;
  align-items: baseline;
  gap: .18em;
  color: transparent;
  background: linear-gradient(100deg, #122130 6%, #1277d4 52%, #745cff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(3.4rem, 8.2vw, 8.4rem);
  line-height: 1;
  letter-spacing: -.06em;
  text-decoration: none;
}
.continuation-name span { font-weight: 700; }
.continuation-name em { font-style: normal; font-weight: 300; }
.continuation-name b { align-self: flex-start; margin-left: .1em; color: #12846f; -webkit-text-fill-color: #12846f; font-size: .22em; font-weight: 500; letter-spacing: 0; transition: transform .3s var(--ease); }
.continuation-name:hover b, .continuation-name:focus-visible b { transform: translate(3px, -3px); }
.continuation p { max-width: 50ch; margin: 22px 0 0; color: var(--reading-muted); font-size: clamp(1.06rem, 1.3vw, 1.22rem); line-height: 1.55; letter-spacing: -.012em; }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(40, 72, 100, .18); }
.proof > div { padding: 24px 22px 26px 0; border-bottom: 1px solid rgba(40, 72, 100, .18); }
.proof > div:nth-child(even) { padding-left: 22px; padding-right: 0; border-left: 1px solid rgba(40, 72, 100, .18); }
.proof dt { color: var(--reading-ink); font-family: 'Manrope', sans-serif; font-size: clamp(2.2rem, 3.9vw, 3.9rem); font-weight: 700; line-height: 1.05; letter-spacing: -.05em; }
.proof > div:not(:first-child) dt { font-size: clamp(1.5rem, 2.3vw, 2.3rem); line-height: 1.2; letter-spacing: -.04em; }
.proof dd { margin: 10px 0 0; color: var(--reading-muted); font-size: .96rem; line-height: 1.45; }

/* Contact: the page ends on the night side, with the sphere's rings behind the form. */
.contact {
  overflow: hidden;
  color: var(--navy-ink);
  background: var(--navy);
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 74% 46%, rgba(160, 200, 235, .07) 0 1px, transparent 1px 10px),
    radial-gradient(circle at 74% 46%, rgba(64, 151, 245, .28), transparent 44%),
    radial-gradient(circle at 12% 88%, rgba(255, 152, 85, .2), transparent 34%);
}
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6.5vw, 100px); align-items: start; }
.contact .eyebrow { color: #9fb6c6; }
.contact h2 { color: var(--navy-ink); }
.contact .contact-place { max-width: 44ch; margin: 28px 0 0; color: var(--navy-muted); font-size: 1.04rem; line-height: 1.65; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 14px 0 0; }
/* Where the office is: a map kept on the site itself, opening directions when pressed. */
.contact-map { position: relative; display: block; max-width: 520px; margin: 26px 0 0; overflow: hidden; border-radius: 18px; color: #fff; text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -40px rgba(0, 0, 0, .9); }
.contact-map img { display: block; width: 100%; height: auto; transition: scale .6s var(--ease); }
.contact-map:hover img, .contact-map:focus-visible img { scale: 1.04; }
.contact-map-text { position: absolute; inset: auto 0 0 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; padding: 34px 18px 14px; background: linear-gradient(to top, rgba(8, 22, 33, .94) 40%, transparent); font-size: .95rem; line-height: 1.35; }
.contact-map-text b { font-weight: 650; color: #ffb88a; white-space: nowrap; }
.contact-map-text b::after { content: ' →'; }
.contact-direct a { color: var(--navy-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 5px; }
.contact-direct a:hover { text-decoration-color: currentColor; }
.contact-socials { display: flex; flex-wrap: wrap; gap: .5rem; margin: 22px 0 0 -10px; }
.contact-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--navy-ink); border-radius: 8px; }
.contact-socials a:hover { color: #ffb88a; }
.contact-socials .social-icon { display: block; width: 24px; height: 24px; fill: currentColor; }
.contact-socials .social-icon-youtube { width: 32px; }
.contact-panel {
  padding: clamp(26px, 3.2vw, 44px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  color: var(--reading-ink);
  background: #fff;
  box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .75);
}
.contact-panel .contact-lead { margin: 0; color: var(--reading-ink); font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; }
.contact-prefilled { margin: 10px 0 0; padding: 9px 13px; border-radius: 10px; color: #7a3d10; background: #fff1e6; font-size: .9rem; font-weight: 550; }
.contact-panel .contact-form input:not([type=checkbox]), .contact-panel .contact-form textarea { border-color: rgba(40, 72, 100, .24); border-radius: 10px; caret-color: #ff7a2f; }
.contact-panel .contact-form input:not([type=checkbox]):focus, .contact-panel .contact-form textarea:focus { border-color: #168cff; box-shadow: 0 0 0 4px rgba(22, 140, 255, .16); outline: none; }
.contact-panel .contact-form a { color: #1668b5; text-decoration-color: rgba(22, 104, 181, .4); }
.contact-panel .contact-form .contact-ack input { accent-color: #e8772f; }
.contact-panel .contact-form .button { justify-self: stretch; padding-block: 1em; font-size: 1.02rem; }
.contact-panel .quiet-note { margin: 0; color: var(--reading-muted); opacity: 1; }

/* Footer and page furniture. */
footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 34px var(--gutter);
  color: var(--footer-ink);
  background: var(--footer-bg);
  font-size: .8rem;
  line-height: 1.7;
}
footer > [itemprop="address"] { display: contents; }
footer .place, footer .legal strong, footer .legal a { color: var(--footer-bright); }
footer .legal { font-size: .74rem; text-align: right; }
footer .legal strong { font-weight: 550; letter-spacing: .03em; }
footer .legal a { text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
footer .legal a:hover, footer .legal a:focus-visible { color: #fff; text-decoration-color: currentColor; }

.motion-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 36px; height: 36px; padding: 9px; color: #355364; background: #f8faf9ee; border: 1px solid #9fb2b955; border-radius: 50%; cursor: pointer; }
.motion-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }

html[data-motion='paused'] *, html[data-motion='paused'] *::before, html[data-motion='paused'] *::after { animation-play-state: paused !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion='paused'] .steps li { opacity: 1; }
html[data-motion='paused'] .thought-questions li { animation: none; }
html[data-visibility='hidden'] *, html[data-visibility='hidden'] *::before, html[data-visibility='hidden'] *::after { animation-play-state: paused !important; }

/* --------------------------------------------------------------------------
   Narrower screens
   -------------------------------------------------------------------------- */

@media (max-width: 1179px) {
  .immersive-hero { --instrument: min(86svh, 54vw); --seam: 64%; --seam-x: 64vw; }
}

/* Below the two-column layout the seam turns horizontal and crosses the sphere's
   centre, which flow.js measures, so paper holds the copy and night holds the note. */
@media (max-width: 900px) {
  .immersive-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 92px 0 70px;
    background: linear-gradient(180deg,
      var(--paper) 0 calc(var(--sphere-field-y) - var(--sphere-field-radius) * .78),
      #e9f0f5 calc(var(--sphere-field-y) - var(--sphere-field-radius) * .4),
      #a5b8c8 calc(var(--sphere-field-y) - var(--sphere-field-radius) * .08),
      #36566e calc(var(--sphere-field-y) + var(--sphere-field-radius) * .28),
      #0b2335 calc(var(--sphere-field-y) + var(--sphere-field-radius) * .82));
  }
  .immersive-hero::before {
    background:
      repeating-radial-gradient(circle at 50% var(--sphere-field-y), rgba(120, 150, 175, .09) 0 1px, transparent 1px 9px),
      radial-gradient(circle var(--sphere-field-radius) at 42% var(--sphere-field-y), rgba(255, 187, 126, .16), transparent 90%),
      radial-gradient(circle var(--sphere-field-radius) at 64% var(--sphere-field-y), rgba(64, 151, 245, .2), transparent 90%);
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* The parts of the copy join the hero's own column, so the answer can follow the
     sphere that received the words. */
  .immersive-hero .copy, .thought-stage { display: contents; }
  .immersive-hero h1, .promises, .immersive-hero .lead, .thought-form, .thought-result { margin-inline: var(--gutter); }
  .immersive-hero .hero-visual { order: 1; }
  .thought-result { order: 2; margin-top: 0; }
  .thought-result-title, .thought-reset { color: #fff; }
  .thought-reset { text-decoration-color: rgba(255, 255, 255, .45); }
  .thought-result .thought-note { color: var(--navy-muted); }
  .immersive-hero h1 { font-size: clamp(1.12rem, 4.6vw, 1.6rem); }
  .promises { margin-top: 14px; }
  .promise { font-size: clamp(2.1rem, 9vw, 3.4rem); }
  .promise-long { font-size: clamp(1.75rem, 7.2vw, 2.7rem); }
  .immersive-hero .lead { margin-top: 14px; font-size: 1rem; line-height: 1.5; }
  .thought-form { margin-top: 18px; }
  .thought-bar { padding-left: 16px; }
  .thought-bar input { font-size: 16px; }
  .thought-bar .button { padding: .75em 1.05em; font-size: .92rem; }
  .immersive-hero .hero-visual {
    position: relative;
    left: 50%;
    top: auto;
    width: min(118vw, 680px);
    margin: -6px 0 38px;
    scroll-margin-top: 72px;
    transform: translateX(-50%);
  }
  .node-popover { width: min(26rem, 76vw); padding: 11px 14px 13px; }
  .node-popover-body { font-size: .88rem; }
  .hero-slogan { left: var(--gutter); right: auto; bottom: 26px; }

  .services .section-intro { max-width: none; }
  .content-section h2 { font-size: clamp(2.1rem, 7.6vw, 3.25rem); }
  .method-flow { display: block; }
  .method-art { top: 0; z-index: 2; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 10px; background: linear-gradient(180deg, var(--navy) 88%, transparent); }
  .method-art svg { max-height: 38svh; }
  .method-art figcaption { display: none; }
  .steps li { min-height: 0; padding: 44px 0; opacity: .5; }
  .after-copy { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  footer .legal { text-align: left; }
}

/* On a phone the links fold into a panel under the bar; the bar keeps the mark, the
   other language and the action. */
@media (max-width: 780px) {
  header { top: 10px; gap: 8px; padding: 6px 6px 6px 14px; }
  .brand-logo { width: 106px; }
  .head-right { gap: 6px; margin-left: auto; }
  .language { background: none; padding: 0; }
  .language .active { display: none; }
  .nav-cta { padding: .66em 1.05em; font-size: .88rem; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--bar-active);
    background: rgba(18, 33, 48, .07);
    cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .nav-toggle path { transform-origin: 10px 10px; transition: transform .35s var(--ease); }
  header.is-open .nav-toggle-top { transform: translateY(3px) rotate(45deg); }
  header.is-open .nav-toggle-bottom { transform: translateY(-3px) rotate(-45deg); }
  .section-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    margin: 0;
    padding: 8px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--bar-edge), var(--bar-shadow);
    font-size: 1.05rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .4s var(--ease), visibility .25s;
  }
  header.is-open .section-nav { opacity: 1; visibility: visible; transform: none; }
  .section-nav::before { display: none; }
  .section-nav a { padding: .8em 1em; }
  .section-nav a[aria-current] { color: var(--bar-active); background: rgba(18, 33, 48, .07); }
  .reading-progress { left: 22px; right: 22px; }
}

@media (max-width: 680px) {
  .lead-detail, .scroll-link { display: none; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #offering-laboratory { display: flex; flex-direction: column; min-height: 0; padding: 22px 24px 30px; }
  #offering-laboratory .service-art { height: 220px; margin-bottom: 8px; }
  #offering-laboratory .service-pitch { font-size: 2.2rem; }
  .motion-toggle { right: 10px; bottom: 10px; width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .thought-questions li { animation-delay: 0s !important; }
  [data-reveal] { opacity: 1 !important; translate: none !important; }
  .steps li { opacity: 1; }
  .button:hover, .button:focus-visible, .service:hover, .service:focus-within { transform: none; }
}
