/* Lumae Consulting
   Light paper, soft navy ink, one quiet blue, and light itself as the only flourish. Prata for the
   few large words and Albert Sans for everything else; in Arabic, Amiri and IBM Plex Sans Arabic.
   The page is set on the golden ratio: columns of 38.2 and 61.8, type that steps by phi. Rules and
   air do the separating; there are no boxes. Every direction is logical (inline, block), so the
   Arabic pages are a mirror of the English ones, not a second stylesheet. */

/* ---------- type ---------- */
@font-face { font-family: "Prata"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/prata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/albert-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/albert-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/albert-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; src: url("../fonts/amiri-arabic-400-headings.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); }

:root {
  --paper: #FBFCFD; --room: #EEF0F3; --ink: #1E2A45; --soft: #5F6A84; --faint: #A4ADC2; --rule: #E2E7F0;
  /* the blue is Lumae's own, taken from the logo (#004698) */
  --blue: #2D6CC0; --blue-ink: #004698; --blue-soft: #E5EEF9;
  /* understand, plan, coordinate, oversee, deliver: one tint of light for each principle; the seven
     services take the same five with a peach and a mint (site.js, TINTS7) */
  --tint-1: #6BD1EB; --tint-2: #7A9EFA; --tint-3: #C799F2; --tint-4: #F799B8; --tint-5: #FFCC73; --tint-6: #FFAD8C; --tint-7: #8CDBAD;
  /* the glint on a line and the sheen on a button, as r, g, b */
  --glint-1: 236, 176, 168; --glint-2: 246, 232, 206; --glint-3: 168, 192, 236;
  --sheen-0: 255, 154, 138; --sheen-1: 255, 212, 138; --sheen-2: 168, 196, 255; --sheen-3: 201, 180, 255;
  --serif: "Prata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --phi: 1.618;
  /* the type scale steps by the square root of phi, so every second step is phi */
  --fs-0: 0.875rem;
  --fs-1: 1.0625rem;
  --fs-2: clamp(1.18rem, 1.08rem + 0.35vw, 1.35rem);
  --fs-3: clamp(1.45rem, 1.2rem + 0.9vw, 1.72rem);
  --fs-4: clamp(1.9rem, 1.4rem + 1.9vw, 2.78rem);
  --fs-5: clamp(2.5rem, 1.5rem + 4.3vw, 4.5rem);
  --g: clamp(18px, 4vw, 64px);
  --head: 96px;
  --air: clamp(64px, 9vw, 132px);
  --max: 1320px;
  --spectrum: linear-gradient(90deg, #ff9a8a, #ffd48a, #fff6dd, #b8f0d6, #a8c4ff, #c9b4ff);
  /* the titles: a quiet lapis that settles into ink, as the client's name on the cover of the proposal */
  --lapis: linear-gradient(to bottom right, #3556AE 0%, #28407F 55%, #1E2A45 100%);
  color-scheme: light;
}
/* in Arabic a title starts at the top right, so its lapis does too */
[dir="rtl"] { --lapis: linear-gradient(to bottom left, #3556AE 0%, #28407F 55%, #1E2A45 100%); }
:lang(ar) {
  --serif: "Amiri", "Prata", Georgia, serif;
  --sans: "IBM Plex Sans Arabic", "Albert Sans", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block-start: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--fs-1); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 4px; border-radius: 2px; }
::selection { background: rgba(0, 70, 152, 0.16); }
main:focus { outline: none; }
[hidden] { display: none !important; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
/* the titles of the page catch the light: lapis at their start, settling into ink (--lapis). While
   they rise, each letter moves on its own, so each carries its own piece of the one gradient, placed
   by rise.js as if the title were still whole. The room below, given back by the margin, keeps the
   tails of g, j, p and y inside the box the gradient paints */
main h1, main h2:not(.label) { background-image: var(--lapis); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-block-end: 0.26em; margin-block-end: -0.26em; }
main :is(h1, h2:not(.label)).rise { background-image: none; -webkit-text-fill-color: currentColor; }
main :is(h1, h2:not(.label)).rise .rr { background-image: var(--lapis); background-repeat: no-repeat; background-size: var(--tw, 100%) var(--th, 100%); background-position: var(--tx, 0) var(--ty, 0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h1 { font-size: var(--fs-5); line-height: 1.04; letter-spacing: -0.014em; }
h2 { font-size: var(--fs-4); line-height: 1.12; letter-spacing: -0.008em; }
h3 { font-size: var(--fs-3); line-height: 1.2; }
:lang(ar) h1 { line-height: 1.3; letter-spacing: 0; }
:lang(ar) h2, :lang(ar) h3 { line-height: 1.45; letter-spacing: 0; }
p { text-wrap: pretty; }
.lede { font-size: var(--fs-2); line-height: 1.55; color: var(--soft); max-width: 36ch; }
.label { font-family: var(--serif); font-size: var(--fs-1); color: var(--soft); }
.muted { color: var(--soft); }
.go { margin-block-start: 32px; }
.after-label { margin-block-start: 14px; }
.aside { margin-block-start: 18px; max-width: 36ch; }
.name-text { font-size: var(--fs-3); line-height: 1.35; max-width: 30ch; }

/* words still waiting for the client */
mark.ph { overflow-wrap: anywhere; background: rgba(0, 70, 152, 0.08); color: var(--blue-ink); padding: 0.05em 0.25em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 4px; }
.skip:focus { inset-block-start: 12px; color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }
.gr { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: clamp(24px, 4vw, 72px); row-gap: 28px; align-items: start; }
.sec { padding-block: var(--air); }
.sec-head { margin-block-end: clamp(32px, 4vw, 56px); }
.sec-head h2 { max-width: 20ch; }
.stack > * + * { margin-block-start: 1.1em; }

/* ---------- header ---------- */
.top { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 20; height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: max(var(--g), calc((100% - var(--max)) / 2 + var(--g))); }
/* the header stays with the page (site.js, section 1). At the top it is transparent over the light.
   Once the page has moved it becomes a pane of clear glass: the page passes under it, softened and
   a touch brighter, and the logo steps down. Its lower edge is cut, so it catches the light: a pale
   line along it, a faint spectrum that gathers under the pointer as it comes near (red held back,
   as in the rays), and one glint that runs along it each time the pane slides back in. It slides
   away while the page is read downwards and comes back as soon as it is scrolled up. */
.top.is-stuck { height: calc(var(--head) - 20px); background: linear-gradient(rgba(251, 252, 253, 0.74), rgba(251, 252, 253, 0.6)); -webkit-backdrop-filter: saturate(1.5) brightness(1.04) blur(18px); backdrop-filter: saturate(1.5) brightness(1.04) blur(18px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.95), 0 1px 0 rgba(30, 42, 69, 0.07), 0 18px 36px -24px rgba(30, 42, 69, 0.22); }
.top.is-stuck .logo { height: 44px; }
.top.is-away { transform: translateY(-100%); }
/* the cut edge: the spectrum it throws where the pointer is (--gx across, --gn how near) */
.top::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1.5px; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--glint-1), 0.55) 18%, rgba(var(--glint-2), 1) 46%, rgba(255, 255, 255, 1) 52%, rgba(var(--glint-3), 0.9) 70%, transparent) no-repeat;
  background-size: min(46vw, 560px) 100%; background-position: var(--gx, 50%) 0; filter: blur(0.4px); }
.top.is-stuck::after { opacity: calc(0.18 + 0.82 * var(--gn, 0)); }
/* the glint that runs along the edge as the pane comes back */
.top::before { content: ""; position: absolute; inset-block-end: -1.5px; inset-inline-start: 0; width: 30%; height: 2px; pointer-events: none; opacity: 0; background: var(--spectrum); filter: blur(0.6px); }
@media (prefers-reduced-motion: no-preference) {
  .top { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s ease-out, background-color 0.3s ease-out, box-shadow 0.3s ease-out; }
  .top .logo { transition: height 0.3s ease-out; }
  .top::after { transition: opacity 0.35s ease-out; }
  .top.is-back::before { animation: glint 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s 1 both; }
  [dir="rtl"] .top.is-back::before { animation-name: glint-rtl; }
}
.mark { display: inline-flex; text-decoration: none; }
/* the logo, redrawn as a vector (assets/img/lumae-logo.svg), so it can stand larger and stays sharp:
   it is where the eye starts on every page, top left, and where it ends, in the footer */
.logo { height: 58px; width: auto; }
.foot .logo { height: 76px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a { text-decoration: none; font-size: 15px; padding-block: 6px; border-block-end: 1.5px solid transparent; transition: color 0.15s ease-out, border-color 0.15s ease-out; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-ink); border-block-end-color: currentColor; }
.lang { font-size: 16px !important; }
.lang:lang(en) { font-family: "Albert Sans", sans-serif; }
.menu { display: none; font: inherit; font-size: 15px; color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; border-block-end: 1.5px solid transparent; }
.menu:hover { color: var(--blue-ink); border-block-end-color: currentColor; }

@media (max-width: 880px) {
  .menu { display: inline-block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px; padding: calc(var(--head) + 24px) var(--g) 48px; background: var(--paper); visibility: hidden; opacity: 0; transition: opacity 0.25s ease-out, visibility 0s linear 0.25s; }
  .nav ul { flex-direction: column; gap: 10px; }
  .nav a { font-family: var(--serif); font-size: var(--fs-4); line-height: 1.25; border: 0; }
  .lang { font-family: var(--sans); font-size: 18px !important; border-block-end: 1.5px solid currentColor !important; }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity 0.25s ease-out; }
  /* the open menu covers the screen, so the header's pane steps aside for it */
  .nav-open .top { position: fixed; transform: none; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .nav-open body { overflow: hidden; }
}

/* ---------- light ---------- */
.lit { position: relative; isolation: isolate; background: linear-gradient(var(--room), var(--paper)); overflow: hidden; }
.lightfield { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lightfield canvas { width: 100%; height: 100%; }
[dir="rtl"] .lightfield canvas { transform: scaleX(-1); }
/* further down a page the light is set into the paper, and only where it takes part in what a
   section says: across the principles, by the form, along his career */
.lit-soft { background: var(--paper); }
/* the hairlines nearest the pointer catch its light (site.js); drawn over the page, under the header */
.edges { position: fixed; inset: 0; z-index: 15; width: 100%; height: 100%; pointer-events: none; }
/* a link's line, and the line a field is written on, catch the light as the button's face does */
.more, .nav a, .field { position: relative; }
.more::before, .nav a::before, .field::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -1.5px; height: 1.5px; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(var(--glint-1), 0.9) 22%, rgba(var(--glint-2), 1) 50%, rgba(var(--glint-3), 0.9) 78%, transparent) -70% 0 / 40% 100% no-repeat; }
.field::after { inset-block-end: 0; }
/* the strip above the five principles and the seven services, where their panes of tinted glass are */
.glow { height: clamp(220px, 24vw, 340px); margin-block-start: clamp(28px, 3.4vw, 48px); }
.glow-strip { height: clamp(150px, 14vw, 200px); margin-block-start: clamp(36px, 4vw, 60px); }
.glow-strip + :is(.five, .seven) { margin-block-start: 6px; }
/* down the approach page, a principle's pane stands where its tint was */
.steps-sec.has-light .step-n::after { visibility: hidden; }

/* ---------- the opening of the home page ---------- */
.hero { min-height: max(100svh, 640px); display: flex; align-items: center; padding-block: calc(var(--head) + 40px) 72px; }
.hero-in { width: min(46rem, 56vw); }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.9vw, 5.4rem); }
.hero .lede { margin-block-start: clamp(20px, 2.6vw, 34px); }
.act { margin-block-start: clamp(28px, 4vw, 52px); display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }

/* ---------- the opening of every other page ---------- */
.phero { min-height: clamp(460px, 64svh, 660px); display: flex; align-items: flex-end; padding-block: calc(var(--head) + 64px) clamp(56px, 7vw, 96px); }
.phero h1 { max-width: 16ch; }
.phero .lede { margin-block-start: 22px; }
.phero-in { width: min(46rem, 62vw); }
.phero-mid { min-height: clamp(420px, 56svh, 600px); }
.phero-tall { min-height: 82svh; }

/* ---------- photographs have depth ----------
   Each photograph sits in its frame a little larger than the frame and moves more slowly than the
   page, so it has depth. A wide photograph across a section also comes in close and draws back to
   its full view as it is scrolled through, and its frame opens from a window a little narrower than
   the column to the column's full width as it comes up the screen. site.js (section 2) sets --pz
   (how close), --py (the drift) and --pc (how far the frame is still closed) from the scroll, eased;
   with reduced motion the photographs stand still. */
.depth { display: block; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js .depth img { scale: var(--pz, 1.1); translate: 0 var(--py, 0px); will-change: scale, translate; }
  .js :is(.photo, .art-lead, .post-lead) .depth { clip-path: inset(calc(var(--pc, 0) * 5%) calc(var(--pc, 0) * 8%)); will-change: clip-path; }
}
/* the hairlines between sections are drawn across as they come into view, the glint riding their tip */
@media (prefers-reduced-motion: no-preference) {
  .motion .rule { scale: 0 1; transform-origin: left center; }
  [dir="rtl"].motion .rule { transform-origin: right center; }
  .motion .rule.is-lit { scale: 1 1; transition: scale 1.8s cubic-bezier(0.65, 0, 0.35, 1); }
}
/* from page to page: the page in view washes out into the light, and the next develops from it;
   the header stays where it is */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .top { view-transition-name: top; }
  ::view-transition-old(root) { animation: wash-out 0.42s cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: develop-in 0.95s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes wash-out { to { opacity: 0; filter: brightness(1.45) saturate(0.6) blur(4px); } }
@keyframes develop-in { from { opacity: 0; filter: brightness(1.5) saturate(0.5) blur(6px); } }

/* ---------- buttons and links ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 17px 26px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: background-color 0.18s ease-out; }
.btn:hover { color: #fff; background: #26365A; }
/* light catches the button's face as the pointer arrives */
.btn::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 46%; z-index: -1; background: linear-gradient(100deg, transparent 0%, rgba(var(--sheen-0), 0.0) 10%, rgba(var(--sheen-1), 0.28) 30%, rgba(255, 255, 255, 0.36) 46%, rgba(var(--sheen-2), 0.3) 62%, rgba(var(--sheen-3), 0.0) 85%, transparent 100%); transform: translateX(-130%) skewX(-12deg); }
[dir="rtl"] .btn::after { transform: translateX(130%) skewX(12deg); }
.more { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 500; text-decoration: none; border-block-end: 1.5px solid currentColor; padding-block-end: 2px; }
.more::after { content: "→"; }
[dir="rtl"] .more::after { content: "←"; }

/* ---------- a rule catches the light as it comes into view ---------- */
.rule { position: relative; height: 1.5px; border: 0; margin: 0; background: var(--rule); overflow: hidden; }
.rule::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 22%; background: var(--spectrum); opacity: 0; transform: translateX(-110%); }

/* ---------- lists without boxes ---------- */
.lines > li { border-block-start: 1.5px solid var(--rule); padding-block: clamp(22px, 2.6vw, 34px); }
.lines > li:last-child { border-block-end: 1.5px solid var(--rule); }
.svc { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: clamp(20px, 3vw, 48px); row-gap: 8px; }
.svc h3 { font-size: var(--fs-3); }
.svc .q { font-family: var(--serif); font-size: var(--fs-2); color: var(--blue-ink); line-height: 1.35; }
.svc p + p { margin-block-start: 10px; }
.n { font-family: var(--serif); color: var(--soft); font-size: 0.8em; margin-inline-end: 0.7em; }

/* ---------- the firm, in short ---------- */
.firm-side { position: sticky; inset-block-start: calc(var(--head, 96px) + 24px); align-self: start; }
.firm-pic { margin: 28px 0 0; }
.firm-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.firm-text p { font-size: var(--fs-2); line-height: 1.6; max-width: 40ch; }
.firm-text p + p { margin-block-start: 16px; }
.firm-text .more { margin-block-start: 28px; }

/* placeholders are written in English; on Arabic pages they keep their own direction */
[dir="rtl"] mark.ph { direction: ltr; unicode-bidi: isolate; }

/* ---------- articles and videos ---------- */
.posts > li { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: clamp(20px, 3vw, 48px); align-items: baseline; }
.posts time { font-size: var(--fs-0); color: var(--soft); }
.posts h2 { font-size: var(--fs-3); }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts p { margin-block-start: 8px; color: var(--soft); max-width: 52ch; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.video figcaption { margin-block-start: 14px; }
.video h3 { font-size: var(--fs-2); line-height: 1.35; }
.video p { margin-block-start: 6px; color: var(--soft); font-size: var(--fs-0); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--room) center / cover no-repeat; border-radius: 4px; cursor: pointer; overflow: hidden; }
.yt::after { content: ""; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(251, 252, 253, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E2A45' d='M9 7.5v9l7.5-4.5z'/%3E%3C/svg%3E") center / 30px no-repeat; transition: transform 0.18s ease-out; }
.yt:hover::after { transform: scale(1.06); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-empty { cursor: default; }
.yt.is-empty::after { display: none; }

/* ---------- an article ---------- */
.article { padding-block: calc(var(--head) + 72px) var(--air); }
.article header { max-width: 46rem; }
.article h1 { font-size: var(--fs-5); }
.article .meta { margin-block-start: 20px; color: var(--soft); font-size: var(--fs-0); }
.prose { max-width: 40rem; margin-block-start: clamp(40px, 5vw, 64px); font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-block-start: 1.1em; }
.prose h2 { font-size: var(--fs-3); margin-block-start: 1.8em; }
.prose h3 { font-size: var(--fs-2); margin-block-start: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.2em; list-style: revert; }
.prose blockquote { margin: 0; padding-inline-start: 22px; border-inline-start: 1.5px solid var(--blue); font-family: var(--serif); font-size: var(--fs-2); }
.prose img { border-radius: 4px; }
.back { margin-block-start: clamp(48px, 6vw, 80px); }

/* ---------- services page ---------- */
.svc-full + .svc-full { border-block-start: 1.5px solid var(--rule); }
.svc-full { padding-block: var(--air); }
.svc-q, .svc-full .q { font-family: var(--serif); font-size: var(--fs-3); color: var(--blue-ink); line-height: 1.3; max-width: 24ch; margin-block-start: 14px; }
.parts > div { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: clamp(20px, 3vw, 40px); border-block-start: 1.5px solid var(--rule); padding-block: 22px; }
.parts > div:last-child { border-block-end: 1.5px solid var(--rule); }
.parts dt { color: var(--soft); font-size: var(--fs-0); padding-block-start: 3px; }

/* ---------- approach: each step catches its own colour of the light ---------- */
.steps > li { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: clamp(20px, 3vw, 48px); }
.step-n { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: var(--fs-4); line-height: 1; color: var(--ink); }
.step-n::after { content: ""; display: block; width: 44px; height: 6px; border-radius: 3px; background: var(--tint, #fff); filter: blur(1.5px); opacity: 0.9; }
.steps h3 { font-size: var(--fs-3); }
.steps p { margin-block-start: 10px; color: var(--soft); max-width: 46ch; }
.principles li { font-family: var(--serif); font-size: var(--fs-3); line-height: 1.35; }

/* ---------- about ---------- */
.founder { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: clamp(24px, 4vw, 72px); align-items: start; }
.portrait { position: relative; isolation: isolate; aspect-ratio: 1 / 1.272; border-radius: 4px; overflow: hidden; background: linear-gradient(var(--room), #F6F7F9); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; inset-block-end: 14px; inset-inline-start: 16px; font-size: var(--fs-0); }
.founder h2 { font-size: var(--fs-4); }
.founder .role { color: var(--soft); margin-block-start: 6px; }
.founder .bio { margin-block-start: 28px; max-width: 46ch; }
.founder .bio p + p { margin-block-start: 14px; }
.brief > div { display: grid; grid-template-columns: 38.2fr 61.8fr; border-block-start: 1.5px solid var(--rule); padding-block: 18px; }
.brief > div:last-child { border-block-end: 1.5px solid var(--rule); }
.brief dt { color: var(--soft); font-size: var(--fs-0); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: clamp(24px, 4vw, 72px); row-gap: 40px; align-items: start; }
/* while the form is off (site.enquiries), the details take the whole row */
.contact-grid:not(:has(form)) { grid-template-columns: 1fr; }
.direct > div { border-block-start: 1.5px solid var(--rule); padding-block: 16px; }
.direct > div:last-child { border-block-end: 1.5px solid var(--rule); }
.direct { margin-block-start: 16px; }
.direct dt { font-size: var(--fs-0); color: var(--soft); margin-block-end: 4px; }
.direct dd { font-size: var(--fs-1); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { grid-column: 1 / -1; display: grid; gap: 8px; }
.field.half { grid-column: auto; }
.field label { font-size: var(--fs-0); color: var(--soft); }
.opt { color: var(--soft); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-block-end: 1.5px solid #C9D1E0; border-radius: 0; padding: 10px 0; transition: border-color 0.15s ease-out; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-block-end-color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-block-end-color: var(--blue); box-shadow: 0 1.5px 0 var(--blue); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-end { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-block-start: 6px; }
.form-note { font-size: var(--fs-0); color: var(--soft); }
.form-note.small { flex-basis: 100%; }
/* why a message came back unsent: the one line that must be read before anything else in the form */
.not-sent { grid-column: 1 / -1; padding-inline-start: 16px; border-inline-start: 2px solid #C8553D; color: var(--ink); }
.not-sent:focus { outline: none; }
/* reCAPTCHA's own badge is replaced by the line under the Send button, as Google allows */
.grecaptcha-badge { visibility: hidden; }

/* ---------- footer ---------- */
.foot { border-block-start: 1.5px solid var(--rule); padding-block: clamp(56px, 7vw, 96px) 28px; background: var(--paper); }
.foot-line { margin-block-start: 16px; color: var(--soft); max-width: 30ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-h { font-family: var(--serif); font-size: var(--fs-1); color: var(--soft); margin-block-end: 12px; }
.foot-list li + li { margin-block-start: 6px; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-text { color: var(--ink); }
.foot-text + .foot-text { margin-block-start: 8px; color: var(--soft); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-block-start: clamp(48px, 6vw, 80px); padding-block-start: 22px; background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--g)) 1.5px; font-size: var(--fs-0); color: var(--soft); }

/* ---------- agree or disagree to analytics: a line on the paper at the foot of the screen ---------- */
.consent { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 35; background: rgba(251, 252, 253, 0.97); border-block-start: 1.5px solid var(--rule); }
.consent-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; padding-block: 18px; padding-inline-end: calc(var(--g) + 64px); }
.consent p { font-size: var(--fs-0); color: var(--soft); max-width: 76ch; }
.consent-act { display: flex; align-items: center; gap: 24px; }
.consent .btn { padding: 13px 22px; }
.consent-no, .linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.consent-no { font-size: 15px; color: var(--ink); }
.consent-no:hover, .linkish:hover { color: var(--blue-ink); }
.asking .wa { inset-block-end: 96px; }

/* ---------- WhatsApp, on every page ---------- */
.wa { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 30; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(30, 42, 69, 0.08), 0 10px 28px rgba(30, 42, 69, 0.12); transition: color 0.18s ease-out, box-shadow 0.18s ease-out; }
.wa:hover { color: var(--blue-ink); box-shadow: 0 1px 2px rgba(30, 42, 69, 0.08), 0 12px 32px rgba(58, 105, 216, 0.22); }

/* ---------- what Lumae manages ---------- */
/* a shape of glass for each item, drawn by the light behind it; the names stay short */
.shape { display: block; width: clamp(96px, 9vw, 132px); aspect-ratio: 1; }
/* a shape and the photograph it stands half in front of (partials/shot.njk), shown whole at 16:9 so
   nobody is cut off: the glass sits over the photograph's top corner, so most of its light falls on
   the paper beside it */
.shot { --sw: clamp(96px, 9vw, 132px); --pw: 100%; display: block; margin-block-end: clamp(18px, 2vw, 24px); }
.shot-lg { --sw: clamp(120px, 11vw, 168px); --pw: 100%; margin-block-end: clamp(28px, 3vw, 44px); }
.shot .shape { width: var(--sw); }
.shot-pic { display: block; width: min(calc(100% - var(--sw) * 0.42), var(--pw)); aspect-ratio: 16 / 9; margin-block-start: calc(var(--sw) * -0.48); margin-inline-start: calc(var(--sw) * 0.4); }
.shot-pic img { width: 100%; height: 100%; object-fit: cover; }
.pics-ready .shot-pic img { visibility: hidden; }
.objects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 36px); row-gap: clamp(32px, 3.4vw, 52px); margin-block-start: clamp(36px, 4vw, 60px); }
.objects > li { border-block-start: 1.5px solid var(--rule); padding-block-start: clamp(18px, 2vw, 26px); }
.objects a { display: block; color: inherit; text-decoration: none; }
.objects .n { display: block; margin: 0; font-size: var(--fs-0); color: var(--soft); }
.objects .name { display: block; margin-block-start: 4px; font-family: var(--serif); font-size: var(--fs-2); line-height: 1.3; max-width: 16ch; }
.objects a:hover .name { color: var(--blue-ink); }
.objects > .objects-go { border: 0; align-self: end; }
/* the four reasons on the home page, two by two so each photograph is large */
.objects.pairs { grid-template-columns: 1fr 1fr; }
.objects.pairs .shot { --pw: 520px; }

/* ---------- the content template: what the firm is, in numbers, why choose it ---------- */
.phero .label { margin-block-end: clamp(14px, 2vw, 22px); }
.overview p { max-width: 58ch; color: var(--soft); }
.overview p + p { margin-block-start: 14px; }
.overview .sec-head + p { font-size: var(--fs-2); line-height: 1.55; color: var(--ink); max-width: 40ch; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.numbers > div { padding-inline: 0 24px; }
.numbers > div + div { border-inline-start: 1.5px solid var(--rule); padding-inline-start: 24px; }
.numbers dt { font-family: var(--serif); font-size: var(--fs-5); line-height: 1; }
.numbers dd { margin-block-start: 12px; font-size: var(--fs-0); color: var(--soft); max-width: 22ch; }
.leadership-label { margin-block-end: clamp(28px, 3.4vw, 48px); }
.cta-band h2 { max-width: 20ch; }
/* a photograph across the column (partials/photo.njk): no frame, only the paper around it */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; background: var(--rule); }
.phero + .photo { padding-block-start: clamp(40px, 5vw, 72px); }

/* ---------- five principles, each with its tint of light ---------- */
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 36px); margin-block-start: clamp(40px, 5vw, 72px); }
.five > li { border-block-start: 1.5px solid var(--rule); padding-block-start: 22px; position: relative; }
.five > li::before { content: ""; position: absolute; inset-block-start: -3px; inset-inline-start: 0; width: 46px; height: 6px; border-radius: 3px; background: var(--tint); filter: blur(1.5px); opacity: 0.85; }
.five .n { display: block; margin-block-end: 10px; }
.five h3 { font-size: var(--fs-3); }
.five p { margin-block-start: 10px; color: var(--soft); font-size: var(--fs-0); line-height: 1.6; }
.five-go { margin-block-start: clamp(32px, 4vw, 48px); }

/* ---------- the seven services in a row, each with its tint of light ---------- */
.seven { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: clamp(14px, 1.8vw, 28px); row-gap: 28px; margin-block-start: clamp(40px, 5vw, 72px); }
.seven > li { border-block-start: 1.5px solid var(--rule); padding-block-start: 22px; position: relative; }
.seven > li::before { content: ""; position: absolute; inset-block-start: -3px; inset-inline-start: 0; width: 46px; height: 6px; border-radius: 3px; background: var(--tint); filter: blur(1.5px); opacity: 0.85; }
.seven a { display: block; text-decoration: none; }
.seven .n { display: block; margin: 0 0 8px; font-size: var(--fs-0); }
.seven .name { display: block; font-family: var(--serif); font-size: var(--fs-1); line-height: 1.35; }
.seven a:hover .name { color: var(--blue-ink); }

/* ---------- a career, read along one line ---------- */
.career { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-block-start: clamp(40px, 5vw, 72px); padding-block-start: 30px; }
.career::before { content: ""; position: absolute; inset-block-start: 4px; inset-inline: 0; height: 1.5px; background: linear-gradient(90deg, var(--rule), var(--blue-soft) 60%, var(--blue) 100%); }
[dir="rtl"] .career::before { background: linear-gradient(-90deg, var(--rule), var(--blue-soft) 60%, var(--blue) 100%); }
.career > li { position: relative; }
/* with the light, the line is a rod of frosted glass drawn behind it; without, a plain line */
.career-line { position: relative; margin-block-start: clamp(40px, 5vw, 72px); }
.career-line .career { margin-block-start: 0; }
.career-line .career::before { display: none; }
.career-rod { position: absolute; inset-block-start: -2.25px; inset-inline: 0; height: 14px; background: linear-gradient(90deg, var(--rule), var(--blue-soft) 60%, var(--blue)) center / 100% 1.5px no-repeat; }
[dir="rtl"] .career-rod { background-image: linear-gradient(-90deg, var(--rule), var(--blue-soft) 60%, var(--blue)); }
.has-light .career-rod { background: none; }
.career > li::before { content: ""; position: absolute; inset-block-start: -30px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--faint); }
.career > li:last-child::before { background: var(--blue-ink); border-color: var(--blue-ink); }
.career :is(h3, h4) { font-family: var(--serif); font-weight: 400; font-size: var(--fs-2); line-height: 1.3; }
.career p { margin-block-start: 8px; color: var(--soft); font-size: var(--fs-0); line-height: 1.55; }

/* ---------- services page ---------- */
.sec-tight { padding-block-end: clamp(48px, 6vw, 88px); }
.intro p { font-size: var(--fs-2); line-height: 1.6; max-width: 44ch; }
.intro p + p { margin-block-start: 16px; }
/* each service on its page: the photograph gets half the width, so it shows large */
.area > .gr { grid-template-columns: 1fr 1fr; }
.area h2 { font-size: var(--fs-4); margin-block-start: 10px; max-width: 18ch; }
.area .svc-q { font-size: var(--fs-2); max-width: 30ch; }
.list-h { font-family: var(--sans); font-size: var(--fs-0); color: var(--soft); margin-block-end: 14px; padding-block-start: 6px; }
.ticks > li { position: relative; padding-block: 13px; padding-inline-start: 26px; }
.ticks > li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 1.45em; width: 12px; height: 1.5px; background: var(--blue); }
.note { margin-block-start: 22px; padding-inline-start: 18px; border-inline-start: 1.5px solid var(--blue); color: var(--soft); max-width: 50ch; }
.sectors { margin-block-start: 22px; }
.aside-wide { margin-block-start: 22px; max-width: 52ch; }

/* ---------- about page ---------- */
.bio p { max-width: 58ch; }
.bio p:first-child { font-size: var(--fs-2); line-height: 1.6; }
.bio p + p { margin-block-start: 16px; }
.founder .bio { margin-block-start: 0; }
.founder-name { font-size: var(--fs-4); }
.bio .role { color: var(--soft); margin-block: 6px 26px; }
.leader-more { margin-block-start: clamp(56px, 7vw, 104px); }
.leader-more .career { margin-block-start: clamp(28px, 3.4vw, 48px); }
.edu > li { display: grid; grid-template-columns: 38.2fr 61.8fr; column-gap: clamp(20px, 3vw, 48px); }
.edu :is(h3, h4) { font-family: var(--serif); font-weight: 400; font-size: var(--fs-3); line-height: 1.2; }
.edu p + p { margin-block-start: 6px; }
.years { color: var(--soft); font-size: var(--fs-0); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- motion, only for those who want it ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn:hover::after, .btn:focus-visible::after { transform: translateX(260%) skewX(-12deg); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
  [dir="rtl"] .btn:hover::after, [dir="rtl"] .btn:focus-visible::after { transform: translateX(-260%) skewX(12deg); }
  .rule.is-lit::after { animation: glint 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s 1 both; }
  [dir="rtl"] .rule.is-lit::after { animation-name: glint-rtl; }
  .more:hover::before, .nav a:hover::before { animation: catch 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .field:focus-within::after { animation: catch 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
  [dir="rtl"] :is(.more, .nav a)::before, [dir="rtl"] .field::after { animation-direction: reverse; }
}
@keyframes catch { 0% { opacity: 0; background-position: -70% 0; } 30%, 70% { opacity: 1; } 100% { opacity: 0; background-position: 170% 0; } }
@keyframes glint { 0% { opacity: 0; transform: translateX(-110%); } 18% { opacity: 0.9; } 100% { opacity: 0; transform: translateX(560%); } }
@keyframes glint-rtl { 0% { opacity: 0; transform: translateX(110%); } 18% { opacity: 0.9; } 100% { opacity: 0; transform: translateX(-560%); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .objects { grid-template-columns: 1fr 1fr; }
  .five { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .seven { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 36px; }
  .career { grid-template-columns: 1fr 1fr; row-gap: 26px; column-gap: 40px; padding-block-start: 0; padding-inline-start: 28px; }
  .career::before { inset-block: 6px; inset-inline-start: 4px; inset-inline-end: auto; width: 1.5px; height: auto; background: linear-gradient(180deg, var(--rule), var(--blue-soft) 60%, var(--blue) 100%); }
  [dir="rtl"] .career::before { background: linear-gradient(180deg, var(--rule), var(--blue-soft) 60%, var(--blue) 100%); }
  .career > li::before { inset-block-start: 6px; inset-inline-start: -28px; }
  .glow-strip { display: none; }
  .career-rod, [dir="rtl"] .career-rod { inset-block: 6px; inset-inline-start: -2.25px; inset-inline-end: auto; width: 14px; height: auto; background-image: linear-gradient(180deg, var(--rule), var(--blue-soft) 60%, var(--blue)); background-size: 1.5px 100%; }
  .has-light .career-rod { background: none; }
}
@media (max-width: 760px) {
  :root { --head: 80px; }
  .logo { height: 48px; }
  .top.is-stuck .logo { height: 40px; }
  .foot .logo { height: 60px; }
  .gr, .svc, .posts > li, .steps > li, .founder, .contact-grid, .parts > div, .brief > div { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; padding-block-start: calc(var(--head) + 48px); min-height: max(100svh, 620px); }
  .hero-in, .phero-in { width: 100%; }
  .phero { min-height: 0; padding-block: calc(var(--head) + 72px) 56px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .photo .wrap { padding-inline: 0; }
  .photo img { aspect-ratio: 4 / 3; }
  .firm-side { position: static; }
  .area > .gr { grid-template-columns: 1fr; }
  .firm-pic img { aspect-ratio: 4 / 3; }
  .portrait { max-width: 360px; }
  .steps > li { row-gap: 14px; }
  .objects, .objects.pairs { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .numbers > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .five, .seven { grid-template-columns: 1fr; row-gap: 26px; }
  .career { grid-template-columns: 1fr; }
  .edu > li { grid-template-columns: 1fr; row-gap: 8px; }
  .glow { display: none; }
}
@media (max-width: 420px) {
  .foot-cols { grid-template-columns: 1fr; }
  .logo { height: 42px; }
}
