/* Moraire: "centred cinema" (chosen 27 Nov 2026). A dusk lake scene behind everything that deepens to
   blue hour as you scroll (assets/world.js); serif headlines, quiet panels, small corners, no gradients. */
:root {
  --bg: #10141f; --ink: #eef1f6; --soft: #b4bdcc; --line: rgba(238,241,246,.15); --accent: #f1d6a6; /* firefly light: the warm glow of the rising dots */
  --glass: color-mix(in srgb, var(--bg) 76%, transparent);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 5.5vw, 80px);
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.03; text-wrap: balance; }
h3 { margin: 0; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
h1 em, h2 em, .safe { font-style: italic; color: var(--soft); }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 400 1rem/1.4 var(--sans); color: var(--soft); }

/* The scene: one photo in a soft oval, fixed behind the site. Its grade and the dots come from world.js. */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene .frame { position: absolute; left: 0; right: 0; top: 0; height: 80vh; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 54% 52% at 50% 46%, #000 42%, transparent 100%);
          mask-image: radial-gradient(ellipse 54% 52% at 50% 46%, #000 42%, transparent 100%); }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; max-width: none; filter: brightness(.58) saturate(.72) contrast(1.06); }
.scene .cool, .scene .warm { position: absolute; inset: 0; }
.scene .cool { background: #23315e; mix-blend-mode: multiply; opacity: .46; }
.scene .warm { background: #ff9d6a; mix-blend-mode: soft-light; opacity: .3; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
main, footer { position: relative; z-index: 2; }

/* Quiet panels: dense text sits on frosted glass so it reads over the scene. */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Header: clear over the hero, a solid band once you scroll. */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background-color .3s ease, border-color .3s ease; }
.top.solid { background: color-mix(in srgb, var(--bg) 84%, transparent); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.top a { text-decoration: none; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.03em; }
.mark svg { width: 20px; height: 20px; }
.top nav { display: flex; align-items: center; gap: 30px; font-size: 0.95rem; }
.top nav a:not(.pill) { color: var(--soft); transition: color .16s var(--ease); }
.top nav a:not(.pill):hover, .top nav a[aria-current] { color: var(--ink); }
.pill { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 6px; background: var(--ink); color: var(--bg); font-weight: 500; transition: opacity .16s var(--ease); }
.pill:hover { opacity: .88; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 6px; border: 0; font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer; background: var(--ink); color: var(--bg); transition: transform .14s var(--ease), opacity .16s var(--ease); }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(0.98); }
.btn .arr { transition: transform .18s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(3px); } }
.btn.line { background: transparent; color: var(--ink); border: 1px solid rgba(238,241,246,.3); }
.link { font-weight: 500; text-decoration: underline; }
.src { display: block; margin-top: 8px; font: 400 0.8rem/1.45 var(--mono); color: var(--soft); }
.src a { color: inherit; }

/* Sections */
section { position: relative; }
.block { padding: clamp(110px, 17vh, 190px) 0 clamp(40px, 6vh, 70px); }
.block > .wrap > h2, .block .head h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.center { text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }
.lead { margin-top: 18px; max-width: 46ch; color: var(--soft); font-size: 1.1rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* 1. Hero: centred over the scene */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12vh 0 0; }
.hero .wrap { width: 100%; }
.hero h1 { margin-top: 20px; font-size: clamp(3rem, 6.4vw, 5.6rem); }
.hero .sub { margin: 22px auto 0; max-width: 36em; color: #c9d1dd; font-size: 1.12rem; }
.hero .row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* 2. The peak: 12% -> 35%, pinned while you scroll */
.offer { height: 300svh; }
.offer .pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; padding-bottom: clamp(150px, 24vh, 230px); }
.offer .words { text-align: center; font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; line-height: 0.92; font-size: clamp(4.2rem, min(22vw, 17svh), 13rem); text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.offer .w { display: block; opacity: 0; transform: translateY(40px) scale(0.96); will-change: transform, opacity; }
.offer .arrow { font-size: 0.5em; line-height: 1.2; color: var(--soft); }
.offer .after { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 72px); margin: 0 auto; width: fit-content; max-width: min(720px, calc(100% - 2 * var(--gutter))); padding: 16px 22px; text-align: center; color: #c9d1dd; font-size: clamp(1rem, 1.3vw, 1.12rem); opacity: 0; }
.offer .after b { color: var(--ink); font-weight: 500; }

/* 3. Sectors: the dots draw each business's icon in the stage */
.sectors .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sectors .card { padding: clamp(24px, 3vw, 40px); }
.sectors h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.sectors .intro { margin-top: 18px; color: var(--soft); max-width: 46ch; font-size: 1.08rem; }
.tabs { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tab { height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 0.95rem/1 var(--sans); cursor: pointer; transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease); }
.tab:hover { border-color: rgba(238,241,246,.5); }
.tab[aria-selected=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#sector-panel { margin-top: 30px; }
.agents { list-style: none; margin: 0; padding: 0; }
.agents li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; opacity: 0; transform: translateY(10px); animation: in .5s var(--ease) forwards; }
.agents li:nth-child(2) { animation-delay: .06s; } .agents li:nth-child(3) { animation-delay: .12s; }
.agents h3 { font-size: 1.2rem; }
.agents p { color: var(--soft); max-width: 52ch; }
.agents .ctl { font-size: 0.92rem; color: var(--accent); }
@keyframes in { to { opacity: 1; transform: none; } }
.catchall { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--soft); max-width: 52ch; }
.catchall .link { color: var(--ink); }
.stage { position: sticky; top: 120px; min-height: 440px; }
.stage .glyph-name { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 0.95rem; color: var(--soft); }

/* 4-5. Evidence and barriers */
.fact-list { list-style: none; margin: 40px 0 0; padding: 8px clamp(22px, 3vw, 40px); max-width: 860px; }
.center .fact-list { margin-left: auto; margin-right: auto; text-align: left; }
.fact-list li { display: grid; grid-template-columns: minmax(150px, 0.36fr) 1fr; gap: 8px clamp(20px, 4vw, 48px); align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.fact-list li:first-child { border-top: 0; }
.fact-list .n { font: 400 clamp(3rem, 5.6vw, 4.8rem)/0.9 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact-list li > div { padding-top: 0.4em; }
.fact-list li > div > p:first-child { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.45; color: var(--soft); max-width: 46ch; }
.fact-list b { color: var(--ink); font-weight: 500; }
.answer { margin: 40px auto 0; max-width: 30ch; font: 400 clamp(1.6rem, 2.8vw, 2.4rem)/1.15 var(--serif); letter-spacing: -0.015em; text-align: center; }

/* 6. What we do */
.svc { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: left; }
.svc li { padding: 30px 28px 32px; }
.svc li + li { border-left: 1px solid var(--line); }
.svc h3 { font: 400 1.75rem/1.1 var(--serif); letter-spacing: -0.01em; }
.svc p { margin-top: 12px; color: var(--soft); }
.svc .soon { display: inline-block; margin-top: 14px; font-size: 0.9rem; color: var(--accent); }
.svc li:nth-child(2) { transition-delay: .07s; } .svc li:nth-child(3) { transition-delay: .14s; } .svc li:nth-child(4) { transition-delay: .21s; }

/* 7. Your data, your systems */
.faq-intro { margin: 18px auto 0; color: var(--soft); max-width: 46ch; font-size: 1.08rem; }
.qs { margin-top: 40px; padding: 4px clamp(22px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); text-align: left; }
details { border-top: 1px solid var(--line); }
.qs > div > details:first-child { border-top: 0; }
summary { cursor: pointer; list-style: none; position: relative; padding: 22px 40px 22px 0; font-weight: 500; font-size: 1.08rem; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.3rem/1 var(--sans); color: var(--soft); transition: transform .2s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 22px; color: var(--soft); max-width: 56ch; }

/* 8. Talk to us */
.apply .grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.apply h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.apply .intro p { margin-top: 20px; color: var(--soft); max-width: 36ch; font-size: 1.08rem; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; padding: clamp(22px, 3vw, 36px); }
.field { display: grid; gap: 8px; }
.field.full, .form-foot, .thanks { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field label small { font-weight: 400; color: var(--soft); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: rgba(238,241,246,.04); border: 1px solid rgba(238,241,246,.2); border-radius: 6px; padding: 12px 14px; transition: border-color .16s var(--ease); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--soft); opacity: .75; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.form-foot p { font-size: 0.9rem; color: var(--soft); max-width: 36ch; }
.thanks { padding: 8px 0; }
.thanks h3 { font: 400 2rem/1.1 var(--serif); }
.thanks p { margin-top: 10px; color: var(--soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; margin: 0; font-size: 0.98rem; }
.form-error[hidden] { display: none; }
.btn[aria-busy=true] { opacity: .6; cursor: progress; }

/* The end of the page: room for the stars to form the mark above the footer. */
.night { height: 70vh; }
footer { padding: 26px 0 34px; font-size: 0.9rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--soft); }
footer a { color: var(--soft); }

/* About page */
.ahero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16vh 0 0; }
.ahero .wrap { width: 100%; }
.ahero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.ahero p { margin: 24px auto 0; max-width: 44ch; color: #c9d1dd; font-size: clamp(1.08rem, 1.4vw, 1.25rem); }
.people .wrap { display: grid; gap: 20px; }
.person { display: grid; grid-template-columns: minmax(220px, 0.62fr) 1.38fr; gap: clamp(28px, 5vw, 72px); padding: clamp(24px, 3.5vw, 48px); }
.photo { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: rgba(238,241,246,.06); align-self: start; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.person h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
.person .role { margin-top: 12px; font-size: 1rem; color: var(--accent); }
.person .bio { margin-top: 22px; max-width: 58ch; font-size: 1.06rem; color: #d3d9e3; }
.person .sub-h { margin-top: 30px; font: 500 1rem/1.3 var(--sans); color: var(--soft); }
.person ul { margin: 12px 0 0; padding: 0; list-style: none; }
.person li { padding: 12px 0; border-top: 1px solid var(--line); }
.person .li { margin-top: 24px; display: inline-block; }
.plist { margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; text-align: left; }
.plist li { padding: 30px 28px; }
.plist li:nth-child(even) { border-left: 1px solid var(--line); }
.plist li:nth-child(n+3) { border-top: 1px solid var(--line); }
.plist h3 { font: 400 1.5rem/1.15 var(--serif); }
.plist p { margin-top: 10px; color: var(--soft); }
.cta-end { padding: clamp(100px, 16vh, 180px) 0 0; text-align: center; }
.cta-end h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); max-width: 16ch; margin: 0 auto; }
.cta-end .btn { margin-top: 32px; }

/* Responsive */
@media (max-width: 1000px) {
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc li:nth-child(3) { border-left: 0; }
  .svc li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sectors .grid, .apply .grid, .person { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; min-height: 280px; order: -1; }
  .qs, .plist { grid-template-columns: 1fr; }
  .plist li:nth-child(even) { border-left: 0; }
  .plist li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .top nav a:not(.pill) { display: none; }
  .scene .frame { height: 56vh; -webkit-mask-image: radial-gradient(ellipse 80% 52% at 50% 46%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 80% 52% at 50% 46%, #000 45%, transparent 100%); }
  .hero, .ahero { justify-content: flex-end; padding: 0 0 8vh; }
  .svc, form { grid-template-columns: 1fr; }
  .svc li + li { border-left: 0; border-top: 1px solid var(--line); }
  .fact-list li { grid-template-columns: 1fr; }
  .photo { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .agents li { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .offer { height: auto; }
  .offer .pin { position: relative; height: auto; min-height: 100svh; }
  .offer .w, .offer .after { opacity: 1 !important; transform: none !important; }
}
