/* Korix Studio · Expertises · page layout (from Expertises.dc.html, sections 1 to 5 as on the board;
   section 6 holds what only the live page needs). */
body{margin:0}

/* Expertises · page layout, the three audience objects, the capability grid.
   Tokens, type scale and components come from korix.css and are never redefined here. */

/* 1. Opener ---------------------------------------------------------------- */
.ex-opener { padding-block: clamp(48px, 5.6vw, 80px) clamp(40px, 3.4vw, 48px); }
.ex-op-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ex-title { margin-top: clamp(24px, 2.8vw, 40px); }
/* phones: the two display lines flow as one balanced sentence, the heading rises as a block.
   The line animation stays declared (inline boxes ignore its transform), so it is never removed
   and re-added when a media query flips, which would restart it. */
@media (max-width: 759.98px) {
  .ex-title .kx-line, .ex-title .kx-line > span { display: inline; }
  .ex-title { animation: kx-rise 900ms var(--kx-e-out) 480ms both; }
}
.ex-op-foot { margin-top: clamp(40px, 4.4vw, 64px); row-gap: 40px; }
/* the lead sits on the first index row: its first baseline meets the row text */
@media (min-width: 760px) { .ex-op-foot > .kx-col { grid-row: 1; } .ex-op-lead { padding-top: 10px; } }
.ex-ix { border-top: 1px solid var(--kx-line); }
.ex-ix-link {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; align-items: center; column-gap: 16px;
  min-height: 56px; border-bottom: 1px solid var(--kx-line); color: var(--kx-fg); font-size: 17px; line-height: 1.3;
}
.ex-ix-link .kx-idx { display: inline-flex; align-items: center; gap: 8px; color: var(--kx-fg-2); transition: color var(--kx-d-m) var(--kx-e-out); }
.ex-ix-link .kx-idx::before { content: ""; width: 12px; height: 1.5px; background: var(--kx-accent); transform: scaleX(0); transform-origin: left center; transition: transform var(--kx-d-m) var(--kx-e-out); }
.ex-ix-link.is-current .kx-idx { color: var(--kx-fg); }
.ex-ix-link.is-current .kx-idx::before { transform: scaleX(1); }
.ex-ix-name { transition: transform var(--kx-d-m) var(--kx-e-out); }
.ex-ix-link .kx-arrow { transform: rotate(90deg); }
@media (hover: hover) {
  .ex-ix-link:hover .ex-ix-name { transform: translateX(6px); }
  .ex-ix-link:hover .kx-arrow { transform: rotate(90deg) translateX(3px); }
}

/* 2. Profiles: track, sticky tab bar, panels -------------------------------- */
.ex-profils { padding-bottom: 0; }
.ex-tabbar { position: sticky; top: 0; z-index: 12; padding-top: 24px; background-color: var(--kx-bg); }
.ex-tabbar .kx-tab { position: relative; min-height: 64px; }
.ex-tabbar .kx-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--kx-line-strong);
  transform: scaleX(0); transform-origin: left center; transition: transform var(--kx-d-m) var(--kx-e-out); pointer-events: none;
}
@media (hover: hover) { .ex-tabbar .kx-tab:not(.is-active):hover::after { transform: scaleX(1); } }
/* the tabs touch each other, so the focus ring is drawn inside the tab, clear of its neighbour */
.ex-tabbar .kx-tab:focus-visible { outline: none; }
.ex-tabbar .kx-tab:focus-visible::before { content: ""; position: absolute; inset: 8px 16px 10px -8px; border: var(--kx-hair-2) solid var(--kx-focus); border-radius: var(--kx-r-guichet); pointer-events: none; }
@media (max-width: 759.98px) { .ex-tabbar .kx-tab { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; } }

.ex-panel.kx-tabpanel { animation: none; padding-top: clamp(40px, 5vw, 72px); }
.ex-head { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
.ex-head > * { min-width: 0; }
@media (min-width: 760px) {
  .ex-head { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--kx-gutter); }
  .ex-head > * { grid-column: 1 / -1; }
  .ex-head > .ex-fig { grid-column: 2 / span 6; }
}
@media (min-width: 1100px) {
  .ex-head { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; row-gap: 0; }
  .ex-head > .ex-lede { grid-column: 1 / span 7; grid-row: 1; }
  .ex-head > .ex-fig { grid-column: 8 / span 5; grid-row: 1 / span 2; }
  .ex-head > .ex-concerns { grid-column: 1 / span 6; grid-row: 2; align-self: end; padding-top: 40px; }
}
.ex-word { margin-top: 16px; }
.ex-word .kx-line > span { animation-duration: 700ms; }
.ex-intro { margin-top: clamp(24px, 2.8vw, 40px); max-width: 30em; }
/* entrance moves fill backwards only: once played, each element rests on its own style (no filter left behind) */
.ex-focus { animation: ex-focus 560ms var(--kx-e-out) backwards; animation-delay: var(--d, 0ms); }
@keyframes ex-focus { from { opacity: 0; filter: blur(9px); transform: translateY(8px); } }
.ex-sub { font-weight: 400; margin-bottom: 24px; }

/* concerns: 2 x 2, hairline above each */
.ex-cgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px var(--kx-gutter); }
@media (min-width: 600px) { .ex-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex-concern { position: relative; display: grid; align-content: start; gap: 8px; padding-top: 16px; }
.ex-concern::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--kx-line);
  transform-origin: left center; animation: kx-draw 600ms var(--kx-e-index) both; animation-delay: calc(120ms + var(--i, 0) * 40ms);
}
.ex-concern > * { animation: ex-focus 560ms var(--kx-e-out) backwards; animation-delay: calc(160ms + var(--i, 0) * 40ms); }
.ex-concern .kx-idx { color: var(--kx-fg-2); }
.ex-concern-t { font-family: var(--kx-serif); font-weight: 400; font-size: clamp(20px, 18.5px + .4vw, 24px); line-height: 1.2; letter-spacing: -.004em; color: var(--kx-fg); }
.ex-concern-l { font-size: 15px; line-height: 1.55; color: var(--kx-fg-2); }

/* builds: full-width hairline rows, the line column aligns with the object plate */
.ex-builds { margin-top: clamp(80px, 8.9vw, 128px); }
.ex-rows.kx-rows { border-top: 0; position: relative; }
.ex-rows::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--kx-line);
  transform-origin: left center; animation: kx-draw 600ms var(--kx-e-index) 120ms both;
}
.ex-rows > .kx-row { position: relative; border-bottom: 0; }
.ex-rows > .kx-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--kx-line);
  transform-origin: left center; animation: kx-draw 560ms var(--kx-e-index) both; animation-delay: calc(140ms + var(--i, 0) * 28ms);
}
.ex-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: baseline;
  padding-block: clamp(20px, 2.2vw, 32px); animation: ex-focus 560ms var(--kx-e-out) backwards; animation-delay: calc(140ms + var(--i, 0) * 28ms);
}
.ex-row > .kx-idx { color: var(--kx-fg-2); transition: color var(--kx-d-m) var(--kx-e-out); }
.ex-row-t { font-family: var(--kx-serif); font-weight: 400; font-size: var(--kx-t-h3); line-height: 1.16; letter-spacing: -.006em; color: var(--kx-fg); transition: transform var(--kx-d-m) var(--kx-e-out); }
.ex-row-l { grid-column: 2; font-size: 16px; line-height: 1.55; color: var(--kx-fg-2); max-width: 30em; }
@media (min-width: 760px) {
  .ex-row { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--kx-gutter); }
  .ex-row-t { grid-column: 2 / span 3; }
  /* two lines reserved, so the three panels keep the same height (the canvas frame is sized once) */
  .ex-row-l { grid-column: 5 / span 4; min-height: 3.1em; }
}
@media (min-width: 1100px) {
  .ex-row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ex-row-t { grid-column: 2 / span 6; }
  .ex-row-l { grid-column: 8 / span 5; }
}
@media (hover: hover) {
  .ex-rows > .kx-row:hover .ex-row-t { transform: translateX(8px); }
  .ex-rows > .kx-row:hover .kx-idx { color: var(--kx-accent); }
}
.ex-cta-row { margin-top: 48px; }
.ex-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
@media (min-width: 1100px) {
  .ex-cta-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--kx-gutter); }
  .ex-cta { grid-column: 2 / -1; }
}

/* 3. The object plate (shared by the three panels) ------------------------- */
.ex-fig { margin: 0; display: grid; gap: 12px; align-content: start; }
.ex-stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate; container-type: inline-size;
  background-color: var(--kx-well); animation: ex-wipe 600ms var(--kx-e-hinge) both;
}
@keyframes ex-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
/* crop marks at the four corners of the proof */
.ex-stage::before {
  content: ""; position: absolute; inset: 14px; z-index: 4; pointer-events: none; opacity: .75; --m: var(--kx-fg-2);
  background:
    linear-gradient(var(--m), var(--m)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 0 / 14px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) 0 100% / 14px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 100% / 1px 14px no-repeat;
}
/* the caption lands once the plate is uncovered, never before it */
.ex-fig > .kx-figcap { animation: ex-focus 560ms var(--kx-e-out) 380ms backwards; }
.ex-reg { position: absolute; z-index: 4; top: 12px; left: 50%; width: 22px; height: 22px; margin-left: -11px; fill: none; stroke: var(--kx-accent); stroke-width: 1; opacity: .8; }
.ex-reg * { vector-effect: non-scaling-stroke; }
/* hallmark: the monogram small cut in encre, the only colour the mark takes on a light ground (BRAND 2.3) */
.ex-hall { position: absolute; z-index: 4; left: 50%; bottom: 14px; margin-left: -10px; color: var(--kx-fg); }
.ex-scene {
  position: absolute; inset: 0; z-index: 1;
  transform: perspective(1600px) rotateX(calc((.5 - var(--my, .5)) * 5deg)) rotateY(calc((var(--mx, .5) - .5) * 7deg));
  transition: transform 1100ms var(--kx-e-out);
}
.ex-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* hairlines start once the wipe has opened half the plate (300 ms), so the drawing is seen, not finished behind the mask */
.ex-draw * { fill: none; stroke: var(--kx-fg-2); stroke-width: .2; stroke-dasharray: 1.05 1.05; animation: ex-stroke 660ms var(--kx-e-index) both; animation-delay: calc(var(--dd, 280ms) + var(--i, 0) * 30ms); }
@keyframes ex-stroke { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
.ex-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(70% 55% at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
  opacity: 0; transition: opacity var(--kx-d-m) var(--kx-e-out);
}
.is-near .ex-sheen { opacity: 1; }
.ex-slot { font-family: var(--kx-sans); font-weight: 500; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }

/* 3a. Maisons: an invitation leaving its envelope */
.ex-envelope { position: absolute; inset: 0; animation: ex-rise 560ms var(--kx-e-out) 60ms both; }
@keyframes ex-rise { from { opacity: 0; transform: translateY(4cqw); } }
.ex-env-back { position: absolute; left: 15cqw; top: 63.4cqw; width: 70cqw; height: 46.6cqw; background-color: var(--kx-nuit); }
.ex-env-flap {
  position: absolute; left: 15cqw; top: 44cqw; width: 70cqw; height: 20cqw;
  background: repeating-linear-gradient(135deg, rgba(167, 174, 190, .09) 0 1px, rgba(167, 174, 190, 0) 1px 7px), var(--kx-nuit-2);
  clip-path: polygon(0 100%, 50% 0, 100% 100%); transform-origin: 50% 100%;
  animation: ex-flap 600ms var(--kx-e-hinge) 100ms both;
}
@keyframes ex-flap { from { transform: scaleY(-1); } }
.ex-invite {
  position: absolute; left: 22cqw; top: 13cqw; width: 56cqw; height: 78cqw;
  background: linear-gradient(168deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 46%), var(--kx-plaque);
  box-shadow: 0 2.4cqw 4.8cqw -3cqw rgba(19, 21, 27, .45);
  transform: translateY(0) rotate(-1.5deg); animation: ex-card-out 700ms var(--kx-e-out) 140ms both;
}
@keyframes ex-card-out { from { transform: translateY(19cqw) rotate(0deg); } }
.ex-invite::before { content: ""; position: absolute; inset: 2.4cqw; border: 1px solid var(--kx-accent); }
.ex-invite::after { content: ""; position: absolute; inset: 3.3cqw; border: 1px solid color-mix(in srgb, var(--kx-acier) 30%, transparent); }
.ex-invite-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 9cqw 6cqw 0; }
.ex-invite .ex-slot { font-size: max(7.5px, 2cqw); letter-spacing: .5em; margin-right: -.5em; color: var(--kx-encre); }
.ex-invite-rule { display: block; width: 5cqw; height: 1px; margin: 3.4cqw 0 3.2cqw; background: var(--kx-accent); }
.ex-invite-t { font-family: var(--kx-serif); font-style: italic; font-weight: 300; font-size: 4.7cqw; line-height: 1.1; letter-spacing: -.01em; color: var(--kx-encre); }
.ex-invite-l { margin-top: 2.4cqw; max-width: 34cqw; font-family: var(--kx-serif); font-weight: 400; font-size: 2.8cqw; line-height: 1.35; color: var(--kx-encre); text-wrap: balance; }
.ex-invite-m { margin-top: 3.6cqw; font-family: var(--kx-mono); font-size: max(7px, 1.8cqw); letter-spacing: .16em; text-transform: uppercase; color: var(--kx-rhodium); }
.ex-env-front {
  position: absolute; left: 15cqw; top: 64cqw; width: 70cqw; height: 46cqw; z-index: 3; background-color: var(--kx-nuit);
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
}
.ex-env-front svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 1; }
.ex-env-front svg * { vector-effect: non-scaling-stroke; }
.ex-env-front .ex-env-v { stroke: var(--kx-argent); stroke-opacity: .35; }
.ex-env-front .ex-env-f { stroke: var(--kx-ligne-nuit); }

/* 3b. Boutiques: a membership card over a hairline phone */
.ex-mcard {
  position: absolute; left: 33cqw; top: 61cqw; width: 58cqw; aspect-ratio: 85.6 / 54; overflow: hidden; z-index: 2;
  border-radius: 2.6cqw; background-color: var(--kx-nuit); color: var(--kx-opalin);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2.6cqw 5cqw -2.6cqw rgba(19, 21, 27, .6);
  transform: translate(0, 0) rotate(-6deg); animation: ex-card-in 700ms var(--kx-e-out) 240ms both;
}
@keyframes ex-card-in { from { opacity: 0; transform: translate(6cqw, 10cqw) rotate(3deg); } }
.ex-mcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(158deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 40%); pointer-events: none; }
.ex-guill { position: absolute; left: 28cqw; top: -21.7cqw; width: 80cqw; height: 80cqw; fill: none; stroke: var(--kx-argent); stroke-width: 1; opacity: .13; }
.ex-guill * { vector-effect: non-scaling-stroke; }
.ex-mcard-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 4.4cqw 4.6cqw 4cqw; }
.ex-mcard-top { display: flex; align-items: center; justify-content: space-between; }
.ex-mcard .ex-slot { font-size: max(7px, 1.9cqw); letter-spacing: .42em; color: var(--kx-opalin); }
.ex-seal { position: relative; width: 4.2cqw; height: 4.2cqw; border-radius: 50%; border: 1px solid var(--kx-acier-clair); flex: none; }
.ex-seal::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.2cqw; height: 1.2cqw; margin: -.6cqw 0 0 -.6cqw; border-radius: 50%; background: var(--kx-acier-clair); }
.ex-mcard-t { font-family: var(--kx-serif); font-weight: 300; font-size: 5cqw; line-height: 1.04; letter-spacing: -.012em; color: var(--kx-opalin); }
.ex-mcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; }
.ex-mcard-m { font-family: var(--kx-mono); font-size: max(7px, 1.6cqw); letter-spacing: .14em; text-transform: uppercase; color: var(--kx-argent); }
.ex-code {
  width: 15cqw; height: 3.4cqw; flex: none; opacity: .9;
  background:
    repeating-linear-gradient(90deg, var(--kx-acier-clair) 0 1px, transparent 1px 4px) 0 100% / 100% 52% no-repeat,
    repeating-linear-gradient(90deg, var(--kx-acier-clair) 0 1.5px, transparent 1.5px 20px) 0 100% / 100% 100% no-repeat;
}
.ex-phone circle { fill: var(--kx-fg-2); stroke: none; opacity: .8; animation: ex-pop 300ms var(--kx-e-out) both; animation-delay: calc(560ms + var(--i, 0) * 22ms); transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes ex-pop { from { transform: scale(0); } }
.ex-phone { opacity: .7; }

/* 3c. Particuliers: a personal tool tile on a quiet home screen */
.ex-ghost { opacity: .42; }
.ex-tile {
  position: absolute; left: 11cqw; top: 38cqw; width: 78cqw; height: 66cqw; z-index: 2; overflow: hidden;
  display: flex; flex-direction: column; padding: 6.4cqw; border-radius: 5.4cqw;
  background: linear-gradient(170deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 44%), var(--kx-plaque);
  box-shadow: inset 0 0 0 1px var(--kx-trait), 0 2.6cqw 6cqw -3cqw rgba(19, 21, 27, .38);
  animation: ex-tile-in 700ms var(--kx-e-out) 100ms backwards;
}
@keyframes ex-tile-in { from { opacity: 0; transform: translateY(5cqw) scale(.96); filter: blur(6px); } }
.ex-tile-top { display: flex; align-items: center; justify-content: space-between; }
.ex-tile-k { font-family: var(--kx-mono); font-size: max(8px, 1.8cqw); letter-spacing: .14em; text-transform: uppercase; color: var(--kx-rhodium); }
.ex-tile-t { margin-top: 4cqw; font-family: var(--kx-serif); font-weight: 300; font-size: 8cqw; line-height: 1; letter-spacing: -.02em; color: var(--kx-encre); }
.ex-skel { margin-top: 5.2cqw; border-top: 1px solid var(--kx-trait); }
.ex-skel li { display: grid; grid-template-columns: 6cqw minmax(0, 1fr) 2cqw; align-items: center; min-height: 6.4cqw; border-bottom: 1px solid var(--kx-trait); }
.ex-skel-i { font-family: var(--kx-mono); font-size: max(7.5px, 1.7cqw); letter-spacing: .06em; color: var(--kx-rhodium); }
.ex-skel-c { justify-self: end; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--kx-acier); }
.ex-skel-b { display: block; height: 1.1cqw; width: var(--w, 60%); border-radius: 1cqw; background: var(--kx-trait); transform-origin: left center; animation: kx-draw 460ms var(--kx-e-index) both; animation-delay: calc(280ms + var(--i, 0) * 50ms); }
.ex-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; margin-top: auto; }
.ex-tile-m { font-size: max(9px, 2.3cqw); line-height: 1.3; color: var(--kx-rhodium); }
.ex-avatars { display: flex; flex: none; }
.ex-avatars span { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; border: 1px solid var(--kx-encre); background: var(--kx-plaque); }
.ex-avatars span + span { margin-left: -1.1cqw; }
.ex-avatars span:nth-child(2) { background: var(--kx-lunette); }
.ex-avatars span:nth-child(3) { background: var(--kx-opalin); }

/* 4. Ce qu'une application peut contenir: a ruled grid that draws in ------- */
.ex-c-head { row-gap: 24px; align-items: end; margin-bottom: clamp(48px, 5.6vw, 80px); }
.ex-c-lead { max-width: 24em; padding-bottom: 4px; }
.ex-c-foot { display: flex; justify-content: flex-end; margin-top: 32px; }
.ex-cells { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--kx-line); }
@media (min-width: 600px) { .ex-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ex-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ex-cell { position: relative; display: flex; flex-direction: column; min-height: clamp(168px, 14.5vw, 208px); padding: 24px 24px 32px; view-timeline-name: --ex-cell; view-timeline-axis: block; }
.ex-cell .kx-idx { color: var(--kx-fg-2); transition: color var(--kx-d-m) var(--kx-e-out); }
.ex-cell-t { margin-top: clamp(40px, 4.4vw, 64px); font-family: var(--kx-serif); font-weight: 400; font-size: clamp(20px, 18.5px + .4vw, 24px); line-height: 1.2; letter-spacing: -.004em; color: var(--kx-fg); }
.ex-cell-l { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--kx-fg-2); max-width: 22em; }
/* construction guides (dotted, always there) under the hairlines that draw in */
.ex-cell::before, .ex-cell::after { content: ""; position: absolute; left: 0; top: 0; pointer-events: none; opacity: .55; }
.ex-cell::before { right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--kx-line-strong) 0 1px, transparent 1px 8px); }
.ex-cell::after { bottom: 0; width: 1px; background: repeating-linear-gradient(180deg, var(--kx-line-strong) 0 1px, transparent 1px 8px); }
.ex-hl { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 1px; background: var(--kx-line); transform-origin: left center; }
.ex-hl::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--kx-accent);
  transform: scaleX(0); transform-origin: left center; transition: transform var(--kx-d-m) var(--kx-e-out);
}
.ex-vl { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 1px; background: var(--kx-line); transform-origin: center top; }
.ex-x {
  position: absolute; z-index: 2; left: -4px; top: -4px; width: 9px; height: 9px; opacity: .85;
  background: linear-gradient(var(--kx-accent), var(--kx-accent)) 50% 50% / 9px 1px no-repeat, linear-gradient(var(--kx-accent), var(--kx-accent)) 50% 50% / 1px 9px no-repeat;
}
@media (hover: hover) {
  .ex-cell:hover .ex-hl::after { transform: scaleX(1); }
  .ex-cell:hover .kx-idx { color: var(--kx-fg); }
}
@media (max-width: 599.98px) {
  .ex-vl, .ex-cell::after { display: none; }
  .ex-cell { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: baseline; min-height: 0; padding: 18px 0 22px; }
  .ex-cell .kx-idx { grid-column: 1; grid-row: 1; }
  .ex-cell-t { grid-column: 2; grid-row: 1; margin-top: 0; }
  .ex-cell-l { grid-column: 2; grid-row: 2; }
}
@media (min-width: 600px) and (max-width: 1099.98px) { .ex-cell:nth-child(2n+1) .ex-vl, .ex-cell:nth-child(2n+1)::after { display: none; } .ex-cell:nth-child(2n+1) { padding-left: 0; } }
@media (min-width: 1100px) { .ex-cell:nth-child(4n+1) .ex-vl, .ex-cell:nth-child(4n+1)::after { display: none; } .ex-cell:nth-child(4n+1) { padding-left: 0; } }
@supports (animation-timeline: view()) {
  .ex-hl { animation: ex-sv-x linear both; animation-timeline: --ex-cell; animation-range: entry calc(var(--c, 0) * 12%) entry calc(52% + var(--c, 0) * 12%); }
  .ex-vl { animation: ex-sv-y linear both; animation-timeline: --ex-cell; animation-range: entry 10% entry 90%; }
  @keyframes ex-sv-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes ex-sv-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
/* (the board's canvas-frame guard for this grid is not needed on the live site) */

/* 5. Reduced motion: korix.css stops every animation; the pointer tilt goes too.
   Touch screens get no tilt either: a tap fires mousemove and no mouseleave may follow. */
@media (prefers-reduced-motion: reduce), (hover: none) {
  .ex-scene { transform: none !important; }
  .ex-sheen { display: none; }
}

/* 6. Live site ---------------------------------------------------------------
   The three profiles are all in the HTML; assets/js/expertises.js shows one at a time with the hidden
   attribute, as the board's sc-if did. */
.ex-panel[hidden] { display: none; }
/* Deep links (#maisons, #boutiques, #particuliers) land where the board's glide lands: the tab bar at the
   top of the screen, the panel right under it. --ex-bar-h is the tab bar's height, measured by the script. */
html.js .ex-panel { scroll-margin-top: var(--ex-bar-h, 89px); }
/* Each panel is a Tab stop (the script gives it tabindex 0). Focus that a click in its text or a deep link
   gives it stays quiet: no ring around the whole profile at the next key press. Tab still shows the ring. */
.ex-panel.is-quiet:focus { outline: none; }
/* Without JavaScript the tabs cannot switch: the tab bar is .kx-js-only (korix.css 9) and the three
   profiles read one after another, each opened by its own hairline. The index marks no profile as current. */
html:not(.js) .ex-panel[hidden] { display: block; }
html:not(.js) .ex-panel + .ex-panel { margin-top: clamp(64px, 6.7vw, 96px); border-top: 1px solid var(--kx-line); }
html:not(.js) .ex-ix-link.is-current .kx-idx { color: var(--kx-fg-2); }
html:not(.js) .ex-ix-link.is-current .kx-idx::before { transform: scaleX(0); }
