/* source: css/home.css */
/* Home: the prism hero and its signature transfer, the project exhibition, the method. */
.home .prism-hero{--prism-header-height:96px;position:relative;isolation:isolate;overflow:hidden;width:100vw;margin-left:calc(50% - 50vw);height:calc(100svh - var(--prism-header-height) - 68px);min-height:620px;max-height:1100px;background:linear-gradient(180deg,color-mix(in srgb,var(--paper) 94%,transparent),color-mix(in srgb,var(--paper) 80%,transparent) 72%,transparent)}
.prism-word-wrap{position:absolute;left:4%;right:4%;top:calc(38% - 30px);transform:translateY(-50%);text-align:center}
.prism-word{display:inline-flex;position:relative;max-width:100%;margin:0;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;font:var(--weight-display) clamp(62px,12.7vw,205px)/1.22 var(--font-display);letter-spacing:-.06em;-webkit-tap-highlight-color:transparent}
.prism-word:focus-visible{outline:2px solid var(--focus-ring);outline-offset:18px}
.prism-word:disabled{color:var(--ink);opacity:1;cursor:default}
.prism-word>span{display:inline-block;position:relative;transform-origin:50% 78%}
.prism-word>span.extra{position:absolute;top:0;clip-path:inset(0 100% 0 0);pointer-events:none}
.prism-hero[data-signature-state="flying"] .prism-word,.prism-hero[data-signature-state="docked"] .prism-word{visibility:hidden}
.eddy-transfer-layer{position:fixed;inset:0;z-index:20;pointer-events:none;overflow:visible}
.eddy-transfer-layer>span{display:block;white-space:pre;will-change:transform}
.prism-caption{position:absolute;top:calc(55% - 62px);left:50%;transform:translateX(-50%);width:min(calc(100% - 40px),1000px);padding:18px;text-align:center}
.prism-caption h1{margin:0;color:var(--ink);font:var(--weight-bold) clamp(26px,2.7vw,42px)/1.2 var(--font-text);letter-spacing:-.02em}
.prism-caption .hero-subtitle{max-width:62ch;margin:16px auto 0;color:var(--ink-soft);font-size:var(--text-lead-l);line-height:1.5;text-wrap:balance}
.prism-caption .ai-note{max-width:68ch;margin:22px auto 0;color:var(--ink-soft);font-size:20px;line-height:1.5;letter-spacing:0;text-wrap:balance}
.prism-caption .typed-line{display:block;min-height:3.1em;color:var(--ink);text-wrap:wrap}
.prism-caption .type-caret{display:inline-block;position:relative;width:0;height:.9em;margin-left:0;vertical-align:-.1em;color:var(--spectrum-violet);font-size:inherit;font-weight:var(--weight-regular);line-height:0;background:none;box-shadow:none;opacity:1}
.prism-caption .type-caret::before{content:"";position:absolute;top:0;left:3px;width:3px;height:100%;border-radius:1px;background:currentColor;box-shadow:0 0 5px currentColor}
.prism-hero[data-motion-paused] .prism-caption>*{animation:none}
.prism-hero[data-type-stopped] .type-caret{visibility:hidden;animation:none}
.signal-motion-stopped .type-caret{animation-play-state:paused}
@keyframes caption-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes signal-caret-colour{0%,100%{color:var(--spectrum-blue)}28%{color:var(--spectrum-violet)}54%{color:var(--spectrum-pink)}76%{color:var(--spectrum-apricot)}}
@media(prefers-reduced-motion:no-preference){
 .prism-caption h1,.prism-caption .hero-subtitle,.prism-caption .ai-note{animation:caption-arrive 1400ms var(--ease-out) both;animation-delay:180ms}
 .prism-caption .hero-subtitle{animation-delay:300ms}
 .prism-caption .ai-note{animation-delay:400ms}
 .prism-caption .type-caret{animation:signal-caret-colour 5.8s ease-in-out infinite}
 .hero-project-link.is-in-view>.liquid-skin .liquid-colour{animation-duration:18s;animation-play-state:running}
}
.hero-actions{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;margin-top:24px}
.hero-actions .ui-button{margin-top:0}
.hero-actions .ui-button--secondary{min-height:52px;padding:14px 24px;font-size:var(--text-body)}
/* Pause of the hero motion (tertiary action, shown by hero-prism.js unless reduced motion). */
.prism-hero .motion-toggle{position:absolute;z-index:2;right:var(--gutter);bottom:12px}
@media(min-width:1800px){.prism-word{font-size:198px}}
@media(max-width:900px){.home .prism-hero{--prism-header-height:64px}}
@media(max-width:850px){.prism-word{font-size:16vw}}
@media(max-width:760px){
 .home .prism-hero{--prism-header-height:144px;min-height:640px}
 .prism-word-wrap{left:3%;right:3%;top:calc(32% - 20px)}
 .prism-caption{top:calc(45% - 40px);padding:16px 0}
 .prism-caption h1{font-size:clamp(24px,5.8vw,32px)}
 .prism-caption .hero-subtitle{max-width:40ch;margin-top:12px;font-size:var(--text-body-s)}
 .prism-caption .ai-note{max-width:36ch;margin-top:16px;font-size:var(--text-lead)}
}
@media(max-width:480px){
 .hero-actions{gap:12px;margin-top:22px}
 body .hero-actions .ui-button--secondary{min-height:46px;padding:12px 15px;font-size:var(--text-meta)}
}
@media(max-width:360px){
 .home .prism-hero{min-height:700px}
 .prism-caption{padding-inline:0}
 .hero-actions{gap:10px}
 body .hero-actions .ui-button--secondary{padding-inline:12px;font-size:var(--text-caption)}
}
@media(prefers-reduced-motion:reduce){.prism-caption .type-caret{display:none;animation:none}.prism-caption>*{animation:none}.prism-hero .motion-toggle{display:none}}

/* Project exhibition. */
#projets{scroll-margin-top:110px}
.home-showcase{padding:var(--space-section) var(--gutter) 0;overflow:hidden}
.home-showcase__intro{display:block;margin-bottom:clamp(3rem,7vw,7rem)}
.home-showcase__intro h2{margin:0;overflow:visible;font:var(--weight-display) var(--text-display)/.94 var(--font-display);letter-spacing:-.07em}
/* minmax(0,1fr): a card never widens the column to its min-content (a 3:2 media with a min-height would). */
.home-projects{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(1.3rem,3vw,4rem)}
.home-project{position:relative;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(14rem,.72fr);gap:clamp(1rem,4vw,5rem);align-items:center;padding:clamp(1.2rem,2.8vw,2.5rem) 0;color:var(--ink);text-decoration:none;isolation:isolate}
.home-project:nth-child(2n){grid-template-columns:minmax(14rem,.72fr) minmax(0,1.8fr)}
.home-project:nth-child(2n) .home-project__media{grid-column:2;grid-row:1}
.home-project:nth-child(2n) .home-project__copy{grid-column:1;grid-row:1}
.home-project__media{position:relative;overflow:hidden;min-height:clamp(14rem,37vw,38rem);background:var(--surface);border-radius:clamp(12px,2vw,24px);clip-path:none;filter:none;box-shadow:none;transition:transform .7s var(--ease-soft),box-shadow .7s ease}
.home-project__media img{display:block;width:100%;height:100%;min-height:inherit;object-fit:cover;filter:saturate(.85) contrast(1.05);transform:scale(1.02);transition:transform 1s var(--ease-soft),filter .8s ease}
/* A quiet underlight at rest, a moving spectral crest on hover. */
.home-project__media::after{content:"";position:absolute;z-index:2;left:7%;right:7%;bottom:0;height:1px;pointer-events:none;border-radius:var(--radius-pill);background:var(--spectrum-linear);mask-image:linear-gradient(90deg,transparent,var(--white) 14%,var(--white) 90%,transparent);opacity:.22;transform:scaleX(.38);transform-origin:0 50%;transition:opacity .55s ease,transform .85s var(--ease-soft)}
.home-project__media::before{content:"";position:absolute;z-index:3;left:7%;bottom:-1px;width:14%;height:3px;pointer-events:none;border-radius:50%;background:var(--spectrum-linear);mask-image:linear-gradient(90deg,transparent,var(--white) 28%,var(--white) 82%,transparent);opacity:0;transform:translateX(-125%) scaleX(.7);transition:opacity .18s ease,transform .9s var(--ease-soft)}
.home-project__copy{max-width:27rem}
.home-project__copy h3{margin:0 0 1rem;font:var(--weight-display) var(--text-title)/.92 var(--font-display);letter-spacing:-.065em}
.home-project__copy p{max-width:24ch;margin:0 0 2rem;font-size:clamp(1.05rem,1.7vw,1.4rem);line-height:1.25}
.home-project__meta{display:block;color:var(--muted);font-size:.79rem;line-height:1.4;letter-spacing:.08em;text-transform:uppercase}
/* The index reads on any cover: solid ink, no blend mode. */
.home-project__index{position:absolute;z-index:2;top:1rem;left:1rem;color:var(--ink);font-size:.75rem;letter-spacing:.1em}
.home-project:nth-child(2n) .home-project__index{left:auto;right:1rem}
.home-project .feature-cta.ui-button{min-height:40px;margin-top:16px;padding:9px 14px;font-size:var(--text-meta);cursor:pointer}
.home-project__proof{display:grid;grid-template-columns:6px auto minmax(7rem,1fr);gap:10px;align-items:center;width:100%;max-width:24rem;margin-top:18px;color:var(--muted)}
.home-project__proof::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--spectrum-conic);box-shadow:0 0 10px color-mix(in srgb,var(--spectrum-violet) 55%,transparent)}
.home-project__proof strong{white-space:nowrap;color:var(--ink);font:var(--weight-display) clamp(18px,1.8vw,25px)/1 var(--font-display);letter-spacing:-.04em}
.home-project__proof span{max-width:16ch;color:var(--muted-soft);font:var(--weight-regular) var(--text-caption)/1.25 var(--font-text)}
.home-project--pixai .home-project__media{aspect-ratio:3/2}
/* Pixai: keep the sidebar labels of the capture whole, anchored top left. */
.home-project--pixai .home-project__media img{object-position:left top;transform-origin:left top}
.home-project--edjing-mix .home-project__media img{object-position:52% 50%}
.home-project--color-pop .home-project__media img{object-position:58% 52%}
.home-project--beatmakerpro .home-project__media img{object-position:50% 52%}
.home-project:is(:hover,:focus-visible) .home-project__media{transform:translateY(-2px)}
.home-project:is(:hover,:focus-visible) .home-project__media img{transform:scale(1.045);filter:saturate(1.08) contrast(1.04)}
.home-project:is(:hover,:focus-visible) .home-project__media::after{opacity:.78;transform:scaleX(1)}
.home-project:is(:hover,:focus-visible) .home-project__media::before{opacity:.86;transform:translateX(610%) scaleX(1.15)}
.home-project:focus-visible{outline:2px solid var(--focus-ring);outline-offset:10px}
.home-showcase__more{padding-top:clamp(3rem,6vw,5rem)}
.home-showcase__more>summary.ui-button{display:flex;margin-inline:auto;list-style:none}
.home-showcase__more>summary::-webkit-details-marker{display:none}
.home-showcase__more:not([open]) [data-expanded-label],.home-showcase__more[open] [data-collapsed-label]{display:none}
.home-showcase__more[open]>.home-projects{margin-top:clamp(2rem,5vw,4rem)}
.home-showcase__more .home-project__media{aspect-ratio:3/2;min-height:0}
.home-showcase__more .home-project__media img{min-height:0}

/* Method. */
.home-method{padding:clamp(8rem,15vw,15rem) var(--gutter) clamp(4rem,8vw,8rem)}
.home-method__intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(22rem,.9fr);column-gap:clamp(3rem,8vw,9rem);align-items:center;margin-bottom:clamp(4rem,8vw,7rem)}
.home-method__intro .section-kicker{grid-column:1/-1}
.home-method__intro h2{max-width:12ch;margin:0;overflow:visible;font:var(--weight-semibold) var(--text-title)/.98 var(--font-display);letter-spacing:-.06em}
.home-method__intro>p:last-child{max-width:39ch;color:var(--ink-soft);font-size:clamp(1.15rem,1.65vw,1.5rem);line-height:1.5}
.home-method__steps{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(1rem,2.4vw,2.4rem);margin:0;padding:0;list-style:none}
.home-method__steps::before{content:"";position:absolute;left:6%;right:6%;top:4.35rem;height:var(--ui-rule);background:var(--line-solid);opacity:.82}
.home-method__steps li{position:relative;display:flex;flex-direction:column;min-height:16rem;padding:clamp(1.15rem,1.7vw,1.7rem);border:2px solid var(--line-soft);border-radius:var(--radius-l);background:var(--surface-deep);overflow:hidden;transition:transform 220ms ease,border-color 220ms ease,background-color 220ms ease}
.home-method__number{display:block;color:var(--muted-faint);font-size:.72rem;letter-spacing:.12em}
.home-method__icon{position:relative;z-index:1;display:grid;place-items:center;width:4.2rem;height:3.4rem;margin:1.2rem 0 0;border-radius:17px;background:var(--surface-deep);box-shadow:0 0 0 6px var(--surface-deep);transition:transform 220ms ease}
.home-method__icon::before{content:"";position:absolute;inset:0;padding:2px;border-radius:inherit;background:var(--ui-action-spectrum);-webkit-mask:linear-gradient(var(--white) 0 0) content-box,linear-gradient(var(--white) 0 0);-webkit-mask-composite:xor;mask:linear-gradient(var(--white) 0 0) content-box,linear-gradient(var(--white) 0 0);mask-composite:exclude}
.home-method__icon svg{width:1.55rem;height:1.55rem;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-method__steps h3{margin:1.55rem 0 .7rem;font:var(--weight-semibold) clamp(1.25rem,1.7vw,1.75rem) var(--font-display);letter-spacing:-.045em}
.home-method__steps p{color:var(--muted);font-size:.92rem;line-height:1.5}
.home-method[data-reveal=pending] .home-method__intro>*,.home-method[data-reveal=pending] .home-method__steps li{opacity:0}
@media(hover:hover) and (pointer:fine){
 .home-method__steps li:hover{border-color:transparent;background:linear-gradient(var(--surface-deep),var(--surface-deep)) padding-box,var(--ui-spectrum-linear) border-box;transform:translateY(-5px)}
 .home-method__steps li:hover .home-method__icon{transform:translateY(-2px) rotate(-2deg)}
}
@media(max-width:900px){.home-method__steps{grid-template-columns:repeat(2,1fr)}.home-method__steps::before{display:none}}
@media(max-width:760px){
 .home-project,.home-project:nth-child(2n){display:flex;flex-direction:column;align-items:stretch;gap:1.3rem}
 .home-project:nth-child(2n) .home-project__media,.home-project:nth-child(2n) .home-project__copy{order:initial}
 .home-project__media{min-height:65vw}
 /* The index sits above the Pixai capture, never on its interface text. */
 .home-project--pixai .home-project__media{margin-top:1.6rem}
 .home-project__copy{max-width:none}
 .home-project__copy h3{font-size:clamp(2.4rem,13vw,4.6rem)}
 .home-project__copy p{max-width:30ch;margin-bottom:1.2rem}
 .home-project__meta{font-size:.7rem}
 .home-method__intro{display:block}
 .home-method__intro>p:last-child{margin-top:1.5rem;font-size:1rem}
 .home-method__steps{grid-template-columns:1fr}
 .home-method__steps li{min-height:14rem}
}
@media(prefers-reduced-motion:reduce){
 .home-project__media,.home-project__media img{transition:none}
 .home-project__media,.home-project:is(:hover,:focus-visible) .home-project__media,.home-project:is(:hover,:focus-visible) .home-project__media img{transform:none}
 .home-project__media::before{display:none}
 .home-project__media::after{transition:none;opacity:.28;transform:scaleX(.5)}
 .home-method[data-reveal=pending] .home-method__intro>*,.home-method[data-reveal=pending] .home-method__steps li{opacity:1}
 .home-method__steps li,.home-method__icon{transition:none}
}
