:root {
  color-scheme:dark;
  --bg:#101019; --surface:#191625; --card:#201c2d; --ink:#f8f5fd; --muted:#c5bed3;
  --accent:#c7a8ff; --soft:#d5baff; --on-soft:#281a40; --line:#413951; --photo:#242135;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:20px; }
body { margin:0; background:var(--bg); color:var(--ink); font:1rem/1.55 "Inter","Aptos","Helvetica Neue",Arial,sans-serif; }
a { color:inherit; text-decoration:none; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
a:focus-visible,button:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.wrap { width:min(1280px,calc(100% - 100px)); margin-inline:auto; }
.skip { position:fixed; inset:8px auto auto 8px; z-index:2; padding:10px; background:var(--card); transform:translateY(-160%); }
.skip:focus { transform:none; }
.masthead { border-bottom:1px solid var(--line); }
.bar { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:inline-flex; align-items:center; font-size:1.8125rem; font-weight:750; letter-spacing:-.075em; white-space:nowrap; }
.gem { display:grid; place-items:center; margin-right:9px; width:33px; height:33px; border-radius:9px; background:transparent url(/favicon.svg?v=3) center/contain no-repeat; color:var(--on-soft); font-size:1.4375rem; line-height:1; letter-spacing:0; }
.brand-dot { color:var(--accent); }
nav { display:flex; gap:clamp(16px,3vw,40px); }
nav a { font-size:0.875rem; font-weight:580; }
nav a:hover,.text-link:hover { color:var(--accent); }
.button { display:inline-flex; justify-content:center; align-items:center; gap:14px; min-height:44px; padding:10px 17px; border-radius:8px; border:1px solid transparent; font-size:0.875rem; font-weight:680; text-align:center; }
.button span,.text-link span { line-height:1; font-size:1.15em; }
.outline { border-color:var(--line); background:var(--bg); }
.outline:hover { border-color:var(--accent); }
.solid { color:var(--on-soft); background:var(--soft); }
.solid:hover { border-color:var(--accent); }
.hero { display:grid; grid-template-columns:1.06fr 1fr; align-items:center; gap:clamp(22px,3vw,48px); padding-block:59px 62px; }
.eyebrow { display:flex; align-items:center; gap:9px; color:var(--accent); margin:0 0 16px; font:600 0.6875rem/1.3 "SFMono-Regular",Consolas,monospace; text-transform:uppercase; letter-spacing:.115em; }
.dot { width:8px; height:8px; background:var(--accent); border-radius:50%; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.06; letter-spacing:-.055em; }
h1 { font-weight:650; font-size:clamp(2.6875rem,5.2vw,5.3125rem); }
h1 em { font-style:normal; color:var(--accent); }
.lead { margin-top:22px; max-width:47ch; color:var(--muted); font-size:clamp(1rem,1.48vw,1.25rem); }
.actions { margin-top:30px; display:flex; flex-wrap:wrap; align-items:center; gap:19px; }
.text-link { font-weight:650; font-size:0.875rem; display:inline-flex; gap:8px; align-items:center; }
.hero-figure { position:relative; min-width:0; overflow:hidden; margin:0; border:1px solid var(--line); border-radius:16px; background:var(--photo); }
.hero-figure img { width:100%; height:auto; aspect-ratio:1.34; object-fit:cover; display:block; }
h2 { font-weight:650; font-size:clamp(1.9375rem,4.15vw,3.75rem); }
.section { padding-block:clamp(53px,7vw,98px); }
.section-heading { margin-bottom:32px; }
.service-grid,.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.service-grid article,.project-grid article { background:var(--card); border:1px solid var(--line); border-radius:13px; overflow:hidden; }
.service-grid article { padding:clamp(22px,3vw,38px); }
.service-mark { display:grid; place-items:center; width:40px; height:40px; border-radius:8px; background:var(--soft); color:var(--on-soft); margin-bottom:21px; font-size:1.4375rem; line-height:1; }
h3 { font-size:clamp(1.4375rem,2.6vw,2.25rem); font-weight:650; }
.service-grid p:not(.service-mark),.project-text p,.method li p,.contact p:not(.eyebrow) { margin-top:12px; color:var(--muted); max-width:55ch; }
.service-grid ul { margin:19px 0 0; padding-left:19px; }
.service-grid li { margin-top:5px; }
.service-grid li::marker { color:var(--accent); }
.project-grid img { display:block; width:100%; height:auto; aspect-ratio:1.66; object-fit:cover; background:var(--photo); }
.project-grid article:first-child img { object-position:center 54%; }
.project-text { padding:24px 27px 27px; }
.method ol { padding:0; margin:0; list-style:none; counter-reset:step; display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.method li { border-top:1px solid var(--line); padding-top:18px; counter-increment:step; }
.method li::before { content:"0" counter(step); display:block; margin-bottom:15px; color:var(--accent); font:600 0.875rem/1.3 monospace; }
.method h3 { font-size:1.5625rem; }
.contact-inner { min-height:235px; display:flex; padding-block:38px; justify-content:space-between; align-items:center; gap:25px; }
.footer { color:var(--muted); font-size:0.875rem; }
.footer .brand { color:var(--ink); font-size:1.4375rem; }
.footer .gem { width:27px; height:27px; font-size:1.125rem; }
dialog { border:1px solid var(--line); border-radius:15px; color:var(--ink); background:var(--card); width:min(520px,calc(100% - 32px)); padding:24px; }
dialog::backdrop { background:#171321a8; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.dialog-head h2 { font-size:2.0625rem; }
.close { border:0; background:var(--surface); color:var(--ink); width:40px; height:40px; border-radius:8px; font-size:1.5rem; }
dialog label { display:block; font-weight:650; margin-top:17px; margin-bottom:6px; }
dialog select,dialog textarea { width:100%; padding:8px; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:6px; }
dialog .button { margin-top:16px; }
#brief-status:empty { display:none; }
#brief-status { margin-top:8px; color:var(--accent); }
@media (max-width:910px) {
  .wrap { width:calc(100% - 58px); }
  .hero { padding-block:44px; }
}
@media (max-width:720px) {
  .wrap { width:calc(100% - 36px); }
  .bar { min-height:70px; gap:14px; }
  .masthead .bar { flex-wrap:wrap; padding-block:13px; }
  .masthead nav { order:3; width:100%; border-top:1px solid var(--line); padding-top:10px; justify-content:space-between; }
  .brand { font-size:1.5rem; }
  .gem { width:28px; height:28px; font-size:1.1875rem; }
  .masthead .button { font-size:0.75rem; padding-inline:9px; gap:6px; min-height:36px; }
  .hero { grid-template-columns:1fr; }
  .hero { padding-block:33px 34px; row-gap:24px; }
  h1 { font-size:clamp(2.5rem,9.25vw,4.0625rem); }
  .lead { margin-top:17px; }
  .actions { margin-top:21px; gap:13px; }
  .hero-figure img { aspect-ratio:1.52; }
  .mood span { font-size:0.6875rem; }
  .service-grid,.project-grid { grid-template-columns:1fr; }
  .method ol { grid-template-columns:1fr; gap:20px; }
  .contact-inner { align-items:flex-start; flex-direction:column; justify-content:center; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
.network-mark {
  background:var(--soft) center / 100% 100% no-repeat;
  background-image:linear-gradient(0deg,transparent 46%,var(--on-soft) 46% 54%,transparent 54%),
    linear-gradient(90deg,transparent 46%,var(--on-soft) 46% 54%,transparent 54%),
    linear-gradient(45deg,transparent 46%,var(--on-soft) 46% 54%,transparent 54%),
    linear-gradient(135deg,transparent 46%,var(--on-soft) 46% 54%,transparent 54%);
  background-size:57% 57%;
  border-radius:8px;
}
.document-mark::before {
  content:"";
  display:block;
  width:15px;
  height:17px;
  border:1.6px solid currentColor;
  border-radius:2px;
  background:repeating-linear-gradient(to bottom,currentColor 0 1px,transparent 1px 4px) center / 8px 9px no-repeat;
}
.arrow { position:relative; display:inline-block; flex:none; width:11px; height:11px; color:currentColor; }
.arrow::before { content:""; position:absolute; inset:1px 1px auto auto; width:6px; height:6px; border-top:1.5px solid; border-right:1.5px solid; }
.arrow::after { content:""; position:absolute; top:5px; left:0; width:11px; border-top:1.5px solid; transform:rotate(-45deg); }

.hero-figure { isolation:isolate; background:#100e1d; box-shadow:0 18px 80px #44209c20; }
.hero-figure::before, .hero-figure canvas { content:""; position:absolute; inset:0; width:100%; height:100%; }
.hero-figure::before, .hero-figure canvas { opacity:0; }
.hero-figure::before {
  background:radial-gradient(ellipse at 53% 45%,#33206d 0%,#18122e 36%,#0f0d19 75%),
    linear-gradient(140deg,#191032,#100d1e);
  z-index:0;
}
.hero-figure.is-rendering::before, .hero-figure.is-rendering canvas { opacity:1; }
.hero-figure.is-rendering img { opacity:0; }
.hero-figure canvas { z-index:1; pointer-events:none; }
.motion-control {
  position:absolute; z-index:2; right:13px; bottom:13px; padding:8px 13px; border:1px solid #9f83d484;
  min-height:40px; max-width:calc(100% - 26px); border-radius:7px; background:#151022e8; color:#f7efff; font-size:0.8125rem;
}
.motion-control:hover { background:#332252; }
.footer { flex-wrap:wrap; padding-block:15px; }
.footer nav { flex-wrap:wrap; gap:10px 22px; }
.footer nav a { font-size:0.8125rem; }
.footer nav a[aria-current=page] { color:var(--accent); }
.legal { max-width:880px; padding-block:clamp(40px,8vw,90px); }
.legal h1 { margin-top:25px; font-size:clamp(2.375rem,6vw,4.0625rem); }
.legal h2 { letter-spacing:-.035em; font-size:clamp(1.375rem,3.2vw,1.875rem); margin-top:30px; }
.legal p, .legal dl { margin-top:11px; }
.legal p, .legal dd { color:var(--muted); }
.legal a:not(.button) { text-decoration:underline; text-underline-offset:3px; }
.legal dt { margin-top:12px; font-weight:650; }
.legal dd { margin:3px 0 0; }
.legal .legal-note { border-left:3px solid var(--accent); padding:10px 14px; background:var(--surface); }

.service-more { margin-top:20px; color:var(--accent); }
.service-more:hover,.contact-email:hover,.service-related a:hover { text-decoration:underline; }
.contact-email { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.service-page { max-width:980px; padding-block:32px clamp(58px,7vw,96px); }
.breadcrumb { align-items:center; gap:10px; color:var(--muted); font-size:0.875rem; }
.breadcrumb a { text-decoration:underline; text-underline-offset:3px; }
.service-title { padding-block:clamp(30px,5vw,68px) 36px; border-bottom:1px solid var(--line); }
.service-title h1 { max-width:18ch; font-size:clamp(2.375rem,6.3vw,4.8125rem); }
.service-title .lead { max-width:62ch; }
.service-title .button { margin-top:22px; }
.service-body { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; padding-block:34px; }
.service-body section:last-child { grid-column:1 / -1; }
.service-page h2 { font-size:clamp(1.5rem,3vw,2.25rem); letter-spacing:-.04em; }
.service-body p,.service-case p:not(.eyebrow),.service-faq details p { margin-top:10px; max-width:65ch; color:var(--muted); }
.service-case { padding:clamp(20px,4vw,36px); border:1px solid var(--line); background:var(--card); border-radius:12px; }
.service-case a { margin-top:15px; color:var(--accent); }
.service-case a:hover { text-decoration:underline; }
.service-faq { margin-top:43px; }
.service-faq h2 { margin-bottom:17px; }
.service-faq details { border-top:1px solid var(--line); padding:13px 0; }
.service-faq details:last-child { border-bottom:1px solid var(--line); }
.service-faq summary { cursor:pointer; font-weight:650; }
.service-faq summary:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.service-related { margin-top:26px; color:var(--accent); }
@media (max-width:600px) {
  .service-body { grid-template-columns:1fr; }
}

html[data-reading-size="large"] { font-size:125%; }
html[data-reading-size="extra"] { font-size:150%; }
html[data-high-contrast] {
  --bg:#08080d; --surface:#14141f; --card:#191924; --ink:#fff; --muted:#f0eaf7;
  --accent:#e5d6ff; --soft:#f1e6ff; --on-soft:#1c0f2e; --line:#9990a7;
}
[data-high-contrast] .motion-control { color:#fff; background:#08080d; border-color:var(--line); }
[data-high-contrast] a:not(.brand):not(.button) { text-decoration:underline; text-underline-offset:.18em; }
html[data-reduce-motion] { scroll-behavior:auto; }
html[data-reading-size]:not([data-reading-size=""]) .hero,
html[data-reading-size]:not([data-reading-size=""]) .service-body { grid-template-columns:minmax(0,1fr); }
html[data-reading-size]:not([data-reading-size=""]) .masthead .bar { flex-wrap:wrap; padding-block:12px; }
.masthead nav { flex-wrap:wrap; }
.masthead nav a { padding-block:5px; }
h1,h2,h3 { overflow-wrap:break-word; }
.studio-inner { display:grid; grid-template-columns:1fr 1.3fr; align-items:center; gap:20px 46px; padding-block:clamp(28px,5vw,66px); }
.studio-inner p { max-width:63ch; color:var(--muted); }
.brief-actions { display:flex; flex-wrap:wrap; gap:0 10px; }
.reading-settings { margin-top:24px; }
.reading-settings fieldset { display:grid; justify-items:start; gap:14px; min-width:0; margin:0; padding:20px; border:1px solid var(--line); border-radius:10px; background:var(--card); }
.reading-settings legend { font-weight:700; padding-inline:6px; }
.reading-settings select { max-width:100%; min-height:44px; padding:6px; background:var(--bg); color:var(--ink); border:1px solid var(--line); border-radius:5px; }
.reading-check { display:flex; gap:10px; align-items:center; cursor:pointer; }
.reading-check input { accent-color:var(--accent); width:1rem; height:1rem; flex:none; }
.reading-check input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
#reading-status { margin:0; }
#reading-status:empty { display:none; }
@media (max-width:720px) {
  .studio-inner { grid-template-columns:1fr; }
}
.masthead nav a[aria-current=page] { color:var(--accent); text-decoration:underline; text-underline-offset:.2em; }

.pointer-lens-filter { position:absolute; pointer-events:none; }
.pointer-lens {
  position:fixed;
  z-index:5;
  top:0;
  left:0;
  width:104px;
  height:86px;
  border-radius:50%;
  pointer-events:none;
  opacity:0;
  overflow:hidden;
  border:1px solid #c8a6ff65;
  box-shadow:inset 0 0 15px #9964db36,0 2px 16px #8d55cc24;
  background:radial-gradient(ellipse at 25% 16%,#e2d2ff30,transparent 42%),
    radial-gradient(ellipse at 64% 92%,#a77be037,transparent 62%);
  backdrop-filter:blur(.5px) saturate(1.35);
  backdrop-filter:url("#pointer-lens-warp") saturate(1.35);
  transition:opacity .22s ease;
  transform:translate3d(var(--pointer-x, -120px),var(--pointer-y, -120px),0) translate(-50%,-37%);
}
.pointer-lens.is-visible { opacity:1; }
[data-reduce-motion] .pointer-lens, body:has(dialog[open]) .pointer-lens { display:none; }
@media (prefers-reduced-motion:reduce), (forced-colors:active) {
  .pointer-lens { display:none; }
}

.search-mark { position:relative; }
.search-mark::before { content:""; width:13px; height:13px; border:2px solid currentColor; border-radius:50%; transform:translate(-2px,-2px); }
.search-mark::after { content:""; position:absolute; width:9px; height:2px; background:currentColor; transform:translate(7px,7px) rotate(45deg); }
@media (min-width: 960px) { .service-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.brand .brand-dot { color:#985888; }
.brand-slogan { font-size:clamp(.82rem,1.5vw,1.05rem); color:var(--muted); line-height:1.35; }
@media(max-width:550px){.masthead .brand-header{align-items:flex-start;flex-direction:column;gap:.2rem;justify-content:center;}}
@media(min-width:760px){.service-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
.cv-list {display:grid;gap:1.3rem;margin-top:1.3rem;}
.cv-list article {border-top:1px solid var(--line);padding-top:1rem;}
.cv-list h3 {margin-bottom:.35rem;}

.opening-scene { position:relative; isolation:isolate; overflow:hidden; background:#100e19; padding-block:clamp(4.5rem,8vw,9rem); }
.night-sky { position:absolute; inset:0; z-index:-2; background:#171222 url("/assets/la-chaux-de-fonds-ciel-prune.jpg") center 67% / cover no-repeat; }
.night-sky canvas { width:100%; height:100%; display:block; }
.opening-scene::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,var(--bg),transparent 18%),linear-gradient(90deg,#100e19f2 0%,#100e19df 25%,#100e1999 45%,transparent 78%); }

.opening h1 { font-size:clamp(2.35rem,4.7vw,4.8rem); }
.opening .lead { max-width:48ch; }
.photo-credit { text-align:right; font-size:.8rem; color:var(--muted); }
.photo-credit summary { cursor:pointer; list-style:none; width:max-content; margin-left:auto; padding:.45rem 0; text-decoration:underline; }
.photo-credit summary::-webkit-details-marker { display:none; }
.photo-credit a { text-decoration:underline; }
.opening .hero-figure { width:min(580px,88%); margin:1rem auto 2rem; border:none; box-shadow:none; }
.opening .hero-figure img { aspect-ratio:2.15; }
@media(max-width:720px){
 .opening-scene {padding-block:0 1rem; background:var(--bg);}
 .night-sky {position:relative; height:clamp(13rem,54vw,23rem); background-position:58% 67%;}
 .night-sky::after {content:""; position:absolute; inset:76% 0 0; background:linear-gradient(transparent,var(--bg));}
 .opening .hero-copy {padding-top:1rem;}
 .opening-scene::after {content:none;}
}
[data-high-contrast] .opening-scene::after {background:var(--bg);}

.cv-page .service-body h2 { color:#ff97bb; }

.signature-link { display:inline-flex; max-width:100%; }
.signature { width:clamp(245px,28vw,330px); max-width:100%; height:auto; }
