/* Destockage, the "opening soon" page. The world of design/home.html, seen from the street: a white fascia with
   the sign, a steel shutter jammed at half, the warehouse floor under it (soon.js and scene.js draw it in 3D, or
   a still picture stays), and the logo's tag hanging from the shutter's bar with the waiting list on it.
   White only. Everything that moves is transform or opacity. */

/* ---------- Typefaces: the brand's own files, declared with their whole weight axis ---------- */
@font-face{font-family:'Changa';font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/changa-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Changa';font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/changa-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Big Shoulders Stencil';font-style:normal;font-weight:900;font-display:swap;src:url(fonts/big-shoulders-stencil-latin-900.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
	--floor:#fff;
	--ink:#051226;
	--orange:#FB5401;
	--o1:#FB1D01;
	--o3:#FB7502;
	--haze:#F3F1EE;
	--t2:#465064;
	--t3:#5E6778;
	--line:#DFE2E8;
	--line2:#7C8493;
	--steel:#12294B;
	--danger:#C21807;
	--danger-bg:#FDECE9;
	--wood:linear-gradient(16deg,var(--o1),var(--o3));
	--ease:cubic-bezier(.2,.7,.2,1);
	--top-h:64px;
	--pad:clamp(20px,4.4vw,72px);
	/* the bar under the shutter, the channels at its sides, and how far the opening goes on behind the shutter */
	--bar:14px;
	--rail:9px;
	--over:110px;
	/* the string the tag hangs from */
	--string:22px;
	color-scheme:light;
}
@media (max-width:899px){
	:root{--top-h:56px;--bar:12px;--rail:6px;--over:72px;--string:clamp(76px,12.6svh,128px)}
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
	margin:0;
	background:var(--floor);
	color:var(--ink);
	font-family:Changa,'Segoe UI',Tahoma,sans-serif;
	font-size:1rem;
	font-weight:400;
	line-height:1.6;
	font-feature-settings:'ccmp' 0;
	font-variant-numeric:lining-nums;
	-webkit-font-smoothing:antialiased;
	overflow-x:clip;
}
img{display:block;max-width:100%}
a{color:inherit}
button,input{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:6px}
/* the parts the browser draws: selection, caret, scrollbar, underlines */
::selection{background:#FFD2B8;color:var(--ink)}
html{scrollbar-color:#AEB5C1 #fff}
a{text-underline-offset:.22em;text-decoration-thickness:1.5px}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip{position:fixed;z-index:90;inset-block-start:8px;inset-inline-start:8px;padding:10px 16px;border-radius:10px;background:var(--ink);color:#fff;text-decoration:none;transform:translateY(-200%)}
.skip:focus{transform:none}
/* a number is always written left to right, and its thousands sit close: 11 000 */
.num{direction:ltr;unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:lining-nums tabular-nums}
/* the gap between thousands: U+202F in a box of a fixed width (fonts do not agree on how wide it is) */
.nb{display:inline-block;width:.22em;white-space:pre}

/* ---------- The fascia: the sign, and the language ---------- */
.top{position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;height:var(--top-h);padding-inline:var(--pad);background:var(--floor)}
.top__logo{flex:0 1 auto;display:flex;align-items:center;min-width:0;min-height:44px;border-radius:10px}
.top__logo img{height:30px;width:auto}
.lang{position:relative}
.lang__btn{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding-inline:12px;border:0;border-radius:10px;background:none;font-weight:500}
.lang__btn::after{content:"";width:7px;height:7px;border-inline-end:1.6px solid;border-block-end:1.6px solid;transform:translateY(-2px) rotate(45deg)}
.lang__btn:hover{background:var(--haze)}
.lang__menu{position:absolute;inset-block-start:calc(100% + 6px);inset-inline-end:0;min-width:172px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 44px -18px rgb(5 18 38 / .4)}
.lang__menu[hidden]{display:none}
.lang__menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding-inline:12px;border:0;border-radius:8px;background:none;text-align:start}
.lang__menu button:hover{background:var(--haze)}
.lang__menu button[aria-checked="true"]{font-weight:500}
.lang__menu button[aria-checked="true"]::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--ink)}
.lang__short{display:none}
@media (max-width:480px){
	.top__logo img{height:26px}
	.lang__full{display:none}
	.lang__short{display:inline}
}

/* ---------- Buttons: boxes are kept for what is pressed ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding-inline:22px;border:1.5px solid var(--ink);border-radius:10px;font-weight:500;text-decoration:none;transition:background-color .15s,border-color .15s,transform .15s var(--ease)}
.btn:active{transform:translateY(1px)}
.btn svg{flex:none;width:20px;height:20px}
.btn--ink{background:var(--ink);color:#fff}
.btn--ink:hover{border-color:var(--steel);background:var(--steel)}
.btn--go{min-height:52px;border-color:var(--orange);background:var(--orange);color:var(--ink);font-size:1.0625rem;font-weight:600}
.btn--go:hover{border-color:#ff6a1c;background:#ff6a1c}

/* the answer a visitor without script gets from the waiting list (api/waitlist.js) */
.plain{display:grid;justify-items:start;gap:18px;max-width:36rem;margin-inline:auto;padding:clamp(40px,12vh,110px) var(--pad)}
.plain h1{margin-block-start:14px;font-weight:800;font-size:2.25rem;line-height:1.25}
.plain p{color:var(--t2);font-size:1.125rem;line-height:1.7}

/* ---------- The door: the shutter, the opening under it, and the tag ---------- */
/* One column, two rows. The shutter is the first row: its lower edge is where the bar rests. The opening is the
   second: it goes on upwards behind the shutter (--over), so that there is a picture there when the bar rises.
   The tag hangs in the second row too, in front of the opening. soon.js sets --lift (how far the bar is above its
   place, in pixels) and --swing (the tag, in degrees). */
.door{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);min-height:calc(100svh - var(--top-h));overflow:hidden;overflow:clip;--lift:0;--swing:0}
/* the channels the shutter runs in */
.door::before,.door::after{content:"";position:absolute;z-index:4;inset-block:0;width:var(--rail);background:linear-gradient(90deg,#AEB6C4,#E9ECF0 46%,#C9CFD9);pointer-events:none}
.door::before{left:0}
.door::after{right:0;transform:scaleX(-1)}

.shutter{position:relative;z-index:2;grid-row:1;grid-column:1;display:flex;min-height:calc(44svh - var(--top-h))}
.sheet{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;transform:translate3d(0,calc(var(--lift) * -1px),0)}
/* the slats: steel, lit from the street. They go on upwards, so that the sheet can come down and still cover */
.sheet::before{
	content:"";
	position:absolute;
	z-index:-1;
	inset-inline:0;
	inset-block:-90svh 0;
	background:
		linear-gradient(0deg,rgb(5 18 38 / .08),rgb(5 18 38 / 0) 140px),
		repeating-linear-gradient(0deg,#F7F8FA 0 2px,#DEE2E8 2px 4px,#EDEFF3 4px 31px);
}
/* over the title, plain slats: the bar can rise that far and the title stays whole */
.print{position:relative;padding:clamp(30px,6.2svh,60px) calc(var(--pad) + var(--rail)) clamp(18px,3.2svh,38px)}
/* printed on the slats: heavy, on the D's lean. It is the nearest thing: it slides a little when the pointer moves */
.door__title{
	font-weight:800;
	font-size:clamp(2.5rem,min(6.9vw,12.6svh),6rem);
	line-height:1.14;
	text-wrap:balance;
	transform:translate3d(calc(var(--mx,0) * -6px),0,0) skewX(-12deg);
}
/* the dots of the Arabic ya hang well under the line: the lead must not run into them */
html[lang="ar"] .door__title{padding-block-end:.12em}
.door__lead{max-width:34em;margin-block-start:.15em;color:var(--t2);font-size:clamp(1.0625rem,1.55vw,1.5rem);line-height:1.55}
.door__group{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin-block-start:clamp(12px,2.2svh,22px)}
.door__count{font-weight:500}
.bar{position:relative;flex:none;height:var(--bar);background:var(--ink)}
/* the shade the shutter lays on what is under it */
.bar::after{content:"";position:absolute;inset-inline:0;inset-block-start:100%;height:40px;background:linear-gradient(180deg,rgb(5 18 38 / .3),rgb(5 18 38 / 0));pointer-events:none}

/* the opening: the air of the room until a picture arrives */
.pit{position:relative;z-index:1;grid-row:2;grid-column:1;min-height:calc(var(--over) + 300px);margin-block-start:calc(var(--over) * -1);background:#DDE1E8;overflow:hidden}
/* the still picture, cut by the rule the 3D follows (soon.js, frame): its size follows the height of the opening,
   its bar line (110 of its 640) falls on the bar, and it is held to the wall he lives by. So the 3D lands on it. */
.pit__still{position:absolute;inset-inline:0;inset-block:calc(var(--over) - (100% - var(--over)) * .2075) 0;display:block}
.pit__still img{display:block;width:100%;height:100%;object-fit:cover;object-position:100% 0}
.pit__still--ltr{display:none}
.pit__still--ltr img{object-position:0 0}
@media (min-width:900px){
	html[dir=ltr] .pit__still{display:none}
	html[dir=ltr] .pit__still--ltr{display:block}
}
/* a narrow screen: he is in the middle, and his size follows the width (the bar line is 144 of the still's 780) */
@media (max-width:899px){
	.pit__still{inset-block-start:calc(var(--over) - 18.46vw)}
	.pit__still img{object-position:50% 0}
}
.pit__gl{position:absolute;inset:0;display:block;width:100%;height:100%}
.pit__gl{opacity:0;transition:opacity .45s}
.is-live .pit__gl{opacity:1}

/* the tag: the counter of the logo's D, hung from the bar on a string. It is the only raised thing on the page. */
.hang{
	position:relative;
	z-index:3;
	grid-row:2;
	grid-column:1;
	align-self:start;
	justify-self:end;
	width:min(430px,36vw);
	margin-inline-end:calc(var(--pad) + var(--rail));
	margin-block-end:28px;
	padding-block-start:var(--string);
	transform:translate3d(0,calc(var(--lift) * -1px),0) rotate(calc(var(--swing) * 1deg));
}
html[dir=rtl] .hang{transform-origin:calc(100% - 32px) 0}
html[dir=ltr] .hang{transform-origin:32px 0}
/* the string comes down from the bar, over the tag's edge, into its hole */
.hang__string{position:absolute;z-index:1;inset-block-start:0;inset-inline-start:31px;width:2px;height:calc(var(--string) + 30px);background:var(--ink);border-radius:0 0 1px 1px}
.hang__string::before{content:"";position:absolute;inset-block-start:-3px;left:-3px;width:8px;height:8px;border-radius:50%;background:var(--ink)}
.tag{
	position:relative;
	display:block;
	padding:12px 20px 16px;
	background:#fff;
	border:2px solid var(--ink);
	border-radius:14px;
}
/* the hole, and its steel eyelet */
html[dir=rtl] .tag{-webkit-mask:radial-gradient(circle at calc(100% - 32px) 30px,transparent 6.4px,#000 7px);mask:radial-gradient(circle at calc(100% - 32px) 30px,transparent 6.4px,#000 7px)}
html[dir=ltr] .tag{-webkit-mask:radial-gradient(circle at 32px 30px,transparent 6.4px,#000 7px);mask:radial-gradient(circle at 32px 30px,transparent 6.4px,#000 7px)}
.tag::before{content:"";position:absolute;inset-block-start:17px;inset-inline-start:19px;width:22px;height:22px;border:3px solid #9AA2B1;border-radius:50%;pointer-events:none}
.tag__label{display:block;min-height:32px;padding-inline-start:38px;font-weight:600;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tag__in{display:block;width:100%;height:52px;margin-block-start:8px;padding-inline:14px;border:1.5px solid var(--line2);border-radius:10px;background:#fff;font-size:1.0625rem;font-weight:500;text-align:left;caret-color:var(--orange);transition:border-color .15s,box-shadow .2s}
.tag__in::placeholder{color:var(--t3);opacity:1;font-weight:400;text-overflow:ellipsis}
.tag__in:hover{border-color:var(--ink)}
.tag__in:focus-visible{outline:0;border-color:var(--ink);box-shadow:0 0 0 4px rgb(251 84 1 / .28)}
/* an error: red edge, the error's own ground, and the field shakes its head once */
.tag__in[aria-invalid="true"]{border-color:var(--danger);background:var(--danger-bg);animation:nope .26s var(--ease)}
@keyframes nope{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.tag__role{display:flex;align-items:center;gap:8px;margin-block-start:10px}
.tag__iam{flex:none;margin-inline-end:4px;font-weight:500}
.chip{position:relative;flex:1 1 0;min-width:0}
.chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.chip span{display:grid;place-items:center;min-height:44px;padding-inline:12px;border:1.5px solid var(--line2);border-radius:10px;font-weight:500;white-space:nowrap;transition:background-color .15s,color .15s,border-color .15s}
.chip input:hover + span{border-color:var(--ink)}
.chip input:checked + span{border-color:var(--ink);background:var(--ink);color:#fff}
.chip input:focus-visible + span{outline:3px solid var(--ink);outline-offset:3px}
.tag__role.is-missing .chip span{border-color:var(--danger)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.tag__go{width:100%;margin-block-start:10px}
.tag.is-busy .tag__go{opacity:.72;cursor:progress}
.tag__err{margin-block-start:8px;color:var(--danger);font-size:.875rem;font-weight:500;line-height:1.5}
.tag__err:empty{display:none}
.tag__why{margin-block-start:8px;color:var(--t3);font-size:.8125rem;line-height:1.5}
/* signed up: the tag is stamped */
.tag__done[hidden],.tag__ask[hidden]{display:none}
.tag__done{padding-block:2px 4px;outline:0}
.tag__stamp{min-height:32px;padding-inline-start:38px}
.tag__stamp span{display:inline-block;padding:1px 12px 2px;border:2.5px solid var(--ink);border-radius:8px;font-weight:800;font-size:1.25rem;line-height:1.4;transform:rotate(-2.5deg) skewX(-12deg)}
.tag.is-fresh .tag__stamp span{animation:stamp .34s var(--ease) both}
@keyframes stamp{0%{opacity:0;transform:rotate(-2.5deg) skewX(-12deg) scale(1.5)}100%{opacity:1;transform:rotate(-2.5deg) skewX(-12deg) scale(1)}}
.tag__note{margin-block-start:14px;font-size:1.0625rem;line-height:1.6}
.tag__note .num{font-weight:600}
.tag__again{display:inline-flex;align-items:center;min-height:44px;margin-block-start:4px;padding:0;border:0;background:none;color:var(--t2);font-size:.9375rem;font-weight:500;text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1.5px}
.tag__again:hover{color:var(--ink)}

/* a narrow screen: the same pieces, one over the other. Disto shows between the bar and the tag. */
@media (max-width:899px){
	.door{min-height:0}
	.shutter{min-height:0}
	.pit{min-height:0}
	.hang{justify-self:stretch;width:auto;max-width:520px;margin-inline:calc(var(--pad) + var(--rail));margin-block-end:22px}
	.door__title{font-size:clamp(2.1rem,min(10.6vw,9svh),3.6rem)}
	.door__lead{font-size:1.0625rem}
	.print{padding-block:20px 16px}
	.tag{padding:12px 18px 14px}
	.tag__in{height:48px;margin-block-start:6px}
	.tag__role{margin-block-start:8px}
	.tag__go{min-height:48px;margin-block-start:8px}
	.tag__why{margin-block-start:6px}
}
@media (min-width:560px) and (max-width:899px){
	.hang{justify-self:center;width:min(520px,100% - 2 * (var(--pad) + var(--rail)))}
}
/* the narrowest phones: the label takes two lines rather than lose its end, and the example shrinks to fit */
@media (max-width:359px){
	.tag__label{padding-block:5px;line-height:1.4;white-space:normal;overflow:visible}
	.tag__in::placeholder{font-size:.8125rem}
}

/* the shutter rises and jams: once a visit (first.js adds has-gate; soon.js starts it when the picture is ready,
   and without soon.js it still starts, a little later) */
.has-gate .sheet,.has-gate .hang{animation:jam-late .7s cubic-bezier(.3,.7,.2,1) .9s both}
.has-gate.is-open .sheet,.has-gate.is-open .hang{animation-name:jam;animation-delay:.05s}
@keyframes jam{0%{transform:translate3d(0,64svh,0)}64%{transform:translate3d(0,-13px,0)}80%{transform:translate3d(0,6px,0)}92%{transform:translate3d(0,-2px,0)}100%{transform:translate3d(0,0,0)}}
@keyframes jam-late{0%{transform:translate3d(0,64svh,0)}64%{transform:translate3d(0,-13px,0)}80%{transform:translate3d(0,6px,0)}92%{transform:translate3d(0,-2px,0)}100%{transform:translate3d(0,0,0)}}
/* a knock on the shutter when the 3D is not there to answer */
.sheet.is-knock{animation:knock .32s var(--ease)}
@keyframes knock{0%,100%{transform:translate3d(0,0,0)}30%{transform:translate3d(0,-6px,0)}62%{transform:translate3d(0,2px,0)}}
/* without the 3D the bar still goes up a notch for someone who signed up */
html:not(.is-live) .sheet,html:not(.is-live) .hang{transition:transform .5s var(--ease)}

/* ---------- What is behind the shutter: three beats, a real sequence ---------- */
.behind{padding:clamp(56px,10vh,120px) var(--pad) clamp(48px,8vh,104px)}
.behind__title{font-weight:300;font-size:clamp(2.1rem,min(5.2vw,9svh),4.75rem);line-height:1.2}
.beats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(28px,4.4vw,72px);margin-block-start:clamp(28px,5vh,60px)}
/* the number is sprayed through a stencil on a plank of the logo's wood */
.beat__n{display:grid;place-items:center;width:62px;height:82px;margin-block-end:20px;border-radius:4px;background:var(--wood);color:rgb(5 18 38 / .66);font-family:'Big Shoulders Stencil','Arial Narrow',sans-serif;font-size:3.5rem;font-weight:900;line-height:1;transform:skewX(-12deg)}
.beat__t{font-weight:700;font-size:clamp(1.25rem,1.9vw,1.75rem);line-height:1.35;text-wrap:balance}
.beat__p{max-width:30em;margin-block-start:.45em;color:var(--t2);font-size:1.0625rem;line-height:1.7}
@media (max-width:899px){
	.beats{grid-template-columns:minmax(0,1fr);gap:26px}
	.beat{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:20px;align-items:start}
	.beat__n{grid-row:1 / span 2;width:50px;height:66px;margin:4px 0 0;font-size:2.75rem}
}

/* ---------- The group: a plank of the logo's wood, words in ink ---------- */
.group{padding:0 var(--pad) clamp(56px,9vh,112px)}
.group__plank{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:20px clamp(24px,4vw,64px);padding:clamp(30px,4.6vw,60px) clamp(40px,6.4vw,104px)}
.group__plank::before{content:"";position:absolute;z-index:-1;inset:0;border-radius:6px;background:var(--wood);transform:skewX(-12deg)}
.group__title{font-weight:800;font-size:clamp(1.75rem,3.5vw,3.25rem);line-height:1.2;text-wrap:balance}
.group__line{max-width:36em;margin-block-start:.5em;font-size:clamp(1.0625rem,1.3vw,1.25rem);font-weight:500;line-height:1.6}
.group__line b{font-weight:800}
.group__go{min-height:54px;padding-inline:26px;font-size:1.0625rem;white-space:nowrap}
.group__mark{writing-mode:vertical-rl;direction:ltr;color:rgb(5 18 38 / .62);font-family:'Big Shoulders Stencil','Arial Narrow',sans-serif;font-size:clamp(1.5rem,2.4vw,2.5rem);font-weight:900;line-height:1;letter-spacing:.03em;transform:skewX(-12deg)}
@media (max-width:899px){
	/* no room for the lean: the plank lies flat, from edge to edge */
	.group{padding-inline:0}
	.group__plank{grid-template-columns:minmax(0,1fr);padding:36px var(--pad) 40px}
	.group__plank::before{border-radius:0;transform:none}
	.group__go{justify-self:start}
	.group__mark{display:none}
}

/* ---------- The foot ---------- */
.foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 28px;padding:20px var(--pad) 28px;border-block-start:1px solid var(--line);color:var(--t2);font-size:.9375rem}
.foot img{height:24px;width:auto}

/* ---------- The plank that wipes the page from one language to the next ---------- */
.curtain{position:fixed;z-index:85;top:0;left:0;display:grid;place-items:center;width:calc(100vw + 30vh);height:100vh;height:100lvh;transform-origin:0 100%;transform:translate3d(-300vw,0,0) skewX(-12deg);background:var(--wood);pointer-events:none}
.curtain span{color:rgb(5 18 38 / .62);font-family:'Big Shoulders Stencil','Arial Narrow',sans-serif;font-size:min(17vw,34vh);font-weight:900;line-height:1;letter-spacing:.03em}

@media (prefers-reduced-motion:reduce){
	*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
