:root{
  --ground:#FDFAEE; --ink:#15191E; --muted:#6A7078; --line:rgba(21,25,30,.12);
  --blue:#66A4D4; --blue-ink:#2F6E9F; --panel:#F5F0DF; --error:#B3261E;
  --font:"Helvetica Now Display","Helvetica Neue",Helvetica,Arial,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --ground:#0F1822; --ink:#F3EEDD; --muted:#A3ABB5; --line:rgba(243,238,221,.14);
  --blue:#7DB3DE; --blue-ink:#9CC6E8; --panel:#152130; --error:#F2B8B5; color-scheme:dark;}}
:root[data-theme="dark"]{
  --ground:#0F1822; --ink:#F3EEDD; --muted:#A3ABB5; --line:rgba(243,238,221,.14);
  --blue:#7DB3DE; --blue-ink:#9CC6E8; --panel:#152130; --error:#F2B8B5; color-scheme:dark;}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.55;padding-inline:clamp(16px,4vw,56px);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.wrap{max-width:1280px;margin:0 auto}

header.top{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding-block:22px;font-size:14px;position:sticky;top:0;background:var(--ground);z-index:5}
header.top .mark{font-weight:500;font-size:18px;letter-spacing:-.02em}
header.top nav{display:flex;gap:clamp(14px,2.5vw,32px);flex-wrap:wrap;justify-content:flex-end}
header.top nav a{color:var(--muted);transition:color .2s}
header.top nav a:hover,header.top nav a[aria-current="page"]{color:var(--ink)}

.hero{padding-block:clamp(48px,8vw,112px) clamp(40px,6vw,80px)}
.hero svg{display:block;width:clamp(240px,56vw,760px);height:auto;color:var(--blue)}
h1.thesis{margin-bottom:0}
.thesis{font-size:clamp(17px,1.6vw,20px);line-height:1.25;letter-spacing:-.015em;font-weight:400;margin:clamp(28px,4vw,48px) 0 0;max-width:30ch;color:var(--muted)}

section{padding-block:clamp(56px,8vw,112px);border-top:1px solid var(--line)}
.label{font-size:13px;color:var(--muted);margin:0 0 clamp(28px,4vw,48px)}

.about{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);align-items:start}
.about .lead{margin:0;font-size:clamp(24px,3.2vw,42px);font-weight:500;letter-spacing:-.03em;line-height:1.1;text-wrap:balance}
.about-body{display:grid;gap:16px;font-size:17px;color:var(--muted);max-width:46ch}
.about-body p{margin:0}
@media (max-width:860px){.about{grid-template-columns:minmax(0,1fr)}}
.clients{list-style:none;margin:0;padding:0;display:grid}
.clients li{border-bottom:1px solid var(--line)}
.clients li:first-child{border-top:1px solid var(--line)}
.clients li>a{display:flex;align-items:baseline;gap:clamp(16px,3vw,40px);padding-block:14px}
.clients li:not(:has(a)){display:flex;align-items:baseline;gap:clamp(16px,3vw,40px);padding-block:14px}
.clients .l{width:1.2em;font-size:13px;color:var(--blue);font-weight:500}
.clients .n{font-size:clamp(24px,3.2vw,42px);font-weight:500;letter-spacing:-.03em;line-height:1.1;transition:color .2s}
.clients .k{font-size:14px;color:var(--muted);white-space:nowrap}
@media (max-width:640px){.clients .k{display:none}}
.clients .go{margin-left:auto;font-size:18px;color:var(--muted);opacity:0;transform:translate(-4px,2px);transition:opacity .2s,transform .2s}
.clients a:hover .n,.clients a:focus-visible .n{color:var(--blue-ink)}
.clients a:hover .go,.clients a:focus-visible .go{opacity:1;transform:none}

.services{list-style:none;margin:0;padding:0;display:grid;gap:clamp(6px,1vw,12px)}
.services li{display:grid;grid-template-rows:auto 0fr;width:fit-content;max-width:100%;padding-block:6px;cursor:default;outline:none;transition:grid-template-rows .6s cubic-bezier(.16,.7,.2,1)}
.services .t{font-size:clamp(24px,3.2vw,42px);font-weight:500;letter-spacing:-.03em;line-height:1.1}
.services .d{overflow:hidden;min-height:0;font-size:15px;color:var(--muted);opacity:0;transform:translateY(-6px);transition:opacity .5s ease .05s,transform .6s cubic-bezier(.16,.7,.2,1)}
.services .d span{display:block;padding-top:10px}
.services li:hover,.services li:focus-visible{grid-template-rows:auto 1fr}
.services li:hover .d,.services li:focus-visible .d{opacity:1;transform:none}
.services li:focus-visible .t{text-decoration:underline;text-decoration-color:var(--blue);text-underline-offset:6px}
@media (hover:none){.services li{grid-template-rows:auto 1fr}.services .d{opacity:1;transform:none}}

.contact{padding-bottom:clamp(48px,7vw,88px)}
.contact-grid{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:24px}
.mail{display:flex;flex-wrap:wrap;align-items:baseline;gap:16px}
.addr{font-size:clamp(22px,2.6vw,32px);font-weight:500;letter-spacing:-.02em;line-height:1;overflow-wrap:anywhere}
.ig{font-size:clamp(18px,2vw,24px);border-bottom:1px solid var(--line);transition:border-color .2s}
.ig:hover{border-color:var(--blue)}

button,.btn{font:inherit;font-size:14px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:9px 18px;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
button:hover,.btn:hover{border-color:var(--ink)}
button.solid{background:var(--ink);color:var(--ground);border-color:var(--ink)}
button.solid:hover{background:var(--blue);border-color:var(--blue);color:#0F1822}

footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--muted);padding-block:24px 40px;border-top:1px solid var(--line)}

@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* founder link in the about line */
.founder{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.14em;text-decoration-color:var(--line);transition:color .3s,text-decoration-color .3s}
.founder:hover,.founder:focus-visible{color:var(--blue);text-decoration-color:var(--blue)}

/* footer links */
footer a{border-bottom:1px solid var(--line);transition:border-color .2s}
footer a:hover{border-color:var(--blue)}

/* connections link in the about text : carnet blue, flips the page on hover (flip.js) */
.cx{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.14em;text-decoration-color:currentColor}

/* flip : hovering the logo turns the whole page carnet blue, text cream */
html.flip:root{
  --ground:#66A4D4; --ink:#FDFAEE; --muted:rgba(253,250,238,.78); --line:rgba(253,250,238,.35);
  --blue:#FDFAEE; --blue-ink:#FDFAEE; --panel:rgba(253,250,238,.12); color-scheme:light;
}
html.flip ::selection{background:#FDFAEE;color:#66A4D4}
/* flip fomo : hovering fomo in the clients turns the page black, text fomo red */
html.flip-fomo:root{
  --ground:#0C0A0A; --ink:#E10600; --muted:rgba(225,6,0,.75); --line:rgba(225,6,0,.35);
  --blue:#E10600; --blue-ink:#E10600; --panel:rgba(225,6,0,.1); color-scheme:dark;
}
html.flip-fomo ::selection{background:#E10600;color:#0C0A0A}

/* language switch and contact links */
button.lang{border:0;border-radius:0;padding:0;background:none;font:inherit;font-size:14px;letter-spacing:0;color:var(--muted);cursor:pointer;transition:color .2s}
button.lang:hover{border:0;color:var(--ink)}
.contact-links{display:flex;flex-wrap:wrap;align-items:baseline;gap:clamp(18px,3vw,32px)}

/* stay in touch: newsletter and instagram, above the footer */
.stay{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:end;padding-block:clamp(40px,6vw,72px);border-top:1px solid var(--line)}
.stay h2{font-size:clamp(24px,3vw,36px);font-weight:500;letter-spacing:-.03em;line-height:1.1;margin:0 0 10px}
.stay p{margin:0;color:var(--muted);font-size:16px;max-width:40ch}
.stay form{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;max-width:520px}
.stay input[type=email]{flex:1 1 220px;min-width:0;font:inherit;font-size:16px;color:var(--ink);background:var(--ground);border:1px solid var(--line);border-radius:999px;padding:10px 18px}
.stay .note{font-size:13px;margin-top:12px}
.stay .note a,.stay .msg a{color:var(--ink);border-bottom:1px solid var(--line)}
.stay .msg{font-size:14px;color:var(--blue-ink);margin-top:12px;min-height:1em}
.stay .follow{justify-self:end;text-align:right}
.stay .follow a{display:inline-block;font-size:clamp(24px,3.2vw,40px);font-weight:500;letter-spacing:-.03em;color:var(--blue);border-bottom:1px solid currentColor;line-height:1.15}
.stay .follow a:hover{color:var(--blue-ink)}
.stay .follow span{display:block;font-size:13px;color:var(--muted);margin-bottom:10px}
.stay .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
@media (max-width:760px){.stay{grid-template-columns:minmax(0,1fr)}.stay .follow{justify-self:start;text-align:left}}

/* arrows are drawn, not typed: the ↗ character turns into an emoji on iphone */
.arr{display:inline-block;width:.6em;height:.6em;vertical-align:.02em;overflow:visible}
.clients .go .arr{width:16px;height:16px}

/* fomo: its own red on hover, the colour of the party */
.clients .fomo a:hover .n,.clients .fomo a:focus-visible .n,.clients .fomo a:hover .go,.clients .fomo a:focus-visible .go{color:#E10600}

/* events : highlighted in the nav (a dot when an event is coming), hovering it or an event turns the page to night */
header.top nav a.nev{color:var(--ground);background:var(--blue);border-radius:20px;padding:2px 11px 3px;margin-block:-3px;display:inline-flex;align-items:center;gap:6px;transition:background .2s,color .2s}
header.top nav a.nev:hover,header.top nav a.nev[aria-current="page"]{color:var(--ground);background:var(--ink)}
header.top nav a.nev.live::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;animation:nevp 2.4s ease-in-out infinite}
@keyframes nevp{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.7)}}
@media (prefers-reduced-motion:reduce){header.top nav a.nev.live::before{animation:none}}
html.flip-ev:root{
  --ground:#15191E; --ink:#FDFAEE; --muted:rgba(253,250,238,.66); --line:rgba(253,250,238,.16);
  --blue:#66A4D4; --blue-ink:#66A4D4; --panel:rgba(253,250,238,.06); color-scheme:dark;
}
html.flip-ev ::selection{background:#66A4D4;color:#15191E}
/* home events : one row per event, the poster follows the mouse */
.hev{list-style:none;margin:0;padding:0;display:grid}
.hev li{border-bottom:1px solid var(--line)}
.hev li:first-child{border-top:1px solid var(--line)}
.hev a{display:flex;align-items:baseline;gap:clamp(16px,3vw,40px);padding-block:14px}
.hev .w{width:7.5em;flex:none;font-size:13px;color:var(--blue-ink)}
.hev .n{font-size:clamp(24px,3.2vw,42px);font-weight:500;letter-spacing:-.03em;line-height:1.1;transition:color .2s}
.hev .k{font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:22em}
.hev .t{font-size:12px;color:var(--ground);background:var(--blue-ink);border-radius:20px;padding:2px 9px;white-space:nowrap;align-self:center}
.hev .go{margin-left:auto;font-size:18px;color:var(--muted);opacity:0;transform:translate(-4px,2px);transition:opacity .2s,transform .2s}
.hev a:hover .go,.hev a:focus-visible .go{opacity:1;transform:none}
.hev .m{display:none}
.hev-all{display:inline-block;margin-top:clamp(20px,3vw,32px);font-size:15px;color:var(--blue-ink)}
.hev-none{font-size:17px;color:var(--muted);max-width:44ch;margin:0}
.hev-float{position:fixed;left:0;top:0;width:clamp(160px,16vw,240px);aspect-ratio:4/5;object-fit:cover;border-radius:4px;pointer-events:none;z-index:20;opacity:0;transition:opacity .25s;will-change:transform}
.hev-float.on{opacity:1}
@media (max-width:640px){.hev .k{display:none}.hev .w{width:auto}}
@media (hover:none){.hev a{align-items:center}.hev .m{display:block;margin-left:auto;width:56px;aspect-ratio:4/5;object-fit:cover;border-radius:3px}.hev .go{display:none}}

/* the reel : every poster, upcoming and past, scrolling on a loop. hover pauses it and turns the page to night */
.reel{margin:0 calc(-1 * clamp(16px,4vw,56px)) clamp(40px,6vw,72px);overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.reel[hidden]{display:none}
.reel .track{display:flex;gap:clamp(14px,2vw,24px);width:max-content;animation:reel var(--dur,40s) linear infinite;padding-block:6px 4px}
@media (hover:hover){.reel:hover .track{animation-play-state:paused}}.reel:focus-within .track{animation-play-state:paused}
@keyframes reel{to{transform:translateX(calc(-50% - clamp(14px,2vw,24px) / 2))}}
.reel a{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;flex:none;width:clamp(170px,20vw,280px);overflow:hidden;color:inherit;text-decoration:none;transition:opacity .35s}
@media (hover:hover){.reel .track:hover a{opacity:.35}.reel .track:hover a:hover{opacity:1}.reel a:hover img{transform:scale(1.03) rotate(-.6deg)}}
.reel img{display:block;width:100%;min-width:0;aspect-ratio:4/5;object-fit:cover;border-radius:4px;background:var(--panel);transition:transform .6s cubic-bezier(.16,.7,.2,1)}
.reel .cap{display:flex;justify-content:space-between;gap:10px;min-width:0;font-size:13px;color:var(--muted);white-space:nowrap}
.reel .cap b{min-width:0;font-weight:500;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.reel .cap i{flex:none;font-style:normal;color:var(--blue-ink)}
@media (prefers-reduced-motion:reduce){.reel .track{animation:none}.reel{overflow-x:auto}}
