/* The site's styles: palette and type, the fixed header and a plain layout for every block, then « Le tracé »
   on top (the line, the colour fills, the page change), then the parts each page adds. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root { --sans: "Archivo", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; --coral: #dc5c48; }
[data-theme="night"] { --bg: #111925; --fg: #e9edf2; --soft: #9aa6b4; --ln: #dc5c48; --rule: rgba(255, 255, 255, .14); --card: #18222f; }
[data-theme="deep"] { --bg: #18222f; --fg: #e9edf2; --soft: #9aa6b4; --ln: #dc5c48; --rule: rgba(255, 255, 255, .14); --card: #111925; }
[data-theme="snow"] { --bg: #eff1f4; --fg: #111925; --soft: #5a6573; --ln: #dc5c48; --rule: #d5dae1; --card: #ffffff; }
[data-theme="coral"] { --bg: #dc5c48; --fg: #111925; --soft: #3d1c17; --ln: #111925; --rule: rgba(17, 25, 37, .25); --card: #e8735f; }
[data-theme="dusk"] { --bg: #4b3238; --fg: #f6e6e1; --soft: #d6b3ab; --ln: #f0806c; --rule: rgba(255, 255, 255, .16); --card: #5a3d43; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #111925; color: #e9edf2; font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 750; font-stretch: 112%; line-height: 1.02; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.6vw, 116px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: 23px; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
.o { color: var(--ln); }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--soft); max-width: 56ch; }
.w { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 700px) { .w { padding-inline: 18px; } }

.s { background: var(--bg); color: var(--fg); padding-block: clamp(110px, 16vh, 180px); position: relative; }
.s p { color: var(--soft); }
.btn { display: inline-flex; align-items: center; font: 600 15px var(--sans); text-decoration: none; border-radius: 999px; padding: 12px 22px; background: var(--coral); color: #fff; border: 0; cursor: pointer; }
[data-theme="coral"] .btn:not(.line) { background: #111925; }
.btn.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ln); padding-bottom: 2px; }
.arrow::after { content: " →"; }

/* logo (draws itself) */
.logo { display: block; }
.logo .hexp { stroke-dasharray: 1; animation: np-draw 1.6s cubic-bezier(.6, 0, .2, 1) backwards; }
.logo .markp { transform-box: fill-box; transform-origin: center; animation: np-pop .7s .7s cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes np-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes np-pop { from { opacity: 0; transform: scale(.5) rotate(-25deg); } }

/* fixed header: no bar, it takes the colours of the section under it */
.chrome { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; color: var(--fg); transition: color .4s; pointer-events: none; }
.chrome > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-stretch: 112%; font-size: 17px; }
.brand .logo { width: 40px; height: 40px; color: var(--ln); transition: color .4s; }
.brand .logo .hexp, .brand .logo .markp { animation: none; }
.chrome nav { display: flex; gap: 4px; align-items: center; font-size: 15px; font-weight: 500; }
.chrome nav a:not(.btn) { text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.chrome nav a:not(.btn):hover, .chrome nav a[aria-current] { background: color-mix(in srgb, currentColor 13%, transparent); }
.chrome nav .btn { margin-left: 8px; }
@media (max-width: 760px) { .chrome nav a { white-space: nowrap; } .chrome nav .btn { display: none; } .chrome { padding: 12px 14px; } .brand span { display: none; } .chrome nav a:not(.btn) { padding: 6px 9px; font-size: 14px; } .chrome nav .btn { padding: 9px 14px; font-size: 14px; } }

/* section heads */
.h { display: grid; gap: 14px; margin-bottom: 56px; max-width: 900px; }
.h .arrow { justify-self: start; margin-top: 6px; }
.lab { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); }

/* hero / intro */
.hero, .intro { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-top: 40px; }
.hero h1 { max-width: 14ch; }
.intro h1 { max-width: 15ch; }
.hero-logo { width: clamp(96px, 11vw, 150px); color: var(--ln); }
.kick, .hint { color: var(--soft); }
.intro { min-height: 70vh; }

/* blocks */
.svc, .perks, .steps, .timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.svc { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.svc .ico { width: 48px; height: 48px; margin-bottom: 14px; }
.svc h3, .perks h3, .steps h3, .timeline h3, .faq h3, .hobbies h3 { margin-bottom: 10px; }
.svc .n, .steps .n, .timeline .n { display: block; color: var(--ln); margin-bottom: 10px; }
.perks { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.faq, .hobbies { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: 18px; overflow: hidden; position: relative; }
.card .img { aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, var(--bg)); }
.card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .body { padding: 20px 22px 24px; }
.card .row { display: flex; justify-content: space-between; gap: 12px; color: var(--soft); margin-bottom: 10px; }
.card .row span:first-child { color: var(--c); filter: brightness(1.15); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15.5px; }
.timeline { max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 200px 1fr; gap: 6px 28px; }
.timeline li p { grid-column: 2; }
@media (max-width: 700px) { .timeline li { grid-template-columns: 1fr; } .timeline li p { grid-column: 1; } }

.cta { display: grid; gap: 26px; justify-items: start; min-height: 70vh; align-content: center; }
.cta h2 { font-size: clamp(44px, 7vw, 104px); max-width: 12ch; }
.mail { font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; font-stretch: 110%; text-decoration: none; border-bottom: 3px solid var(--ln); }
[data-theme="coral"] .mail { border-color: #fff; }
.foot { margin-top: 90px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; width: 100%; color: var(--soft); padding-top: 22px; border-top: 1px solid var(--rule); }
.foot a { margin-left: 16px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 60px; }
.contact dl { margin: 0; display: grid; gap: 26px; align-content: start; }
.contact dt { color: var(--soft); margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 22px; font-weight: 650; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form > p, .form .chips, .form .wide, .form button { grid-column: 1 / -1; }
.form button { justify-self: start; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.form input:not([type="radio"]), .form textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--fg) 6%, transparent); color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); font-weight: 500; cursor: pointer; }
.chips input:checked + span { background: var(--ln); border-color: var(--ln); color: #fff; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }



/* project cards are links to their page */
a.card { display: block; text-decoration: none; color: inherit; }

/* « Le tracé » (trace.js): scrolling draws the line at a steady, hand-drawn speed, and the page only moves when
   the line goes further down. The colour of the next section spreads out from where the line crosses into it.
   All of it only with JavaScript (.js on <html>): without it, the pages read as plain scrolling pages. */
.js #app { position: fixed; left: 0; right: 0; top: 0; will-change: transform; }
body { background: #111925; }
#bg0, #bgc { position: fixed; inset: 0; z-index: -2; }
#bg1 { position: absolute; inset: 0; clip-path: circle(0 at 50% 50%); }
#trace { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; transition: opacity .6s; }
.js .s { background: transparent; }
.s .w { position: relative; }

/* hero: logo, kicker, phrase; nothing over the header */
.s-hero { min-height: 100vh; display: flex; align-items: center; }
.s-hero .w { width: 100%; }
.s-hero .hero { min-height: 0; padding-top: 0; }
.s-hero h1 { font-size: clamp(48px, 8vw, 124px); max-width: 12ch; }
.hero-logo { width: clamp(84px, 8vw, 116px); }
/* one logo: on the home page the big mark flies up into the header as the page moves, and lands where the
   small one sits; the header's own mark and name only show once it has landed */
.hero-logo svg { transform-origin: 0 0; will-change: transform; }
.docked .hero-logo svg { opacity: 0; }
.brand span { transition: opacity .4s; }
.js body:has(.hero-logo):not(.docked) .brand :is(.logo, span) { opacity: 0; }

/* tiles (from C), level and calm */
.svc li, .perks li, .faq article, .hobbies article, .timeline li { background: var(--card); border-radius: 18px; padding: 28px 24px 26px; }
.svc { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.svc li:nth-child(even) { margin-top: 40px; }
.svc .n { margin-bottom: 22px; }
/* big numbers (from B) */
.perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; counter-reset: p; }
.perks li::before { counter-increment: p; content: "0" counter(p); display: block; font: 800 60px/1 var(--sans); font-stretch: 125%; margin-bottom: 22px; color: var(--ln); }
.perks h3 { font-size: clamp(24px, 2.3vw, 30px); }
.faq { gap: 22px; }
.faq article { border-radius: 22px 22px 22px 6px; }
.hobbies { display: flex; flex-wrap: wrap; gap: 22px; }
.hobbies article { flex: 1 1 200px; }
.timeline { gap: 18px; max-width: 900px; }
/* steps on a time axis (from B) */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; position: relative; padding-top: 34px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--fg); opacity: .5; }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -32px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ln); }
.steps.lessons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* polaroid projects (from C), straight */
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
/* all projects: two wide ones, then rows of three, so no row is left half full */
.cards.all { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards.all > * { grid-column: span 2; }
.cards.all > .wide { grid-column: span 3; }
@media (max-width: 1000px) { .cards, .cards.all { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.all > * { grid-column: auto !important; } }
@media (max-width: 640px) { .cards, .cards.all { grid-template-columns: 1fr; } }
.card .row span:first-child { color: color-mix(in srgb, var(--c) 62%, #111925); filter: none; }
.card { padding: 12px 12px 0; border-radius: 6px; background: #fff; color: #111925; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6); }
.card .img { border-radius: 2px; }
.card p, .card .row { color: #5a6573; }
.card .body { padding: 16px 8px 20px; }
@media (max-width: 800px) { .steps, .steps.lessons { grid-template-columns: 1fr; gap: 34px; } .perks { grid-template-columns: 1fr; } .svc li:nth-child(even) { margin-top: 0; } }

/* items rise in once the line reaches them; a small lift on hover, no wobble */
.s { transition: color .5s; }
.js .s .it { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .8s cubic-bezier(.2, .9, .3, 1), translate .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s, color .5s, background-color .5s; }
.js .s .it.on, .js .s.in .it { opacity: 1; transform: none; }
@media (hover: hover) { :is(.svc > li, .perks > li, .faq > article, .hobbies > article, .timeline > li, .card):hover { translate: 0 -4px; box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .55); } }

/* page change (after oxidstudio.fr): the new page paints in over a still of the old one, in three soft blobs
   that spill from the tip of the line */
@property --paint { syntax: "<length>"; inherits: false; initial-value: 0px; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
mask-image: radial-gradient(circle at var(--o1, 0 0), #000 calc(var(--paint) * .84), transparent var(--paint)),
	radial-gradient(circle at var(--o2, 34% 0), #000 calc(var(--paint) * .58), transparent calc(var(--paint) * .76)),
	radial-gradient(circle at var(--o3, 0 40%), #000 calc(var(--paint) * .54), transparent calc(var(--paint) * .72));
animation: paint-in 1.3s cubic-bezier(.55, 0, .25, 1) both;
}
@keyframes paint-in { from { --paint: 0vmax; } to { --paint: 180vmax; } }

/* contact: the choices as an even 3 × 2 grid */
.form .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chips span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 4%, transparent); transition: background .2s, border-color .2s, color .2s; }
.chips span::before { content: ""; flex: none; width: 13px; height: 15px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--rule); transition: background .2s, scale .3s cubic-bezier(.3, 1.6, .5, 1); }
.chips label:hover span { border-color: color-mix(in srgb, var(--ln) 60%, transparent); }
.chips input:checked + span::before { background: #fff; scale: 1.15; }
.chips input:focus-visible + span { outline: 2px solid var(--ln); outline-offset: 2px; }
@media (max-width: 1000px) { .form .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sent: the line draws an envelope and carries it off; then the thank-you */
.form { position: relative; }
.form > :not(.done) { transition: opacity .35s; }
.form.sending > :not(.done), .form.sent > :not(.done) { opacity: 0; pointer-events: none; }
.done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s, visibility .5s; outline: none; }
.form.sent .done { opacity: 1; visibility: visible; pointer-events: auto; }
.done svg { width: 96px; height: 96px; color: var(--ln); }
.done .hx, .done .ck { stroke-dasharray: 1; stroke-dashoffset: 1; }
.form.sent .done .hx { animation: drawn 1s cubic-bezier(.6, 0, .2, 1) forwards; }
.form.sent .done .ck { animation: drawn .45s .75s cubic-bezier(.3, 0, .2, 1) forwards; }
@keyframes drawn { to { stroke-dashoffset: 0; } }
.done h3 { font-size: clamp(28px, 3vw, 40px); }
.done p { max-width: 34ch; }
.form .done .btn { justify-self: center; margin-top: 8px; }
/* project page */
.pintro h1 { font-size: clamp(56px, 9vw, 140px); }
.meta { display: flex; flex-wrap: wrap; gap: 18px 48px; margin: 10px 0 0; }
.meta dt { color: var(--soft); margin-bottom: 4px; }
.meta dd { margin: 0; font-weight: 650; font-size: 18px; }
.meta a { text-decoration: none; border-bottom: 1.5px solid var(--ln); }
.cover { margin: 0 0 56px; padding: 12px; background: #fff; border-radius: 6px; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .55); }
.cover img { width: 100%; border-radius: 2px; }
.sum { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font: 500 13px var(--mono); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule); }
.big { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.35; font-weight: 500; max-width: 34ch; color: var(--fg) !important; }
.metrics { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.metrics li { display: grid; gap: 8px; padding-top: 18px; border-top: 1.5px solid var(--fg); }
.metrics b { font: 800 clamp(48px, 6vw, 84px)/1 var(--sans); font-stretch: 125%; }
.built { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.built.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.built article { background: var(--card); border-radius: 18px; padding: 28px 24px 26px; }
.built h3 { margin-bottom: 10px; }
.layers { margin: 0; display: grid; max-width: 900px; }
.layers > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.layers dt { color: var(--soft); padding-top: 4px; }
.layers dd { margin: 0; font-size: 20px; font-weight: 600; }
.gallery { columns: 3 260px; column-gap: 22px; }
.gallery img { width: 100%; margin-bottom: 22px; break-inside: avoid; border-radius: 10px; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .5); }
.pnext { min-height: 80vh; }
.nextp { display: grid; gap: 10px; text-decoration: none; }
.nextp h2 { font-size: clamp(48px, 8vw, 120px); max-width: none; }
.nextp:hover h2 { color: #fff; }
@media (max-width: 800px) { .sum, .built, .built.n3, .metrics { grid-template-columns: 1fr; } .layers > div { grid-template-columns: 1fr; gap: 4px; } }
#post { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; pointer-events: none; }

/* initials hexagons (project colours) */
.hx { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; background: var(--c); color: var(--t); font: 700 11px/1 var(--sans); letter-spacing: .02em; clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.hx.big { width: 64px; height: 64px; font-size: 17px; }
/* « Récemment pour »: the client strip under the hero */
.marquee { display: flex; align-items: center; gap: 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
.marquee > .mono { flex: none; color: var(--soft); }
.marquee .track { display: flex; overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; flex: none; animation: np-scroll 38s linear infinite; }
.marquee .track:hover ul { animation-play-state: paused; }
@keyframes np-scroll { to { transform: translateX(-100%); } }
.marquee li a { display: flex; align-items: center; gap: 10px; padding-inline: 18px 26px; white-space: nowrap; text-decoration: none; font-weight: 650; font-stretch: 108%; }
.marquee li a:hover { color: var(--ln); }
.marquee small { color: var(--soft); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.marquee .hx { width: 30px; height: 30px; font-size: 9px; }
@media (max-width: 700px) { .marquee { flex-direction: column; align-items: stretch; gap: 14px; } }
/* services: example projects */
.refs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.refs > .mono { color: var(--soft); margin-right: 6px; }
.ref { position: relative; display: inline-flex; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.ref:hover, .ref:focus-visible { transform: translateY(-3px); outline: none; }
.ref:focus-visible .hx { outline: 2px solid var(--ln); }
.ref .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px; padding: 5px 9px; border-radius: 6px; background: var(--fg); color: var(--bg); font: 600 12px var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.ref:is(:hover, :focus-visible) .tip { opacity: 1; translate: -50% 0; }
.svc .note { display: block; margin-top: 14px; color: var(--soft); font-size: 14px; }
/* portfolio filters */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.filters button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--soft); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.filters sup { font-size: 10px; margin-left: 4px; opacity: .65; }
.card[hidden] { display: none; }
/* about: contact and CV */
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
/* header: a shorter label on phones */
.chrome .btn .short { display: none; }
@media (max-width: 760px) { .chrome .btn { display: inline-flex !important; } .chrome .btn .long { display: none; } .chrome .btn .short { display: inline; } }
/* contact form */
.form .note { color: var(--soft); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-status { font-size: 15px; max-width: 46ch; }
.form-status[data-kind="error"] { color: #ff8f7d; font-weight: 600; }
.form button:disabled { opacity: .6; cursor: progress; }
.done .mono { color: var(--soft); }
/* project page */
.crumbs { display: flex; gap: 10px; color: var(--soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.sum { display: grid; gap: 14px; grid-template-columns: none; }
.sum .lede { max-width: 62ch; }
.nextp { display: flex; align-items: center; gap: 22px; }
.nextp .line { display: block; color: var(--soft); max-width: 52ch; margin-top: 10px; }
.cta .again { font-size: clamp(30px, 4vw, 52px); max-width: none; margin-top: 48px; }
.gallery { columns: auto; display: grid; gap: 28px; }
.g-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.g-row a { display: block; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .5); cursor: zoom-in; }
.g-row a[data-tone="dark"] { background: #111925; }
.g-row img { display: block; width: 100%; margin: 0; border-radius: 6px; box-shadow: none; }
.g-row.wide img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.g-row.wide a:only-child { max-width: 820px; }
@media (max-width: 700px) {
	.g-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.g-row a { flex: none; scroll-snap-align: center; }
	.g-row.wide a { width: 84%; } .g-row.tall a { width: 41%; } .g-row.wide a:only-child { width: 100%; }
}
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px 80px; border: 0; background: transparent; color: #e9edf2; display: none; place-items: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox[open] { display: grid; animation: np-lb-in .3s ease-out; }
.lightbox::backdrop { background: rgba(10, 15, 22, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes np-lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; gap: 18px; justify-items: center; max-width: min(1200px, 100%); max-height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox img { pointer-events: none; -webkit-user-drag: none; outline: 1px solid rgba(255, 255, 255, .12); max-width: 100%; max-height: calc(100dvh - 210px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px -30px #000; background: #18222f; }
.lightbox figcaption { max-width: 64ch; text-align: center; display: grid; gap: 6px; }
.lightbox .lb-count { color: #dc5c48; }
.lightbox h2 { font-size: 24px; }
.lightbox p { color: #9aa6b4; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); cursor: pointer; background: rgba(24, 34, 47, .85); color: #e9edf2; font: 500 20px var(--sans); transition: background-color .2s, border-color .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.lightbox button:hover { background: #dc5c48; border-color: #dc5c48; }
.lb-close { top: 20px; right: 20px; } .lb-close:hover { transform: rotate(90deg); }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lightbox.single :is(.lb-nav, .lb-count) { display: none; }
@media (max-width: 700px) { .lightbox { padding: 70px 16px 24px; } .lb-nav { top: auto; bottom: 20px; translate: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .s .it { opacity: 1; transform: none; } }
